feat: bugfix

This commit is contained in:
2025-12-03 01:28:18 -08:00
parent dbcdf8b8a4
commit ce4abb7e01
15 changed files with 280 additions and 79 deletions
+21 -2
View File
@@ -12,6 +12,10 @@ ifeq ($(OS),Windows_NT)
endif
endif
APP_NAME=HiFastVPN
VERSION_NAME=$(shell grep '^version:' pubspec.yaml | sed 's/version: //;s/+.*//;s/[^0-9.]//g')
VERSION_BUILD=$(shell grep '^version:' pubspec.yaml | sed 's/.*+//;s/[^0-9]//g')
BINDIR=libcore$(SEP)bin
ANDROID_OUT=android$(SEP)app$(SEP)libs
@@ -54,7 +58,7 @@ gen:
dart run build_runner build --delete-conflicting-outputs
translate:
dart run slang
dart run slang --overwrite
@@ -152,9 +156,24 @@ gen_translations: #generating missing translations using google translate
android-release: android-apk-release
android-rename:
@FULL_VER=$(VERSION_NAME).$(VERSION_BUILD); \
OUT_DIR=build/app/outputs/flutter-apk; \
echo "Renaming APKs in $$OUT_DIR to $(APP_NAME)-$$FULL_VER-<ABI>.apk"; \
for SRC in "$$OUT_DIR"/app-*-release.apk; do \
if [ -f "$$SRC" ]; then \
FILENAME=$$(basename "$$SRC"); \
TGT="$$OUT_DIR/$(APP_NAME)-$$FULL_VER-$${FILENAME#app-}"; \
echo "Renaming $$SRC -> $$TGT"; \
mv -v "$$SRC" "$$TGT"; \
else \
echo "Skip $$SRC, file not found"; \
fi; \
done
android-apk-release:
echo flutter build apk --target $(TARGET) $(BUILD_ARGS) --target-platform android-arm,android-arm64,android-x64 --split-per-abi --verbose
flutter build apk --target $(TARGET) $(BUILD_ARGS) --target-platform android-arm,android-arm64,android-x64 --verbose
flutter build apk --target $(TARGET) $(BUILD_ARGS) --target-platform android-arm,android-arm64,android-x64 --verbose
ls -R build/app/outputs
android-aab-release: