From d4f190289d8bf675a0f658d3c4288253c5bd20e1 Mon Sep 17 00:00:00 2001 From: Bryan1029384756 <23323626+Bryan1029384756@users.noreply.github.com> Date: Tue, 10 Feb 2026 21:34:38 -0600 Subject: [PATCH] feat: Add Gitea workflow to build and release the Electron app with cross-compilation for Linux and Windows. --- .gitea/workflows/release.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 6795d9c..8eb3e40 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -16,12 +16,6 @@ jobs: with: 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) run: | sudo dpkg --add-architecture i386 @@ -84,10 +78,11 @@ jobs: Frontend/Electron/dist/*.AppImage; do [ -f "$file" ] || continue FILENAME=$(basename "$file") + ENCODED_NAME=$(echo -n "$FILENAME" | jq -sRr @uri) echo "Uploading: $FILENAME" curl -X POST -H "Authorization: token $TOKEN" \ -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 env: GITEA_URL: ${{ secrets.CI_URL }}