优化:Mac 系统下全屏不能退出问题,Mac 系统下隐藏窗口自动隐藏图标 #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
arch: [arm64, amd64] | |
- os: macos-latest | |
arch: [arm64, amd64] | |
- os: windows-latest | |
arch: [arm64, amd64] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Build Prepare (macOS) | |
if: runner.os == 'macOS' | |
run: | | |
brew install python-setuptools | |
- name: Install Dependencies | |
run: npm install | |
- name: Build Release Files | |
run: npm run build | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: | | |
dist-release/*.exe | |
dist-release/*.dmg | |
dist-release/*.AppImage | |
dist-release/*.deb | |