Build not working for windows
Unfortunately the current build/packaging isn't working for windows and I'm in need for help.
The problem:
when running npm run build all packages are bundled for it's specific platforms (Mac, Win, Linux) but when testing on Win it complains about not having the correct dist 32/64.
I don't know if this is still an issue on your end, but I was able to build the application without an issue. I cloned from the current master. I'm building on Windows 10, Node 7.5.0. This is the output log:
C:\Users\jvtrigueros\workspace\temp\soundnode-app (master) ([email protected])
λ npm run build
> [email protected] build C:\Users\jvtrigueros\workspace\temp\soundnode-app
> npm run clean && npm run webpack:prod && npm run sass:prod && npm run package:all
> [email protected] clean C:\Users\jvtrigueros\workspace\temp\soundnode-app
> rimraf ./dist
> [email protected] webpack:prod C:\Users\jvtrigueros\workspace\temp\soundnode-app
> webpack -p --config ./webpack.prod.js
Hash: 5e69928a8189b09d8740
Version: webpack 1.14.0
Time: 2126ms
+ 211 hidden modules
ERROR in bundle.js from UglifyJs
SyntaxError: Unexpected token punc «,», expected punc «:» [D:/workspace/temp/soundnode-app/~/fs-extra/lib/remove/index.js:15,0]
ERROR in bundle.js from UglifyJs
SyntaxError: Unexpected token punc «,», expected punc «:» [D:/workspace/temp/soundnode-app/~/fs-extra/lib/remove/index.js:15,0]
> [email protected] sass:prod C:\Users\jvtrigueros\workspace\temp\soundnode-app
> node-sass --include-path ./app/public/stylesheets/sass --output-style compressed ./app/public/stylesheets/sass/app.scss ./app/public/stylesheets/css/app.css
Rendering Complete, saving .css file...
Wrote CSS to C:\Users\jvtrigueros\workspace\temp\soundnode-app\app\public\stylesheets\css\app.css
> [email protected] package:all C:\Users\jvtrigueros\workspace\temp\soundnode-app
> npm run package:osx && npm run package:linux && npm run package:win32
> [email protected] package:osx C:\Users\jvtrigueros\workspace\temp\soundnode-app
> electron-packager ./ Soundnode --platform=darwin --out ./dist/Soundnode --version 1.4.4 --overwrite --icon ./app/soundnode.ico
WARNING: The version parameter is deprecated, use electronVersion (or --electron-version in the CLI) instead
Downloading SHASUMS256.txt
[============================================>] 100.0% of 2.85 kB (2.85 kB/s)
Cannot create symlinks (on Windows hosts, it requires admin privileges); skipping darwin platform
> [email protected] package:linux C:\Users\jvtrigueros\workspace\temp\soundnode-app
> electron-packager ./ Soundnode --platform=linux --out ./dist/Soundnode --version 1.4.4 --overwrite --icon ./app/soundnode.icns
WARNING: The version parameter is deprecated, use electronVersion (or --electron-version in the CLI) instead
Downloading electron-v1.4.4-linux-x64.zip
[============================================>] 100.0% of 43.28 MB (5.09 MB/s)
Packaging app for platform linux x64 using electron v1.4.4
Wrote new app to dist\Soundnode\Soundnode-linux-x64
> [email protected] package:win32 C:\Users\jvtrigueros\workspace\temp\soundnode-app
> electron-packager ./ Soundnode --platform=win32 --out ./dist/Soundnode --version 1.4.4 --overwrite --icon ./app/soundnode.icns
WARNING: The version parameter is deprecated, use electronVersion (or --electron-version in the CLI) instead
Downloading electron-v1.4.4-win32-x64.zip
[============================================>] 100.0% of 54.28 MB (7 MB/s)
Packaging app for platform win32 x64 using electron v1.4.4
Wrote new app to dist\Soundnode\Soundnode-win32-x64
I was able to run Soundnode.exe, but I wasn't able to confirm that the player was working (API reached playback limit).
I was able to build on the latest master. Node v7.8.0 .
Must be my VM then, After building the package and trying on the VM I wasn't able to open the exe, I'm going to give it another try this week and let you guys know.
thanks a lot @RedHope and @jvtrigueros