Open ghost opened 8 years ago
I've not had the chance to build this on a windows machine yet. Can you run npm run build
without a problem?
What about npm run dev
? Any issues?
Yep, npm run build
and npm run dev
work fine.
I'm trying to compile the app for Linux, Windows and OS X. I know this sort of compilation works in the https://github.com/chentsulin/electron-react-boilerplate with npm run package-all
. Has that build process been completely removed?
Yes, I've started using https://github.com/electron-userland/electron-builder instead. I'm a little tied up at work at the moment. Please let me know if you find anything on there.
I've got it compiling the .exe. I was unfamiliar with electron builder so it took a while.
I set up a script as follows:
"use strict"
const builder = require("electron-builder")
const Platform = builder.Platform
builder.build({
targets: Platform.WINDOWS.createTarget(),
devMetadata: {
"//": "build and other properties, see https://goo.gl/5jVxoO"
}
})
Running that produces a packaged .exe in timesheets\release\win\Timesheets Setup 1.3.0.exe
. This works perfectly on Windows 10 :)
Great stuff, will give this a go after work. https://github.com/hardchor/timesheets/blob/master/package.json#L98-L120 is where the build config currently lives.
Hey @MrBlenny ! I've still not had the chance to test this on an actual Windows machine. Did you manage to get your solution working in the build process?
I got it working with the script posted above.
note to self: Check https://github.com/electron-userland/electron-builder/wiki/Options#buildwin to build locally, check out AppVeyor for production build
I can't even do yarn install after cloning this repro on Windows. I get an infinite stack trace (doesn't stop throwing errors).
I'm trying to run
npm pack
on windows but i'm getting an error:Any ideas?