Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add Rust core explicit build step to all release scripts
Leendert de Borst0a6039d34d3c
diff --git a/apps/browser-extension/build-and-submit.sh b/apps/browser-extension/build-and-submit.shindex 7da37b6b4..92c11ef48 100755--- a/apps/browser-extension/build-and-submit.sh+++ b/apps/browser-extension/build-and-submit.sh@@ -85,6 +85,13 @@ fi# Build# ------------------------------------------+# Make sure the Rust core is built.+echo ""+echo "🦀 Building Rust core (WASM)…"+pushd "$SCRIPT_DIR" > /dev/null+npm run build:rust+popd > /dev/null+for browser in "${BROWSERS[@]}"; doecho ""echo "🔨 Building $browser…"diff --git a/apps/mobile-app/android/build-and-submit.sh b/apps/mobile-app/android/build-and-submit.shindex 11274149c..c549791cc 100755--- a/apps/mobile-app/android/build-and-submit.sh+++ b/apps/mobile-app/android/build-and-submit.sh@@ -26,7 +26,7 @@ if [ ! -d "$MOBILE_CORE_DIST/models" ] || [ ! -d "$MOBILE_CORE_DIST/vault" ]; thecho "Building core libraries..."pushd "$CORE_DIR" > /dev/nullchmod +x build-and-distribute.sh- ./build-and-distribute.sh+ ./build-and-distribute.sh --androidpopd > /dev/nullecho "Core libraries built successfully"fidiff --git a/apps/mobile-app/ios/build-and-submit.sh b/apps/mobile-app/ios/build-and-submit.shindex d6cc93ae4..a0d86cdf9 100755--- a/apps/mobile-app/ios/build-and-submit.sh+++ b/apps/mobile-app/ios/build-and-submit.sh@@ -24,7 +24,7 @@ if [ ! -d "$MOBILE_CORE_DIST/models" ] || [ ! -d "$MOBILE_CORE_DIST/vault" ]; thecho "Building core libraries..."pushd "$CORE_DIR" > /dev/nullchmod +x build-and-distribute.sh- ./build-and-distribute.sh+ ./build-and-distribute.sh --iospopd > /dev/nullecho "Core libraries built successfully"fidiff --git a/core/rust/build.sh b/core/rust/build.shindex 821eeda94..0ea4f8817 100755--- a/core/rust/build.sh+++ b/core/rust/build.sh@@ -64,6 +64,17 @@ compute_source_checksum() {fi}+# Cargo profile this invocation produces. The incremental checksum embeds it so a+# debug (--fast) build never satisfies a later release build: sources are identical,+# but the distributed artifacts are not, and they share one output path.+current_cargo_profile() {+ if $FAST_MODE; then+ echo "debug"+ else+ echo "release"+ fi+}+echo -e "${YELLOW}Checking prerequisites...${NC}"check_tool "rustc" "Visit https://rustup.rs"check_tool "cargo" "Visit https://rustup.rs"@@ -341,7 +352,7 @@ build_ios() {# Incremental build checklocal checksum_file="$IOS_APP_DIST/.rust-core-checksum"local current_checksum=""- current_checksum=$(compute_source_checksum "$SCRIPT_DIR/src")+ current_checksum="$(compute_source_checksum "$SCRIPT_DIR/src")-$(current_cargo_profile)"if $INCREMENTAL && [ "$FORCE_BUILD" = false ] && [ -f "$checksum_file" ] && [ -f "$IOS_APP_DIST/lib/device/libaliasvault_core.a" ]; thenlocal stored_checksum=$(cat "$checksum_file" 2>/dev/null || echo "")@@ -468,7 +479,7 @@ EOF# Save checksum for incremental buildslocal current_checksum=""- current_checksum=$(compute_source_checksum "$SCRIPT_DIR/src")+ current_checksum="$(compute_source_checksum "$SCRIPT_DIR/src")-$(current_cargo_profile)"echo "$current_checksum" > "$IOS_APP_DIST/.rust-core-checksum"# Create README@@ -516,7 +527,7 @@ build_android() {# Incremental build checklocal checksum_file="$ANDROID_APP_DIST/.rust-core-checksum"local current_checksum=""- current_checksum=$(compute_source_checksum "$SCRIPT_DIR/src")+ current_checksum="$(compute_source_checksum "$SCRIPT_DIR/src")-$(current_cargo_profile)"if $INCREMENTAL && [ "$FORCE_BUILD" = false ] && [ -f "$checksum_file" ] && [ -f "$ANDROID_APP_DIST/arm64-v8a/libaliasvault_core.so" ]; thenlocal stored_checksum=$(cat "$checksum_file" 2>/dev/null || echo "")@@ -708,7 +719,7 @@ distribute_android() {# Save checksum for incremental buildslocal current_checksum=""- current_checksum=$(compute_source_checksum "$SCRIPT_DIR/src")+ current_checksum="$(compute_source_checksum "$SCRIPT_DIR/src")-$(current_cargo_profile)"echo "$current_checksum" > "$ANDROID_APP_DIST/.rust-core-checksum"echo -e "${GREEN}Distributed to: $ANDROID_APP_DIST${NC}"