Skip to content

Commit 4c8d157

Browse files
Fix package-macos.sh: find worker binary in arch-specific target directory
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 21fd5a1 commit 4c8d157

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Scripts/package-macos.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,14 @@ else
170170
echo "[$STEP/$TOTAL_STEPS] Skipping Rust build (--skip-build)"
171171
STEP=$((STEP + 1))
172172
echo "[$STEP/$TOTAL_STEPS] Skipping Flutter build (--skip-build)"
173-
WORKER_BIN="$PROJECT_ROOT/worker/target/release/vapourbox-worker"
173+
# Search for worker binary in arch-specific and default target directories
174+
if [ "$ARCH" = "arm64" ] && [ -f "$PROJECT_ROOT/worker/target/aarch64-apple-darwin/release/vapourbox-worker" ]; then
175+
WORKER_BIN="$PROJECT_ROOT/worker/target/aarch64-apple-darwin/release/vapourbox-worker"
176+
elif [ "$ARCH" = "x64" ] && [ -f "$PROJECT_ROOT/worker/target/x86_64-apple-darwin/release/vapourbox-worker" ]; then
177+
WORKER_BIN="$PROJECT_ROOT/worker/target/x86_64-apple-darwin/release/vapourbox-worker"
178+
else
179+
WORKER_BIN="$PROJECT_ROOT/worker/target/release/vapourbox-worker"
180+
fi
174181
fi
175182

176183
# Create app bundle structure

0 commit comments

Comments
 (0)