feat #14740: updater and release scripts

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hauke
2026-11-06 11:37:57 +01:00
co-authored by Claude Opus 5.5
parent 345dd01147
commit 74511d791a
15 changed files with 1157 additions and 10 deletions
+12 -1
View File
@@ -3,6 +3,10 @@
# using cargo-xwin (MSVC cross-linking) and makensis for bundling.
#
# Usage: scripts/build-windows.sh
#
# Without an updater signing key (TAURI_SIGNING_PRIVATE_KEY) the installer is
# built without updater artifacts; scripts/build-release.sh sets the key and
# builds the signed release.
set -euo pipefail
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd -P)"
@@ -36,10 +40,17 @@ fi
cd "${REPO_ROOT}"
config_args=()
if [ -z "${TAURI_SIGNING_PRIVATE_KEY:-}" ]; then
echo "No TAURI_SIGNING_PRIVATE_KEY set: building without updater artifacts."
config_args=(--config '{"bundle":{"createUpdaterArtifacts":false}}')
fi
cargo tauri build \
--runner cargo-xwin \
--target "${TARGET}" \
--bundles nsis
--bundles nsis \
"${config_args[@]}"
BUNDLE_DIR="${REPO_ROOT}/target/${TARGET}/release/bundle/nsis"