Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update core Rust build output paths (#2159)
Leendert de Borst90e5aa351d29
diff --git a/core/build-and-distribute.sh b/core/build-and-distribute.shindex 07941d0d1..9be0eee49 100755--- a/core/build-and-distribute.sh+++ b/core/build-and-distribute.sh@@ -48,7 +48,6 @@ while [[ $# -gt 0 ]]; doecho " --all Build cross-platform targets (browser, dotnet, android)"echo ""echo "Notes:"- echo " - TypeScript utilities, models, and vault are always built"echo " - iOS requires macOS/Xcode, use --ios explicitly (not included in --all)"echo " - If no target is specified, cross-platform targets are built"echo ""@@ -78,7 +77,7 @@ chmod +x ./rust/build.shecho "🚀 Starting build process for selected modules..."echo ""-# Always build common components (TypeScript utilities, models, vault)+# Always build common components (TypeScript models, vault)if $BUILD_COMMON; thenecho "📦 Building common components..."diff --git a/core/rust/README.md b/core/rust/README.mdindex ee9a2008c..bc30a5659 100644--- a/core/rust/README.md+++ b/core/rust/README.md@@ -283,7 +283,7 @@ After building, the outputs are distributed to:| Platform | Output Location | Files ||----------|----------------|-------|-| Browser Extension | `apps/browser-extension/src/utils/dist/core/rust/` | `aliasvault_core.js`, `.wasm`, `.d.ts` |+| Browser Extension | `core/client/wasm/` | `aliasvault_core.js`, `.wasm`, `.d.ts` || Blazor WASM | `apps/server/AliasVault.Client/wwwroot/wasm/` | `aliasvault_core.js`, `.wasm` || iOS | `apps/mobile-app/ios/VaultStoreKit/RustCore/` | `.a`, `.h`, `.swift` || Android | `apps/mobile-app/android/app/src/main/jniLibs/` | `.so` per ABI + `.kt` |diff --git a/core/rust/build.sh b/core/rust/build.shindex 0ea4f8817..2e9d12974 100755--- a/core/rust/build.sh+++ b/core/rust/build.sh@@ -22,7 +22,7 @@ IOS_DIR="$DIST_DIR/ios"ANDROID_DIR="$DIST_DIR/android"# Target directories in consumer apps-BROWSER_EXT_DIST="$SCRIPT_DIR/../../apps/browser-extension/src/utils/dist/core/rust"+BROWSER_EXT_DIST="$SCRIPT_DIR/../client/wasm"BLAZOR_CLIENT_DIST="$SCRIPT_DIR/../../apps/server/AliasVault.Client/wwwroot/wasm"IOS_APP_DIST="$SCRIPT_DIR/../../apps/mobile-app/ios/RustCoreFramework/RustCore"ANDROID_APP_DIST="$SCRIPT_DIR/../../apps/mobile-app/android/app/src/main/jniLibs"@@ -216,7 +216,7 @@ build_browser() {# ============================================distribute_browser() {echo ""- echo -e "${BLUE}Distributing to browser extension...${NC}"+ echo -e "${BLUE}Distributing to the client core package (core/client/wasm)...${NC}"if [ -d "$WASM_DIR" ] && [ -n "$(ls -A "$WASM_DIR" 2>/dev/null)" ]; thenrm -rf "$BROWSER_EXT_DIST"diff --git a/core/vault/build.sh b/core/vault/build.shindex 264c5e823..efd018445 100755--- a/core/vault/build.sh+++ b/core/vault/build.sh@@ -4,8 +4,8 @@ set -e # Stop on errorset -u # Treat unset variables as errors# Define output targets for vault+# TODO: remove this whole copy logic once the web app and mobile apps are migrated to the new coreTARGETS=(- "../../apps/browser-extension/src/utils/dist/core/vault""../../apps/mobile-app/utils/dist/core/vault""../../apps/server/AliasVault.Client/wwwroot/js/dist/core/vault")diff --git a/core/vault/package.json b/core/vault/package.jsonindex f4d775ef5..b857ed225 100644--- a/core/vault/package.json+++ b/core/vault/package.json@@ -3,6 +3,9 @@"version": "1.0.0","main": "dist/index.js","types": "dist/index.d.ts",+ "exports": {+ ".": "./src/index.ts"+ },"scripts": {"build": "tsup","clean": "rm -rf dist",diff --git a/core/vault/src/sql/VaultVersions.ts b/core/vault/src/sql/VaultVersions.tsindex 067d88ada..1c8032888 100644--- a/core/vault/src/sql/VaultVersions.ts+++ b/core/vault/src/sql/VaultVersions.ts@@ -3,7 +3,7 @@* Auto-generated from EF Core migration filenames*/-import { VaultVersion } from "../types/VaultVersion";+import type { VaultVersion } from "../types/VaultVersion";/*** All vault migrations/versions in chronological order.