Track published package artifacts
This commit is contained in:
+1
-5
@@ -1,11 +1,7 @@
|
||||
/.idea/
|
||||
/vendor/
|
||||
packages/
|
||||
build-logs/
|
||||
*.ipk
|
||||
*.apk
|
||||
build-ipk.sh
|
||||
build-apk.sh
|
||||
packages/24.10/x86_64/*.ipk
|
||||
.codex
|
||||
/*.json
|
||||
/*.srs
|
||||
|
||||
+10
-7
@@ -91,13 +91,16 @@ build_binary() {
|
||||
fi
|
||||
|
||||
echo "=== Building sing-box for GOARCH=$goarch ===" | tee -a "$LOG_FILE"
|
||||
run "${env_cmd[@]}" "$GO_BIN" build \
|
||||
-buildvcs=false \
|
||||
-trimpath \
|
||||
-tags "$tags" \
|
||||
-ldflags "$ldflags" \
|
||||
-o "$output" \
|
||||
./cmd/sing-box
|
||||
(
|
||||
cd "$PROJECT_DIR"
|
||||
run "${env_cmd[@]}" "$GO_BIN" build \
|
||||
-buildvcs=false \
|
||||
-trimpath \
|
||||
-tags "$tags" \
|
||||
-ldflags "$ldflags" \
|
||||
-o "$output" \
|
||||
./cmd/sing-box
|
||||
)
|
||||
}
|
||||
|
||||
stage_common_tree() {
|
||||
|
||||
+13
-10
@@ -89,13 +89,16 @@ build_binary() {
|
||||
fi
|
||||
|
||||
echo "=== Building sing-box for GOARCH=$goarch ===" | tee -a "$LOG_FILE"
|
||||
run "${env_cmd[@]}" "$GO_BIN" build \
|
||||
-buildvcs=false \
|
||||
-trimpath \
|
||||
-tags "$tags" \
|
||||
-ldflags "$ldflags" \
|
||||
-o "$output" \
|
||||
./cmd/sing-box
|
||||
(
|
||||
cd "$PROJECT_DIR"
|
||||
run "${env_cmd[@]}" "$GO_BIN" build \
|
||||
-buildvcs=false \
|
||||
-trimpath \
|
||||
-tags "$tags" \
|
||||
-ldflags "$ldflags" \
|
||||
-o "$output" \
|
||||
./cmd/sing-box
|
||||
)
|
||||
}
|
||||
|
||||
stage_common_tree() {
|
||||
@@ -208,7 +211,7 @@ set -- "${args[@]}"
|
||||
require_tools
|
||||
reset_go_cache_if_needed
|
||||
|
||||
case "${1:-all}" in
|
||||
case "${1:-arm64}" in
|
||||
arm64)
|
||||
build_arm64
|
||||
;;
|
||||
@@ -222,9 +225,9 @@ case "${1:-all}" in
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 [arm64|x86|all] [--force|-f]"
|
||||
echo " all - build IPK packages for arm64 and x86_64 (default)"
|
||||
echo " arm64 - build IPK package for arm64"
|
||||
echo " arm64 - build IPK package for arm64 (default)"
|
||||
echo " x86 - build IPK package for x86_64"
|
||||
echo " all - build IPK packages for arm64 and x86_64"
|
||||
echo ""
|
||||
echo " --force|-f Rebuild with a clean Go cache"
|
||||
exit 1
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user