feat #14740: updater and release scripts
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user