Update Makefile

This commit is contained in:
世界 2023-08-30 17:35:40 +08:00
parent c75e32e722
commit ea3731162b
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
4 changed files with 32 additions and 17 deletions

View file

@ -69,13 +69,17 @@ release_install:
go install -v github.com/goreleaser/goreleaser@latest
go install -v github.com/tcnksm/ghr@latest
upload_android:
update_android_version:
go run ./cmd/internal/update_android_version
upload_android:
cd ../sing-box-for-android && ./gradlew :app:assembleRelease
mkdir dist/release_android
cp ../sing-box-for-android/app/build/outputs/apk/release/*.apk dist/release_android
ghr --replace --draft --prerelease -p 3 "v${VERSION}" dist/release_android
release_android: lib_android update_android_version upload_android
publish_android:
cd ../sing-box-for-android && ./gradlew :app:appCenterAssembleAndUploadRelease
@ -140,6 +144,10 @@ update_apple_version:
release_apple: update_apple_version release_ios release_macos release_macos_independent release_tvos
build_apple_beta: update_apple_version build_ios build_macos build_tvos
upload_apple_beta: upload_ios_app_store upload_macos_app_store upload_tvos_app_store
test:
@go test -v ./... && \
cd test && \