Compare commits
10 Commits
3329d09a33
...
v0.1.0
| Author | SHA1 | Date | |
|---|---|---|---|
| cbd6f12e92 | |||
| 32f68c484c | |||
| d84de509e4 | |||
| 8b9daf0e74 | |||
| a6aba24d78 | |||
| ecf515cecf | |||
| 026b4d1e15 | |||
| ed200713df | |||
| 90d7b05040 | |||
| 5be8299e8e |
@@ -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 }}
|
||||
|
||||
@@ -29,6 +29,8 @@ asar: true
|
||||
win:
|
||||
target: nsis
|
||||
icon: assets/icon.ico
|
||||
signtoolOptions:
|
||||
sign: null
|
||||
nsis:
|
||||
oneClick: false
|
||||
allowToChangeInstallationDirectory: true
|
||||
|
||||
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user