File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
174181fi
175182
176183# Create app bundle structure
You can’t perform that action at this time.
0 commit comments