This repository was archived by the owner on Apr 20, 2025. It is now read-only.
File tree 2 files changed +66
-2
lines changed
2 files changed +66
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Build Mac ARM Executable
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ tags :
8
+ - ' v*'
9
+
10
+ jobs :
11
+ build-macos-arm64 :
12
+ runs-on : macos-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v2
19
+ with :
20
+ python-version : ' 3.x'
21
+
22
+ - name : Install dependencies
23
+ run : |
24
+ python -m pip install --upgrade pip
25
+ pip install pyinstaller
26
+ pip install -r requirements.txt
27
+
28
+ - name : Build MacOS ARM executable
29
+ run : |
30
+ pyinstaller CursorKeepAlive.spec
31
+
32
+ - name : Copy and rename env file
33
+ run : |
34
+ cp .env.example dist/.env
35
+
36
+ - name : Upload MacOS ARM artifact
37
+ uses : actions/upload-artifact@v4
38
+ with :
39
+ name : CursorPro-MacOS-ARM64
40
+ path : |
41
+ dist/CursorPro
42
+ dist/.env
43
+
44
+ create-release :
45
+ needs : [build-macos-arm64]
46
+ runs-on : ubuntu-22.04
47
+ if : startsWith(github.ref, 'refs/tags/')
48
+
49
+ steps :
50
+ - name : Download all artifacts
51
+ uses : actions/download-artifact@v4
52
+ with :
53
+ path : artifacts
54
+
55
+ - name : Create release archives
56
+ run : |
57
+ cd artifacts
58
+ zip -r CursorPro-MacOS-ARM64.zip CursorPro-MacOS-ARM64/
59
+
60
+ - name : Create Release
61
+ uses : softprops/action-gh-release@v1
62
+ with :
63
+ files : |
64
+ artifacts/CursorPro-MacOS-ARM64.zip
65
+ env :
66
+ GITHUB_TOKEN : ${{ secrets.TOKEN }}
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ name: Build Executables
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
7
5
tags :
8
6
- ' v*' # 添加标签触发条件,匹配 v1.0.0 这样的标签
9
7
You can’t perform that action at this time.
0 commit comments