2021-12-20 12:33:46 +01:00
|
|
|
#!/bin/sh
|
2021-09-15 18:22:36 +02:00
|
|
|
|
2022-03-23 11:17:50 +01:00
|
|
|
set -euxo pipefail
|
|
|
|
|
2022-01-23 19:24:14 +01:00
|
|
|
# Clear out any files remaining from old builds
|
|
|
|
rm -rf .package
|
|
|
|
|
2022-03-21 13:04:59 +01:00
|
|
|
mkdir -p .package/dist/ || true
|
2022-01-28 02:44:50 +01:00
|
|
|
|
|
|
|
cp index.html .package
|
2022-03-21 13:04:59 +01:00
|
|
|
cp favicon.ico .package
|
2021-12-20 12:33:46 +01:00
|
|
|
cp -r electron/* .package
|
2022-03-21 13:04:59 +01:00
|
|
|
cp -r dist .package
|
2022-01-04 14:26:10 +01:00
|
|
|
|
2021-12-31 03:45:57 +01:00
|
|
|
# Install electron sub-dependencies
|
|
|
|
cd electron
|
|
|
|
npm install
|
|
|
|
cd ..
|
|
|
|
|
2022-01-23 18:56:32 +01:00
|
|
|
BUILD_PLATFORM="${1:-"all"}"
|
2021-12-31 03:45:57 +01:00
|
|
|
# And finally build the app.
|
2022-03-21 13:04:59 +01:00
|
|
|
npm run electron:packager-$BUILD_PLATFORM
|