diff --git a/pubspec.yaml b/pubspec.yaml index 57f65f0..d4bc15f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.9.12 +version: 0.9.13 environment: sdk: ^3.10.1 diff --git a/release.sh b/release.sh index 0295dd3..65b15c5 100755 --- a/release.sh +++ b/release.sh @@ -1,15 +1,5 @@ #!/bin/bash set -euo pipefail -flutter clean -flutter pub get -flutter build apk --release -cp build/app/outputs/flutter-apk/app-release.apk ./release/eggtimer.apk -echo "APK built and copied to ./release/eggtimer.apk" -GITEA_URL="https://git.ude-consult.de" -GITEA_TOKEN="6ea286299e8e081d9923d5deea2fbd91ad83dc8e" -OWNER="Arnold" -REPO="EggTimer" -APK_PATH="release/eggtimer.apk" PUBSPEC="pubspec.yaml" @@ -29,6 +19,17 @@ echo "Neue Version: $new" sed -i "s/^version: .*/version: ${new}/" "$PUBSPEC" +flutter clean +flutter pub get +flutter build apk --release +cp build/app/outputs/flutter-apk/app-release.apk ./release/eggtimer.apk +echo "APK built and copied to ./release/eggtimer.apk" +GITEA_URL="https://git.ude-consult.de" +GITEA_TOKEN="6ea286299e8e081d9923d5deea2fbd91ad83dc8e" +OWNER="Arnold" +REPO="EggTimer" +APK_PATH="release/eggtimer.apk" + # Version z.B. aus Datei oder Argument VERSION_TAG=$(grep "^version:" pubspec.yaml | awk '{print $2}') git commit -a -m"Version auf ${VERSION_TAG} gesetzt" @@ -69,4 +70,3 @@ curl -sS -X POST \ echo "APK hochgeladen." - diff --git a/release/eggtimer.apk b/release/eggtimer.apk index f58df2e..176897b 100644 Binary files a/release/eggtimer.apk and b/release/eggtimer.apk differ