返回 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 and no macOS DMG unless explicitly overridden.
6 set -euo pipefail
7
8 if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
9 cat <<'EOF'
10 Usage:
11 ./prod_fast_test [platform] [version] [channel]
12
13 Examples:
14 ./prod_fast_test
15 ./prod_fast_test darwin/arm64
16 ./prod_fast_test darwin/arm64 v0.0.0-fast stable
17
18 Fast defaults:
19 platform native host architecture; macOS uses darwin/arm64 or darwin/amd64
20 dmg skipped by default; set DESKTOP_BUILD_SKIP_DMG=0 to create it
21
22 This delegates to ./prod_test with PROD_TEST_FAST=1.
23 EOF
24 exit 0
25 fi
26
27 SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
28 export PROD_TEST_FAST="${PROD_TEST_FAST:-1}"
29 exec "$SCRIPT_DIR/prod_test" "$@"
30
30 lines Plain Text