mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
30 lines
1.1 KiB
Bash
Executable File
30 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Clear out any files remaining from old builds and recreate folder
|
|
rm -rf .package
|
|
mkdir .package
|
|
rm -rf .build
|
|
mkdir .build
|
|
|
|
# Install electron sub-dependencies
|
|
cd electron
|
|
npm install
|
|
cd ..
|
|
|
|
# .app should have the fully built game already after npm run build
|
|
cp -r .app/* .package
|
|
cp -r electron/* .package
|
|
|
|
BUILD_PLATFORM="${1:-"all"}"
|
|
# And finally build the app.
|
|
case $BUILD_PLATFORM in
|
|
"win")
|
|
electron-packager .package bitburner --platform win32 --arch x64,arm64 --out .build --overwrite --icon .package/icon.ico --app-copyright "Copyright (C) 2024 Bitburner";;
|
|
"linux")
|
|
electron-packager .package bitburner --platform linux --arch x64,arm64 --out .build --overwrite --app-copyright "Copyright (C) 2024 Bitburner";;
|
|
"mac")
|
|
electron-packager .package bitburner --platform darwin --arch x64,arm64 --out .build --overwrite --icon .package/icon.icns --app-copyright "Copyright (C) 2024 Bitburner";;
|
|
*)
|
|
electron-packager .package bitburner --platform win32,linux,darwin --arch x64,arm64 --out .build --overwrite --icon .package/icon --app-copyright "Copyright (C) 2024 Bitburner";;
|
|
esac
|