Skip to content

Commit

Permalink
Update windows build to onefile
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Aug 7, 2024
1 parent 854170e commit 36354bf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_desktop.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Build Desktop Apps

on:
release:
push:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macos-latest"]
os: ["windows-latest", "macos-latest"]

steps:
- uses: actions/checkout@v4
Expand Down
10 changes: 9 additions & 1 deletion desktop/build_desktop_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@ cd studio/web_ui
npm run build
cd ../..

APP_STYPE="--onefile"
if [ "$(uname)" == "Darwin" ]; then
echo "Building MacOS app"
APP_STYPE="--onedir"
fi

echo $APP_STYPE

# Builds the desktop app
# TODO: use a spec instead of long winded command line
pyinstaller --windowed --onedir --icon="../icon.png" \
pyinstaller --windowed $APP_STYLE --icon="../icon.png" \
--add-data "../taskbar.png:." --add-data "../../studio/web_ui/build:./studio/web_ui/build" \
-n fune --noconfirm --distpath=./desktop/build/dist --workpath=./desktop/build/work \
--specpath=./desktop/build --osx-bundle-identifier=net.scosman.fune \
Expand Down

0 comments on commit 36354bf

Please sign in to comment.