Use 7z LIKE GOD INTENDED IT instead of fucking zip

This commit is contained in:
2025-12-06 01:55:59 +01:00
parent 4d1320161a
commit 8a37ee810a

View File

@@ -24,9 +24,7 @@ echo "Building the binary..."
echo "Creating release zip..."
ZIP="pyfa-${TAG}-win.zip"
cd dist/pyfa
zip -r "../../${ZIP}" .
cd ../..
7z a "${ZIP}" dist/pyfa/*
echo "Creating a release..."
TOKEN="$GITEA_API_KEY"
@@ -56,5 +54,7 @@ curl -X POST \
-H "Authorization: token $TOKEN" \
-F "attachment=@${ZIP}" \
"$GITEA/api/v1/repos/$REPO/releases/${RELEASE_ID}/assets?name=${ZIP}"
rm "${ZIP}"
echo "Release complete! ${ZIP} uploaded to ${TAG}"