diff --git a/release.sh b/release.sh index b91acb8..91a8343 100644 --- a/release.sh +++ b/release.sh @@ -26,6 +26,7 @@ TOKEN="$GITEA_API_KEY" GITEA="https://git.site.quack-lab.dev" REPO="dave/flutter-gamer-updater" ZIP="gamer-updater-${TAG}.zip" +APK="gamer-updater-${TAG}.apk" # Create a release RELEASE_RESPONSE=$(curl -s -X POST \ -H "Authorization: token $TOKEN" \ @@ -54,7 +55,8 @@ curl -X POST \ rm $WINRELEASE/$ZIP ANDROIDRELEASE="./build/app/outputs/flutter-apk/" +mv $ANDROIDRELEASE/app-release.apk $ANDROIDRELEASE/$APK curl -X POST \ -H "Authorization: token $TOKEN" \ - -F "attachment=@$ANDROIDRELEASE/app-release.apk" \ - "$GITEA/api/v1/repos/$REPO/releases/${RELEASE_ID}/assets?name=app-release.apk" \ No newline at end of file + -F "attachment=@$ANDROIDRELEASE/$APK" \ + "$GITEA/api/v1/repos/$REPO/releases/${RELEASE_ID}/assets?name=$APK" \ No newline at end of file