Add version to zip file
This commit is contained in:
@@ -25,6 +25,7 @@ echo "Creating a release..."
|
|||||||
TOKEN="$GITEA_API_KEY"
|
TOKEN="$GITEA_API_KEY"
|
||||||
GITEA="https://git.site.quack-lab.dev"
|
GITEA="https://git.site.quack-lab.dev"
|
||||||
REPO="dave/flutter-gamer-updater"
|
REPO="dave/flutter-gamer-updater"
|
||||||
|
ZIP="gamer-updater-${TAG}.zip"
|
||||||
# Create a release
|
# Create a release
|
||||||
RELEASE_RESPONSE=$(curl -s -X POST \
|
RELEASE_RESPONSE=$(curl -s -X POST \
|
||||||
-H "Authorization: token $TOKEN" \
|
-H "Authorization: token $TOKEN" \
|
||||||
@@ -45,12 +46,12 @@ echo "Release ID: $RELEASE_ID"
|
|||||||
|
|
||||||
echo "Uploading the things..."
|
echo "Uploading the things..."
|
||||||
WINRELEASE="./build/windows/x64/runner/Release/"
|
WINRELEASE="./build/windows/x64/runner/Release/"
|
||||||
7z a $WINRELEASE/shoppinglist.zip $WINRELEASE/*
|
7z a $WINRELEASE/$ZIP $WINRELEASE/*
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: token $TOKEN" \
|
-H "Authorization: token $TOKEN" \
|
||||||
-F "attachment=@$WINRELEASE/shoppinglist.zip" \
|
-F "attachment=@$WINRELEASE/$ZIP" \
|
||||||
"$GITEA/api/v1/repos/$REPO/releases/${RELEASE_ID}/assets?name=shoppinglist.zip"
|
"$GITEA/api/v1/repos/$REPO/releases/${RELEASE_ID}/assets?name=$ZIP"
|
||||||
rm $WINRELEASE/shoppinglist.zip
|
rm $WINRELEASE/$ZIP
|
||||||
|
|
||||||
ANDROIDRELEASE="./build/app/outputs/flutter-apk/"
|
ANDROIDRELEASE="./build/app/outputs/flutter-apk/"
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
|
Reference in New Issue
Block a user