返回 DeepSeek-Reasonix
prod_fast_test
根目录 / prod_fast_test
1 #!/usr/bin/env bash
2 # Fast local production-style desktop package from this checkout.
3 #
4 # This is a convenience wrapper around ./prod_test for iteration builds:
5 # native host architecture, no Wails clean, and no macOS DMG unless explicitly
6 # overridden.
7 set -euo pipefail
8
9 if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
10 cat <<'EOF'
11 Usage:
12 ./prod_fast_test [platform] [version] [channel]
13
14 Examples:
15 ./prod_fast_test
16 ./prod_fast_test darwin/arm64
17 ./prod_fast_test darwin/arm64 v0.0.0-fast stable
18
19 Fast defaults:
20 platform native host architecture; macOS uses darwin/arm64 or darwin/amd64
21 clean skipped by default; set DESKTOP_BUILD_CLEAN=1 to force Wails -clean
22 dmg skipped by default; set DESKTOP_BUILD_SKIP_DMG=0 to create it
23
24 This delegates to ./prod_test with PROD_TEST_FAST=1.
25 EOF
26 exit 0
27 fi
28
29 SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
30 export PROD_TEST_FAST="${PROD_TEST_FAST:-1}"
31 exec "$SCRIPT_DIR/prod_test" "$@"
32
32 lines Plain Text