Skip to content

Commit e98e13f

Browse files
fix(release): correct desktop artifact upload paths
Use bash for the Windows build step so Electrobun receives the canary env, read Linux installer archives from the artifacts folder after Electrobun moves them there, and compress the signed macOS bundle with the packaged zig-zstd binary. Co-Authored-By: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
1 parent 0c80605 commit e98e13f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release-desktop.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ jobs:
124124
"
125125
126126
- name: Build Electrobun app
127+
shell: bash
127128
env:
128129
ELECTROBUN_ENV: ${{ needs.release-meta.outputs.electrobun_env }}
129130
run: bun run build -- --env="$ELECTROBUN_ENV"
@@ -221,7 +222,7 @@ jobs:
221222
rm -rf "$STAGING_DIR"
222223
223224
TARBALL_PATH="${BUILD_DIR}/Klovi.app.tar"
224-
ZSTD_PATH="${APP_DIR}/Contents/MacOS/zig-zstd"
225+
ZSTD_PATH="apps/desktop/node_modules/electrobun/dist-macos-arm64/zig-zstd"
225226
if [ ! -x "$ZSTD_PATH" ]; then
226227
echo "::error::Expected zig-zstd at $ZSTD_PATH"
227228
exit 1
@@ -346,10 +347,10 @@ jobs:
346347
TARGET_PREFIX="${BUILD_ENV}-linux-${ELECTROBUN_ARCH}"
347348
SOURCE_BUILD_DIR="apps/desktop/build/${SOURCE_PREFIX}"
348349
349-
INSTALLER=$(find "$SOURCE_BUILD_DIR" -maxdepth 1 -type f -name '*Setup*.tar.gz' | head -1)
350+
INSTALLER=$(find apps/desktop/artifacts -maxdepth 1 -type f -name "${SOURCE_PREFIX}-*Setup*.tar.gz" | head -1)
350351
if [ -z "$INSTALLER" ]; then
351-
echo "::error::Expected installer in $SOURCE_BUILD_DIR"
352-
find apps/desktop/build -maxdepth 2 -type f -name '*.tar.gz' 2>/dev/null || true
352+
echo "::error::Expected installer artifact for ${SOURCE_PREFIX}"
353+
find apps/desktop/artifacts -maxdepth 1 -type f -name "${SOURCE_PREFIX}-*" 2>/dev/null || true
353354
exit 1
354355
fi
355356

0 commit comments

Comments
 (0)