Skip to content

Commit bae0059

Browse files
feat: 切换 macOS 构建
1 parent c9f1f91 commit bae0059

File tree

5 files changed

+27
-5841
lines changed

5 files changed

+27
-5841
lines changed

.github/workflows/release-drafter.yml

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9,53 +9,18 @@ name: Create Release And Upload assets
99
jobs:
1010
create-realese:
1111
name: Create Release
12-
runs-on: ubuntu-latest
13-
outputs:
14-
upload_url: ${{ steps.create_release.outputs.upload_url }}
12+
runs-on: macos-latest
1513
steps:
16-
- name: Install Dependencies
17-
run: |
18-
sudo dpkg --add-architecture i386
19-
sudo apt-get update
20-
sudo apt-get install -y build-essential wine wine32
21-
22-
- name: Checkout code
23-
uses: actions/checkout@v4
24-
25-
- name: Get version
26-
id: get_version
27-
run: |
28-
TAG=$(basename ${GITHUB_REF})
29-
echo "TAG=${TAG}" >> $GITHUB_OUTPUT
30-
31-
- name: Create Release
32-
id: create_release
33-
uses: release-drafter/release-drafter@v6
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
with:
37-
config-name: release-config.yml
38-
version: ${{ steps.get_version.outputs.TAG }}
39-
tag: ${{ steps.get_version.outputs.TAG }}
40-
14+
- uses: actions/checkout@v4
4115
- uses: actions/setup-node@v4
4216
with:
4317
node-version: '20'
4418
cache: 'yarn'
4519

4620
- name: Build Binary
4721
run: |
48-
mkdir -p release
4922
yarn install
5023
yarn build
5124
ls -al release/
52-
53-
- name: Release Upload Assets
54-
uses: softprops/action-gh-release@v2
55-
if: startsWith(github.ref, 'refs/tags/')
56-
with:
57-
draft: true
58-
files: |
59-
release/*
6025
env:
6126
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

assets/icon.png

32.2 KB
Loading

package.json

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "video-player",
33
"private": true,
4-
"version": "0.1.10",
4+
"version": "0.2.0",
55
"type": "module",
66
"main": "dist-electron/main.js",
77
"scripts": {
88
"dev": "vite",
9-
"build": "vite build && electron-builder --mac --win --linux",
9+
"build": "vite build && electron-builder --linux --mac --win",
1010
"preview": "vite preview"
1111
},
1212
"build": {
@@ -38,27 +38,34 @@
3838
"mac": {
3939
"icon": "assets/player.icns",
4040
"identity": null,
41-
"target": [
42-
"dmg",
43-
"zip"
44-
]
41+
"target": {
42+
"target": "default",
43+
"arch": [
44+
"arm64",
45+
"x64"
46+
]
47+
}
4548
},
4649
"win": {
4750
"icon": "assets/icon.ico",
48-
"target": [
49-
{
50-
"target": "nsis",
51-
"arch": [
52-
"ia32"
53-
]
54-
}
55-
]
51+
"target": {
52+
"target": "nsis",
53+
"arch": [
54+
"ia32",
55+
"x64"
56+
]
57+
},
58+
"artifactName": "${productName}-${version}-${arch}.${ext}"
5659
},
5760
"linux": {
58-
"icon": "assets",
59-
"target": [
60-
"zip"
61-
]
61+
"target": {
62+
"target": "AppImage",
63+
"arch": [
64+
"x64",
65+
"arm64"
66+
]
67+
},
68+
"category": "Tool"
6269
}
6370
},
6471
"dependencies": {

0 commit comments

Comments
 (0)