From 1cfdb14e7552413ef4e041911696fdc3f24816e9 Mon Sep 17 00:00:00 2001 From: Alessandro Genova Date: Tue, 9 Dec 2025 12:55:32 -0500 Subject: [PATCH] ci: automatically generate windows packages --- .github/workflows/package.yml | 7 ++++--- pyproject.toml | 1 + scripts/setup_tauri.sh | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 67ab635..88eb488 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -1,7 +1,7 @@ name: "Package" on: - # workflow_dispatch: # manually triggered + workflow_dispatch: # manually triggered workflow_run: workflows: ["Release"] types: [completed] @@ -21,8 +21,8 @@ jobs: args: '--target x86_64-apple-darwin' - platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04. args: '' - # - platform: 'windows-latest' - # args: '' + - platform: 'windows-latest' + args: '' runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 @@ -36,6 +36,7 @@ jobs: file src/e3sm_quickview/data/globe.vtk file src/e3sm_quickview/data/connectivity.nc echo "LFS file check complete" + shell: bash -l {0} - name: Get version for tagging id: get_version diff --git a/pyproject.toml b/pyproject.toml index 36e0539..64db683 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ dependencies = [ "trame-dataclass>=1.2", "trame-components", "trame-tauri>=0.6.2", + "Pillow", ] [project.optional-dependencies] diff --git a/scripts/setup_tauri.sh b/scripts/setup_tauri.sh index 0f68228..8b3b0c4 100755 --- a/scripts/setup_tauri.sh +++ b/scripts/setup_tauri.sh @@ -5,6 +5,8 @@ set -x pip install . +PVPYTHON_PATH=$(which pvpython.exe) || PVPYTHON_PATH=$(which pvpython) + python -m PyInstaller --clean --noconfirm \ --distpath src-tauri \ --name server --hidden-import pkgutil \ @@ -19,7 +21,7 @@ python -m PyInstaller --clean --noconfirm \ --collect-all paraview \ --collect-all e3sm_quickview \ --hidden-import pkgutil \ - --add-binary="$(which pvpython):." \ + --add-binary="$PVPYTHON_PATH:." \ src/e3sm_quickview/app.py # Generate trame www + quickview