feat(v0.1.1): 周期表五大分区 / 分区与单格改色 / 全屏视线跟随 / 窗口图标 / 跨平台打包

This commit is contained in:
TianXiaRi
2026-12-02 10:27:25 +08:00
parent a9adcd0088
commit 1faee09484
37 changed files with 2477 additions and 127 deletions
+73
View File
@@ -0,0 +1,73 @@
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
target: win
command: npx electron-builder --win zip --x64 --publish never
- os: ubuntu-latest
target: linux
command: npx electron-builder --linux AppImage deb --x64 --publish never
- os: macos-latest
target: mac
command: npx electron-builder --mac dmg zip --x64 --arm64 --publish never
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build renderer + main
run: npm run build
- name: Package
run: ${{ matrix.command }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: SodiumPet-${{ matrix.target }}
path: |
release/*.zip
release/*.AppImage
release/*.deb
release/*.dmg
if-no-files-found: warn
publish:
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Attach to release
uses: softprops/action-gh-release@v2
with:
files: artifacts/**/*
fail_on_unmatched_files: false
generate_release_notes: true