feat: Add Gitea workflow to build and release the Electron app with cross-compilation for Linux and Windows.
Some checks failed
Build and Release / build-and-release (push) Has been cancelled

This commit is contained in:
Bryan1029384756
2026-02-10 21:34:38 -06:00
parent d93778497c
commit d4f190289d

View File

@@ -16,12 +16,6 @@ jobs:
with: with:
node-version: 20 node-version: 20
- name: Cache Wine apt packages
uses: actions/cache@v4
with:
path: /var/cache/apt/archives
key: wine-apt-${{ runner.os }}
- name: Install Wine (for Windows cross-compile) - name: Install Wine (for Windows cross-compile)
run: | run: |
sudo dpkg --add-architecture i386 sudo dpkg --add-architecture i386
@@ -84,10 +78,11 @@ jobs:
Frontend/Electron/dist/*.AppImage; do Frontend/Electron/dist/*.AppImage; do
[ -f "$file" ] || continue [ -f "$file" ] || continue
FILENAME=$(basename "$file") FILENAME=$(basename "$file")
ENCODED_NAME=$(echo -n "$FILENAME" | jq -sRr @uri)
echo "Uploading: $FILENAME" echo "Uploading: $FILENAME"
curl -X POST -H "Authorization: token $TOKEN" \ curl -X POST -H "Authorization: token $TOKEN" \
-F "attachment=@$file" \ -F "attachment=@$file" \
"$GITEA_URL/api/v1/repos/$REPO/releases/$RELEASE_ID/assets?name=$FILENAME" "$GITEA_URL/api/v1/repos/$REPO/releases/$RELEASE_ID/assets?name=$ENCODED_NAME"
done done
env: env:
GITEA_URL: ${{ secrets.CI_URL }} GITEA_URL: ${{ secrets.CI_URL }}