From c2bd4d5f8edb6d75536ef193b3db1e4c331f767f Mon Sep 17 00:00:00 2001 From: StableLlama Date: Mon, 27 Apr 2026 23:25:25 +0200 Subject: [PATCH 1/2] Try to fix AppImage build --- .github/workflows/create-release.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 52af04c9..d828d878 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -93,13 +93,37 @@ jobs: uses: actions/download-artifact@v8 with: name: backend-onedir-${{ runner.os }} - path: dist/run_app + path: dist/release + - name: Extract Backend Artifact + run: | + mkdir -p dist/run_app + python - <<'PY' +import os +import tarfile +archive = f"dist/release/backend-onedir-{os.environ['RUNNER_OS']}.tar.gz" +with tarfile.open(archive, 'r:gz') as archive_file: + archive_file.extractall('dist') +PY + ls -la dist/run_app + shell: bash + - name: Verify Extracted Backend Bundle + run: | + python - <<'PY' +import os +import sys +runner_os = os.environ['RUNNER_OS'] +expected = os.path.join('dist', 'run_app', 'run_app.exe' if runner_os == 'Windows' else 'run_app') +if not os.path.isfile(expected): + raise SystemExit(f'Expected backend executable not found after extraction: {expected}') +print(f'Verified backend bundle exists: {expected}') +PY + shell: bash - name: Set version in electron/package.json run: | VERSION="${{ env.RELEASE_VERSION }}" VERSION_CLEAN="${VERSION#v}" # Use python for cross-platform JSON editing to avoid sed incompatibilities - python3 -c "import json; p='electron/package.json'; d=json.load(open(p)); d['version']='${VERSION_CLEAN}'; json.dump(d, open(p, 'w'), indent=2)" + python -c "import json; p='electron/package.json'; d=json.load(open(p)); d['version']='${VERSION_CLEAN}'; json.dump(d, open(p, 'w'), indent=2)" shell: bash - name: Build Electron App run: | From 134a173c471c926687f9dc76494dff5219f8a1dc Mon Sep 17 00:00:00 2001 From: StableLlama Date: Mon, 27 Apr 2026 23:27:51 +0200 Subject: [PATCH 2/2] formating fix --- .github/workflows/create-release.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index d828d878..b88fbf67 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -97,26 +97,12 @@ jobs: - name: Extract Backend Artifact run: | mkdir -p dist/run_app - python - <<'PY' -import os -import tarfile -archive = f"dist/release/backend-onedir-{os.environ['RUNNER_OS']}.tar.gz" -with tarfile.open(archive, 'r:gz') as archive_file: - archive_file.extractall('dist') -PY + python -c "import os, tarfile; archive = f'dist/release/backend-onedir-{os.environ[\"RUNNER_OS\"]}.tar.gz'; tarfile.open(archive, 'r:gz').extractall('dist')" ls -la dist/run_app shell: bash - name: Verify Extracted Backend Bundle run: | - python - <<'PY' -import os -import sys -runner_os = os.environ['RUNNER_OS'] -expected = os.path.join('dist', 'run_app', 'run_app.exe' if runner_os == 'Windows' else 'run_app') -if not os.path.isfile(expected): - raise SystemExit(f'Expected backend executable not found after extraction: {expected}') -print(f'Verified backend bundle exists: {expected}') -PY + python -c "import os; runner_os = os.environ['RUNNER_OS']; expected = os.path.join('dist', 'run_app', 'run_app.exe' if runner_os == 'Windows' else 'run_app'); import sys; import pathlib; expected_path = pathlib.Path(expected); sys.exit(0 if expected_path.is_file() else f'Expected backend executable not found after extraction: {expected}')" shell: bash - name: Set version in electron/package.json run: |