Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update scripts folder structure (#2473)

Leendert de Borst71b6722c09e2
diff --git a/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/credentialprovider/OriginVerifier.kt b/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/credentialprovider/OriginVerifier.kt
index 4141c4361..2dbc4f68b 100644
--- a/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/credentialprovider/OriginVerifier.kt
+++ b/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/credentialprovider/OriginVerifier.kt
@@ -40,7 +40,7 @@ class OriginVerifier {
*
* The cached JSON below mirrors Google's published list. We embed it locally so
* the mobile app does not have to call out to a third-party endpoint at runtime.
- * Refresh by running: ./scripts/refresh-external-dependencies.sh passkeys-allowlist
+ * Refresh by running: ./scripts/dependencies/refresh-external-dependencies.sh passkeys-allowlist
*/
// BEGIN_GENERATED: passkeys-allowlist
// Source: https://www.gstatic.com/gpm-passkeys-privileged-apps/apps.json
diff --git a/core/rust/src/credential_matcher/public_suffix/mod.rs b/core/rust/src/credential_matcher/public_suffix/mod.rs
index d6ab45323..57363c707 100644
--- a/core/rust/src/credential_matcher/public_suffix/mod.rs
+++ b/core/rust/src/credential_matcher/public_suffix/mod.rs
@@ -1,7 +1,7 @@
//! Public Suffix List lookup for registrable domain extraction.
//!
//! Rules are extracted from Mozilla's Public Suffix List (<https://publicsuffix.org>) and embedded via `include_str!`.
-//! The list is refreshed by running `scripts/refresh-external-dependencies.sh public-suffix-list`.
+//! The list is refreshed by running `scripts/dependencies/refresh-external-dependencies.sh public-suffix-list`.
use std::collections::HashSet;
use std::sync::LazyLock;
diff --git a/core/rust/src/credential_matcher/public_suffix/public_suffix_list.dat b/core/rust/src/credential_matcher/public_suffix/public_suffix_list.dat
index 2804789a7..b8e04177b 100644
--- a/core/rust/src/credential_matcher/public_suffix/public_suffix_list.dat
+++ b/core/rust/src/credential_matcher/public_suffix/public_suffix_list.dat
@@ -1,7 +1,7 @@
// Mozilla Public Suffix List, rules only: comments and blank lines stripped, internationalized rules in punycode.
// Source: https://publicsuffix.org/list/public_suffix_list.dat
// Upstream version: 2026-09-24_13-26-36_UTC
-// Last refreshed: 2026-09-30 by scripts/refresh-external-dependencies.sh (task public-suffix-list)
+// Last refreshed: 2026-09-30 by scripts/dependencies/refresh-external-dependencies.sh (task public-suffix-list)
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
diff --git a/scripts/README.md b/scripts/README.md
index 863bdcb1e..a4725416b 100644
--- a/scripts/README.md
+++ b/scripts/README.md
@@ -1,2 +1,2 @@
# Scripts
-This folder contains various scripts that help with maintenance or deployment tasks.
+This folder contains various scripts that help with maintenance and release tasks.
diff --git a/scripts/refresh-external-dependencies.sh b/scripts/dependencies/refresh-external-dependencies.sh
similarity index 98%
rename from scripts/refresh-external-dependencies.sh
rename to scripts/dependencies/refresh-external-dependencies.sh
index 51a0cc7fd..a876307bc 100755
--- a/scripts/refresh-external-dependencies.sh
+++ b/scripts/dependencies/refresh-external-dependencies.sh
@@ -27,7 +27,7 @@ if [ -z "${BASH_VERSION:-}" ]; then
fi
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
+REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
TODAY="$(date +%Y-%m-%d)"
# Colors
@@ -193,7 +193,7 @@ header = [
"// Mozilla Public Suffix List, rules only: comments and blank lines stripped, internationalized rules in punycode.",
f"// Source: {url}",
f"// Upstream version: {version}",
- f"// Last refreshed: {today} by scripts/refresh-external-dependencies.sh (task public-suffix-list)",
+ f"// Last refreshed: {today} by scripts/dependencies/refresh-external-dependencies.sh (task public-suffix-list)",
"//",
"// This Source Code Form is subject to the terms of the Mozilla Public",
"// License, v. 2.0. If a copy of the MPL was not distributed with this",
diff --git a/scripts/start-aio-docker-image.sh b/scripts/docker/start-aio-docker-image.sh
similarity index 94%
rename from scripts/start-aio-docker-image.sh
rename to scripts/docker/start-aio-docker-image.sh
index 5701d4038..2a8bfca93 100755
--- a/scripts/start-aio-docker-image.sh
+++ b/scripts/docker/start-aio-docker-image.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Go to root directory
-cd "$(dirname "$0")/.." || exit 1
+cd "$(dirname "$0")/../.." || exit 1
# Build the all-in-one docker image
echo "Building all-in-one docker image..."
diff --git a/scripts/stop-aio-docker-image.sh b/scripts/docker/stop-aio-docker-image.sh
similarity index 100%
rename from scripts/stop-aio-docker-image.sh
rename to scripts/docker/stop-aio-docker-image.sh
diff --git a/scripts/extract-xc-result-screenshots.sh b/scripts/extract-xc-result-screenshots.sh
deleted file mode 100755
index 81db60b84..000000000
--- a/scripts/extract-xc-result-screenshots.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-# Extract the screenshots from the xcresult bundle downloaded from GitHub Actions
-# This can be used for debugging purposes.
-# Requires: brew install chargepoint/xcparse/xcparse
-unzip ~/Downloads/ios-ui-test-results.zip -d ~/Downloads/ios-ui-test-results
-xcparse screenshots ~/Downloads/ios-ui-test-results ~/Downloads/ios-ui-screenshots
\ No newline at end of file
diff --git a/scripts/bump-versions.sh b/scripts/release/bump-versions.sh
similarity index 99%
rename from scripts/bump-versions.sh
rename to scripts/release/bump-versions.sh
index 7cdb7f5c5..6132d19f7 100755
--- a/scripts/bump-versions.sh
+++ b/scripts/release/bump-versions.sh
@@ -18,7 +18,7 @@ RESET='\033[0m'
# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Get the repository root (parent of scripts directory)
-REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
+REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
# Initialize variables
BUILD_ONLY=false
diff --git a/scripts/generate-release-notes.sh b/scripts/release/generate-release-notes.sh
similarity index 100%
rename from scripts/generate-release-notes.sh
rename to scripts/release/generate-release-notes.sh
diff --git a/scripts/local-docker-build-push.sh b/scripts/release/local-docker-build-push.sh
similarity index 86%
rename from scripts/local-docker-build-push.sh
rename to scripts/release/local-docker-build-push.sh
index 36fd3336a..dbcef113b 100755
--- a/scripts/local-docker-build-push.sh
+++ b/scripts/release/local-docker-build-push.sh
@@ -13,7 +13,7 @@ set -e
# - Docker Hub login: docker login (for all-in-one image)
#
# Usage:
-# ./scripts/local-release.sh [options]
+# ./scripts/release/local-docker-build-push.sh [options]
#
# Options:
# --version VERSION Version to release (e.g., 0.26.0). Auto-detected if not specified.
@@ -26,7 +26,7 @@ set -e
# =============================================================================
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
+ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
# Colors
RED='\033[0;31m'
@@ -58,15 +58,15 @@ while [[ $# -gt 0 ]]; do
done
if [[ "$BUILD_MULTI" == "false" && "$BUILD_AIO" == "false" ]]; then
- echo "Usage: ./scripts/local-release.sh [--multi] [--aio] [--all] [options]"
+ echo "Usage: ./scripts/release/local-docker-build-push.sh [--multi] [--aio] [--all] [options]"
echo ""
echo "Examples:"
- echo " ./scripts/local-release.sh --aio # Build & push all-in-one"
- echo " ./scripts/local-release.sh --multi # Build & push multi-container"
- echo " ./scripts/local-release.sh --all # Build everything"
- echo " ./scripts/local-release.sh --aio --dry-run # Preview commands"
- echo " ./scripts/local-release.sh --aio --skip-push # Build locally only"
- echo " ./scripts/local-release.sh --aio --amd64-only # Faster single-platform build"
+ echo " ./scripts/release/local-docker-build-push.sh --aio # Build & push all-in-one"
+ echo " ./scripts/release/local-docker-build-push.sh --multi # Build & push multi-container"
+ echo " ./scripts/release/local-docker-build-push.sh --all # Build everything"
+ echo " ./scripts/release/local-docker-build-push.sh --aio --dry-run # Preview commands"
+ echo " ./scripts/release/local-docker-build-push.sh --aio --skip-push # Build locally only"
+ echo " ./scripts/release/local-docker-build-push.sh --aio --amd64-only # Faster single-platform build"
exit 1
fi
diff --git a/scripts/print-latest-changelogs.sh b/scripts/release/print-latest-changelogs.sh
similarity index 98%
rename from scripts/print-latest-changelogs.sh
rename to scripts/release/print-latest-changelogs.sh
index e56630d71..7061f9bf7 100755
--- a/scripts/print-latest-changelogs.sh
+++ b/scripts/release/print-latest-changelogs.sh
@@ -5,7 +5,7 @@
#
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-ROOT_DIR="$(dirname "$SCRIPT_DIR")"
+ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
METADATA_DIR="$ROOT_DIR/fastlane/metadata"
# Function to get the latest changelog file from a directory
diff --git a/scripts/review-versions.sh b/scripts/release/review-versions.sh
similarity index 57%
rename from scripts/review-versions.sh
rename to scripts/release/review-versions.sh
index 863eb9168..07d7421be 100755
--- a/scripts/review-versions.sh
+++ b/scripts/release/review-versions.sh
@@ -7,67 +7,70 @@ if [ -z "$BASH_VERSION" ]; then
exit 1
fi
+# Run from the repository root so the paths below resolve wherever the script is called from
+cd "$(dirname "${BASH_SOURCE[0]}")/../.." || exit 1
+
# Function to extract version from server AppInfo.cs
get_server_version() {
- local major=$(grep "public const int VersionMajor = " ../apps/server/Shared/AliasVault.Shared/AppInfo.cs | tr -d ';' | tr -d ' ' | cut -d'=' -f2)
- local minor=$(grep "public const int VersionMinor = " ../apps/server/Shared/AliasVault.Shared/AppInfo.cs | tr -d ';' | tr -d ' ' | cut -d'=' -f2)
- local patch=$(grep "public const int VersionPatch = " ../apps/server/Shared/AliasVault.Shared/AppInfo.cs | tr -d ';' | tr -d ' ' | cut -d'=' -f2)
- local stage=$(grep "public const string VersionStage = " ../apps/server/Shared/AliasVault.Shared/AppInfo.cs | cut -d'"' -f2)
+ local major=$(grep "public const int VersionMajor = " apps/server/Shared/AliasVault.Shared/AppInfo.cs | tr -d ';' | tr -d ' ' | cut -d'=' -f2)
+ local minor=$(grep "public const int VersionMinor = " apps/server/Shared/AliasVault.Shared/AppInfo.cs | tr -d ';' | tr -d ' ' | cut -d'=' -f2)
+ local patch=$(grep "public const int VersionPatch = " apps/server/Shared/AliasVault.Shared/AppInfo.cs | tr -d ';' | tr -d ' ' | cut -d'=' -f2)
+ local stage=$(grep "public const string VersionStage = " apps/server/Shared/AliasVault.Shared/AppInfo.cs | cut -d'"' -f2)
echo "$major.$minor.$patch$stage"
}
# Function to extract version from browser extension config
get_browser_extension_version() {
- grep "version: " ../apps/browser-extension/wxt.config.ts | head -n1 | tr -d '"' | tr -d ',' | tr -d ' ' | cut -d':' -f2
+ grep "version: " apps/browser-extension/wxt.config.ts | head -n1 | tr -d '"' | tr -d ',' | tr -d ' ' | cut -d':' -f2
}
# Function to extract version from browser extension package.json
get_browser_extension_package_json_version() {
- grep "\"version\": " ../apps/browser-extension/package.json | tr -d '"' | tr -d ',' | tr -d ' ' | cut -d':' -f2
+ grep "\"version\": " apps/browser-extension/package.json | tr -d '"' | tr -d ',' | tr -d ' ' | cut -d':' -f2
}
# Function to extract version from browser extension ExtensionPlatform.ts
get_browser_extension_ts_version() {
- grep "export const EXTENSION_VERSION = " ../apps/browser-extension/src/platform/ExtensionPlatform.ts | tr -d "'" | tr -d ';' | tr -d ' ' | cut -d'=' -f2
+ grep "export const EXTENSION_VERSION = " apps/browser-extension/src/platform/ExtensionPlatform.ts | tr -d "'" | tr -d ';' | tr -d ' ' | cut -d'=' -f2
}
# Function to extract version from mobile app
get_mobile_app_version() {
- grep "\"version\": " ../apps/mobile-app/app.json | tr -d '"' | tr -d ',' | tr -d ' ' | cut -d':' -f2
+ grep "\"version\": " apps/mobile-app/app.json | tr -d '"' | tr -d ',' | tr -d ' ' | cut -d':' -f2
}
get_mobile_app_ts_version() {
- grep "public static readonly VERSION = " ../apps/mobile-app/utils/AppInfo.ts | tr -d "'" | tr -d ';' | tr -d ' ' | cut -d'=' -f2
+ grep "public static readonly VERSION = " apps/mobile-app/utils/AppInfo.ts | tr -d "'" | tr -d ';' | tr -d ' ' | cut -d'=' -f2
}
# Function to extract version from iOS app
get_ios_version() {
- grep "MARKETING_VERSION = " ../apps/mobile-app/ios/AliasVault.xcodeproj/project.pbxproj | head -n1 | tr -d '"' | tr -d ';' | tr -d ' ' | cut -d'=' -f2
+ grep "MARKETING_VERSION = " apps/mobile-app/ios/AliasVault.xcodeproj/project.pbxproj | head -n1 | tr -d '"' | tr -d ';' | tr -d ' ' | cut -d'=' -f2
}
# Function to extract iOS build number
get_ios_build() {
- grep -A1 "CURRENT_PROJECT_VERSION" ../apps/mobile-app/ios/AliasVault.xcodeproj/project.pbxproj | grep "CURRENT_PROJECT_VERSION = [0-9]\+;" | head -n1 | tr -d ';' | tr -d ' ' | cut -d'=' -f2
+ grep -A1 "CURRENT_PROJECT_VERSION" apps/mobile-app/ios/AliasVault.xcodeproj/project.pbxproj | grep "CURRENT_PROJECT_VERSION = [0-9]\+;" | head -n1 | tr -d ';' | tr -d ' ' | cut -d'=' -f2
}
# Function to extract version from Android app
get_android_version() {
- grep "versionName " ../apps/mobile-app/android/app/build.gradle | head -n1 | tr -d '"' | tr -d ' ' | cut -d'=' -f2 | sed 's/versionName//'
+ grep "versionName " apps/mobile-app/android/app/build.gradle | head -n1 | tr -d '"' | tr -d ' ' | cut -d'=' -f2 | sed 's/versionName//'
}
# Function to extract Android build number
get_android_build() {
- grep "versionCode" ../apps/mobile-app/android/app/build.gradle | grep -E "versionCode [0-9]+" | head -n1 | awk '{print $2}'
+ grep "versionCode" apps/mobile-app/android/app/build.gradle | grep -E "versionCode [0-9]+" | head -n1 | awk '{print $2}'
}
# Function to extract version from Safari extension
get_safari_version() {
- grep "MARKETING_VERSION = " ../apps/browser-extension/build-assets/safari-xcode/AliasVault.xcodeproj/project.pbxproj | head -n1 | tr -d '"' | tr -d ';' | tr -d ' ' | cut -d'=' -f2
+ grep "MARKETING_VERSION = " apps/browser-extension/build-assets/safari-xcode/AliasVault.xcodeproj/project.pbxproj | head -n1 | tr -d '"' | tr -d ';' | tr -d ' ' | cut -d'=' -f2
}
# Function to extract Safari build number
get_safari_build() {
- grep -A1 "CURRENT_PROJECT_VERSION" ../apps/browser-extension/build-assets/safari-xcode/AliasVault.xcodeproj/project.pbxproj | grep "CURRENT_PROJECT_VERSION = [0-9]\+;" | head -n1 | tr -d ';' | tr -d ' ' | cut -d'=' -f2
+ grep -A1 "CURRENT_PROJECT_VERSION" apps/browser-extension/build-assets/safari-xcode/AliasVault.xcodeproj/project.pbxproj | grep "CURRENT_PROJECT_VERSION = [0-9]\+;" | head -n1 | tr -d ';' | tr -d ' ' | cut -d'=' -f2
}
# Collect all versions