Compare commits

...

10 Commits

Author SHA1 Message Date
plenarius cbd6f12e92 fix: revert to direct build, runner now has Wine pre-installed
Build & Release / build-linux-win (push) Successful in 5m23s
2026-04-21 14:05:35 -04:00
plenarius 32f68c484c fix: run Windows build inside electronuserland/builder:20-wine container
Build & Release / build-linux-win (push) Failing after 3m5s
2026-04-21 14:00:07 -04:00
plenarius d84de509e4 fix: disable code signing with signtoolOptions.sign null
Build & Release / build-linux-win (push) Failing after 2m24s
2026-04-21 13:13:06 -04:00
plenarius 8b9daf0e74 fix: use forceCodeSigning instead of invalid sign property
Build & Release / build-linux-win (push) Failing after 2m23s
2026-04-21 13:06:41 -04:00
plenarius a6aba24d78 fix: use electron-builder Wine image, disable code signing
Build & Release / build-linux-win (push) Failing after 2m34s
- Runner now uses electronuserland/builder:20-wine which has Node 20,
  Wine, and all build tools pre-installed
- Removed manual Wine/Node setup steps from workflow
- Disabled Windows code signing (no certificate available)
- Simplified workflow to: checkout -> npm ci -> build -> package -> release
2026-04-21 13:01:10 -04:00
plenarius ecf515cecf fix: add wine debug flag and rpm/fakeroot for electron-builder
Build & Release / build-linux-win (push) Failing after 8m49s
2026-04-21 12:40:34 -04:00
plenarius 026b4d1e15 fix: add npm cache, fix release asset upload flow
Build & Release / build-linux-win (push) Failing after 7m49s
2026-04-21 12:30:57 -04:00
plenarius ed200713df fix: add version/description/author for electron-builder
Build & Release / build-linux-win (push) Has been cancelled
2026-04-21 12:30:18 -04:00
plenarius 90d7b05040 fix: remove sudo from release workflow (runner is root)
Build & Release / build-linux-win (push) Failing after 2m36s
2026-04-21 12:27:07 -04:00
plenarius 5be8299e8e fix: use RELEASE_TOKEN secret name in workflow
Build & Release / build-linux-win (push) Failing after 3m25s
2026-04-21 12:22:22 -04:00
3 changed files with 28 additions and 28 deletions
+23 -28
View File
@@ -13,9 +13,8 @@ jobs:
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Verify Wine
run: wine --version || wine64 --version || echo "no wine"
- name: Install dependencies
run: npm ci
@@ -23,40 +22,36 @@ jobs:
- name: Build backend + frontend + electron
run: npm run build:all
- name: Install Wine for Windows cross-compilation
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y --no-install-recommends wine64 wine32
- name: Build Linux AppImage
run: npx electron-builder --linux
run: npx electron-builder --linux --publish never
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_IDENTITY_AUTO_DISCOVERY: "false"
- name: Build Windows Installer
run: npx electron-builder --win
run: npx electron-builder --win --publish never
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_IDENTITY_AUTO_DISCOVERY: "false"
- name: Upload to Gitea Release
uses: actions/upload-artifact@v4
with:
name: installers
path: |
release/*.exe
release/*.AppImage
release/*.yml
- name: Create Gitea Release
- name: Create Gitea Release and upload assets
run: |
TAG="${GITHUB_REF#refs/tags/}"
RELEASE=$(curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
"${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}/releases" \
-d "{\"tag_name\": \"${TAG}\", \"name\": \"Layonara Forge ${TAG}\", \"draft\": false, \"prerelease\": false}")
RELEASE_ID=$(echo "$RELEASE" | python3 -c "import json,sys; print(json.load(sys.stdin)['id'])")
for file in release/*.exe release/*.AppImage release/latest*.yml; do
[ -f "$file" ] || continue
curl -X POST \
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
-F "attachment=@${file}" \
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/tags/${TAG}/assets"
BASENAME=$(basename "$file")
echo "Uploading $BASENAME..."
curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-F "attachment=@${file};filename=${BASENAME}" \
"${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets"
done
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }}
+2
View File
@@ -29,6 +29,8 @@ asar: true
win:
target: nsis
icon: assets/icon.ico
signtoolOptions:
sign: null
nsis:
oneClick: false
allowToChangeInstallationDirectory: true
+3
View File
@@ -1,5 +1,8 @@
{
"name": "layonara-forge",
"version": "0.1.0",
"description": "NWN Development IDE — build, edit, and run a Layonara server with only Docker required",
"author": "Layonara <orth@layonara.com>",
"private": true,
"main": "electron/dist/main.js",
"workspaces": [