Skip to content

Commit

Permalink
feat: 切换 macOS 构建
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Nov 19, 2024
1 parent c9f1f91 commit c3bf7f7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5,810 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,11 @@ name: Create Release And Upload assets
jobs:
create-realese:
name: Create Release
runs-on: ubuntu-latest
runs-on: macos-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Install Dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y build-essential wine wine32
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Get version
id: get_version
Expand All @@ -45,17 +38,21 @@ jobs:

- name: Build Binary
run: |
mkdir -p release
yarn install
yarn build
ls -al release/
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Release Upload Assets
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: |
release/*
release/*.exe
release/*.zip
release/*.dmg
release/*.AppImage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

25 changes: 12 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "dist-electron/main.js",
"scripts": {
"dev": "vite",
"build": "vite build && electron-builder --mac --win --linux",
"build": "vite build && electron-builder --linux --mac --win",
"preview": "vite preview"
},
"build": {
Expand Down Expand Up @@ -38,26 +38,25 @@
"mac": {
"icon": "assets/player.icns",
"identity": null,
"target": [
"dmg",
"zip"
]
"target": {
"target": "default",
"arch": [
"arm64",
"x64"
]
}
},
"win": {
"icon": "assets/icon.ico",
"target": [
{
"target": "nsis",
"arch": [
"ia32"
]
}
]
"nsis"
],
"artifactName": "${productName}-Setup-${version}.${ext}"
},
"linux": {
"icon": "assets",
"target": [
"zip"
"AppImage"
]
}
},
Expand Down
Loading

0 comments on commit c3bf7f7

Please sign in to comment.