Исправить production builder для старых CPU без AVX2 и обновить документацию сборки
This commit is contained in:
@@ -26,11 +26,16 @@ prepare_stage() {
|
||||
}
|
||||
|
||||
build_orchestrator() {
|
||||
local bun_compile_target="${BUN_COMPILE_TARGET:-bun-linux-x64}"
|
||||
|
||||
log_info "Building orchestrator with Bun compile target: $bun_compile_target"
|
||||
|
||||
(
|
||||
cd orchestrator
|
||||
"$BUN_BIN" install --frozen-lockfile
|
||||
"$BUN_BIN" build src/cli.ts --compile --target=bun-linux-x64 --outfile ../"$STAGE_DIR"/orchestrator/hy2xs-orchestrator
|
||||
"$BUN_BIN" build src/cli.ts --compile --target="$bun_compile_target" --outfile ../"$STAGE_DIR"/orchestrator/hy2xs-orchestrator
|
||||
)
|
||||
|
||||
chmod 0755 "$STAGE_DIR/orchestrator/hy2xs-orchestrator"
|
||||
}
|
||||
|
||||
@@ -90,6 +95,7 @@ write_metadata() {
|
||||
printf 'orchestrator_stack=Bun+TypeScript\n'
|
||||
printf 'go_version=%s\n' "$($GO_BIN version)"
|
||||
printf 'bun_version=%s\n' "$($BUN_BIN --version)"
|
||||
printf 'bun_compile_target=%s\n' "${BUN_COMPILE_TARGET:-unknown}"
|
||||
printf 'node_version=%s\n' "$($NODE_BIN --version)"
|
||||
printf 'pnpm_version=%s\n' "$($PNPM_BIN --version)"
|
||||
printf 'hysteria_source=official-upstream\n'
|
||||
|
||||
Reference in New Issue
Block a user