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 589c881
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5,746 deletions.
16 changes: 5 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,7 +38,6 @@ jobs:

- name: Build Binary
run: |
mkdir -p release
yarn install
yarn build
ls -al release/
Expand All @@ -56,6 +48,8 @@ jobs:
with:
draft: true
files: |
release/*
release/*.exe
release/*.zip
release/*.dmg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion 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
Loading

0 comments on commit 589c881

Please sign in to comment.