Skip to content

Commit 1cfdb14

Browse files
committed
ci: automatically generate windows packages
1 parent ec35b17 commit 1cfdb14

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/package.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "Package"
22

33
on:
4-
# workflow_dispatch: # manually triggered
4+
workflow_dispatch: # manually triggered
55
workflow_run:
66
workflows: ["Release"]
77
types: [completed]
@@ -21,8 +21,8 @@ jobs:
2121
args: '--target x86_64-apple-darwin'
2222
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
2323
args: ''
24-
# - platform: 'windows-latest'
25-
# args: ''
24+
- platform: 'windows-latest'
25+
args: ''
2626
runs-on: ${{ matrix.platform }}
2727
steps:
2828
- uses: actions/checkout@v4
@@ -36,6 +36,7 @@ jobs:
3636
file src/e3sm_quickview/data/globe.vtk
3737
file src/e3sm_quickview/data/connectivity.nc
3838
echo "LFS file check complete"
39+
shell: bash -l {0}
3940

4041
- name: Get version for tagging
4142
id: get_version

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ dependencies = [
3030
"trame-dataclass>=1.2",
3131
"trame-components",
3232
"trame-tauri>=0.6.2",
33+
"Pillow",
3334
]
3435

3536
[project.optional-dependencies]

scripts/setup_tauri.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ set -x
55

66
pip install .
77

8+
PVPYTHON_PATH=$(which pvpython.exe) || PVPYTHON_PATH=$(which pvpython)
9+
810
python -m PyInstaller --clean --noconfirm \
911
--distpath src-tauri \
1012
--name server --hidden-import pkgutil \
@@ -19,7 +21,7 @@ python -m PyInstaller --clean --noconfirm \
1921
--collect-all paraview \
2022
--collect-all e3sm_quickview \
2123
--hidden-import pkgutil \
22-
--add-binary="$(which pvpython):." \
24+
--add-binary="$PVPYTHON_PATH:." \
2325
src/e3sm_quickview/app.py
2426

2527
# Generate trame www + quickview

0 commit comments

Comments
 (0)