diff --git a/deploy.sh b/deploy.sh index c780395..f89cdca 100755 --- a/deploy.sh +++ b/deploy.sh @@ -21,23 +21,20 @@ KS_ALIAS="itsgoin" VERSION=$(grep '"version"' crates/tauri-app/tauri.conf.json | head -1 | sed 's/.*"\([0-9.]*\)".*/\1/') echo "=== Deploying v${VERSION} ===" -# Build CLI -echo "=== Building CLI ===" -cargo build -p itsgoin-cli --release & -CLI_PID=$! +# Builds run SERIALLY — parallel cargo invocations write to the same +# target/ directory, which causes intermittent failures (linuxdeploy +# blowing up mid-AppImage was the v0.7.0 release symptom). The extra +# wall time vs. the parallel version is small because cargo's +# incremental cache deduplicates the shared core crate compilation. -# Build APK -echo "=== Building APK ===" -cargo tauri android build --apk & -APK_PID=$! - -# Build AppImage (includes GStreamer patch) -echo "=== Building AppImage ===" +echo "=== Building AppImage (includes GStreamer patch) ===" ./build-appimage.sh -wait $CLI_PID -echo "=== CLI build complete ===" -wait $APK_PID -echo "=== APK build complete ===" + +echo "=== Building APK ===" +cargo tauri android build --apk + +echo "=== Building CLI ===" +cargo build -p itsgoin-cli --release # Sign APK echo "=== Signing APK ==="