build: flatpak and deb targets, Gitea Actions workflow

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Your NameandClaude Sonnet 5.5 committed 2026-10-15 12:49:11 +02:00
1 parent d5d25eaf46
commit 1c16b743d8
2 files changed
+84 -2

No files matched your search

+57
View File
@@ -0,0 +1,57 @@
# Builds Ink for Linux and Windows on every v* tag (or by hand) on a Gitea Actions runner.
# macOS needs a Mac runner labelled "macos"; the job below stays off until you add one.
name: build
on:
push:
tags: ['v*']
workflow_dispatch:
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Tools
run: |
sudo apt-get update
sudo apt-get install -y flatpak flatpak-builder fakeroot dpkg rpm libarchive-tools
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install -y flathub org.freedesktop.Platform//25.08 org.freedesktop.Sdk//25.08 org.electronjs.Electron2.BaseApp//25.08
npm i -g bun
- run: bun install --frozen-lockfile --ignore-scripts
- run: bun run build
- run: bunx electron-builder --linux AppImage deb flatpak
- uses: actions/upload-artifact@v3
with:
name: linux
path: |
dist/*.AppImage
dist/*.deb
dist/*.flatpak
windows:
runs-on: ubuntu-latest
container: electronuserland/builder:wine
steps:
- uses: actions/checkout@v4
- run: npm i -g bun
- run: bun install --frozen-lockfile --ignore-scripts
- run: bun run build
- run: bunx electron-builder --win nsis
- uses: actions/upload-artifact@v3
with:
name: windows
path: dist/*.exe
# macos:
# runs-on: macos
# steps:
# - uses: actions/checkout@v4
# - run: npm i -g bun
# - run: bun install --frozen-lockfile --ignore-scripts
# - run: bun run build
# - run: bunx electron-builder --mac dmg
# - uses: actions/upload-artifact@v3
# with:
# name: macos
# path: dist/*.dmg