2021-12-20 12:33:46 +01:00
|
|
|
#!/bin/sh
|
2021-09-15 18:22:36 +02:00
|
|
|
|
2021-09-21 04:30:11 +02:00
|
|
|
mkdir -p .package/dist/src/ThirdParty || true
|
|
|
|
mkdir -p .package/src/ThirdParty || true
|
2021-12-20 12:33:46 +01:00
|
|
|
mkdir -p .package/node_modules || true
|
2021-09-15 18:22:36 +02:00
|
|
|
|
|
|
|
cp index.html .package
|
2021-12-20 12:33:46 +01:00
|
|
|
cp -r electron/* .package
|
|
|
|
cp -r dist/ext .package/dist
|
2022-01-06 13:04:03 +01:00
|
|
|
cp -r dist/icons .package/dist
|
2021-12-20 12:33:46 +01:00
|
|
|
|
2021-09-21 04:30:11 +02:00
|
|
|
# The css files
|
2021-09-15 18:22:36 +02:00
|
|
|
cp dist/vendor.css .package/dist
|
2021-09-21 04:30:11 +02:00
|
|
|
cp main.css .package/main.css
|
|
|
|
|
|
|
|
# The js files.
|
|
|
|
cp dist/vendor.bundle.js .package/dist/vendor.bundle.js
|
|
|
|
cp main.bundle.js .package/main.bundle.js
|
|
|
|
|
2022-01-04 14:26:10 +01:00
|
|
|
# Source maps
|
|
|
|
cp dist/vendor.bundle.js.map .package/dist/vendor.bundle.js.map
|
|
|
|
cp main.bundle.js.map .package/main.bundle.js.map
|
|
|
|
|
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-01-23 18:56:32 +01:00
|
|
|
npm run electron:packager-$BUILD_PLATFORM
|