@@ -16,32 +16,21 @@ read yes
1616echo " 3) Cleaning up old build..."
1717rm -rf .webpack/
1818rm -rf dist/
19+ # Don't include Windows VNC binaries on Linux
20+ rm -rf vnc-software/uvnc-windows/
1921
2022# If you run it in dev mode first with:
2123# npm run start
2224# Then the app tries to connect to localhost:3000 instead of packaging the actual files when building with:
2325# ./node_modules/.bin/electron-builder
2426
2527# Therefore, first make sure the correct files are packaged with electron-forge:
26- echo " 4) Running : electron-forge package"
27- ./node_modules/.bin/electron-forge package
28+ echo " 4) Packaging with : electron-forge package -p linux -a x64 "
29+ ./node_modules/.bin/electron-forge package -p linux -a x64
2830
2931# NOTE: Don't use prepackage because the electron-builder will not add the tigervnc/ folder:
3032# ./node_modules/.bin/electron-builder --prepackaged out/peerviewer-linux-x64/ -l appimage
31- echo " 5) Running electron-builder --linux appimage zip deb snap rpm"
33+ echo " 5) Building release binaries with: electron-builder --linux appimage deb snap rpm tar.gz "
3234export DEBUG=electron-builder
3335./node_modules/.bin/electron-builder --linux appimage deb snap rpm tar.gz
3436
35- # Building for Windows on Linux doesn't seem to work, see:
36- # https://github.com/electron/electron/issues/1075
37- # https://github.com/electron-userland/electron-builder/issues/844
38- # https://github.com/electron-userland/electron-builder/issues/5254
39- #
40- # It also requires wine32, see https://www.electron.build/multi-platform-build so something like:
41- # dpkg --add-architecture i386 && apt-get update && apt-get install wine32
42- # ./node_modules/.bin/electron-builder --win nsis portable msi zip
43- #
44- # To build for Windows, execute on a Windows machine (as Administrator, otherwise symlink permission errors):
45- # node_modules\\.bin\\electron-builder --win nsis portable msi zip
46-
47-
0 commit comments