Skip to content

Commit 0a720a5

Browse files
authored
Fix AppImage build (#1073)
1 parent fb3c376 commit 0a720a5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/general.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ jobs:
189189
- name: Build the deb package
190190
run: |
191191
VERSION=$(uv run python -c "import ode; print(ode.__version__)")
192-
uv run build.py --onefile --name "opendataeditor-$VERSION.AppImage"
192+
uv run build.py build --onefile --name "opendataeditor-$VERSION.AppImage"
193193
- name: Archive build artifacts
194194
uses: actions/upload-artifact@v4
195195
with:

build.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ def build_application():
8080
# is installed which might not be the case for all of our users.
8181
params.extend(["--add-binary", "C:\\Windows\\system32\\vcomp140.dll:."])
8282

83+
# Allow calling `python build.py build` with extra arguments
84+
# e.g. when building AppImage `python build.py build --onefile --name "opendataeditor-X.Y.Z.AppImage"`
85+
cli_args = sys.argv[2:]
86+
if cli_args:
87+
params.extend(cli_args)
88+
8389
PyInstaller.__main__.run(params)
8490

8591
# Clean the spec file generated by PyInstaller

0 commit comments

Comments
 (0)