Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.

Commit 5a08842

Browse files
author
cheng zhen
committed
chore: 修改 workflow
1 parent 4054313 commit 5a08842

File tree

2 files changed

+4
-103
lines changed

2 files changed

+4
-103
lines changed

Diff for: .github/workflows/build.mac.yml

-71
This file was deleted.

Diff for: .github/workflows/build.yml

+4-32
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,11 @@ jobs:
2727
run: |
2828
pyinstaller CursorKeepAlive.spec
2929
30-
- name: Copy and rename env file
31-
run: |
32-
copy .env.example dist\.env
33-
3430
- name: Upload Windows artifact
3531
uses: actions/upload-artifact@v4
3632
with:
3733
name: CursorPro-Windows
38-
path: |
39-
dist/CursorPro.exe
40-
dist/.env
34+
path: dist/CursorPro.exe
4135

4236
build-macos-arm64:
4337
runs-on: macos-latest
@@ -60,17 +54,11 @@ jobs:
6054
run: |
6155
pyinstaller CursorKeepAlive.spec
6256
63-
- name: Copy and rename env file
64-
run: |
65-
cp .env.example dist/.env
66-
6757
- name: Upload MacOS ARM artifact
6858
uses: actions/upload-artifact@v4
6959
with:
7060
name: CursorPro-MacOS-ARM64
71-
path: |
72-
dist/CursorPro
73-
dist/.env
61+
path: dist/CursorPro
7462

7563
build-linux:
7664
runs-on: ubuntu-22.04
@@ -93,17 +81,11 @@ jobs:
9381
run: |
9482
pyinstaller CursorKeepAlive.spec
9583
96-
- name: Copy and rename env file
97-
run: |
98-
cp .env.example dist/.env
99-
10084
- name: Upload Linux artifact
10185
uses: actions/upload-artifact@v4
10286
with:
10387
name: CursorPro-Linux
104-
path: |
105-
dist/CursorPro
106-
dist/.env
88+
path: dist/CursorPro
10789

10890
build-macos-intel:
10991
runs-on: macos-latest
@@ -128,21 +110,11 @@ jobs:
128110
run: |
129111
arch -x86_64 python3 -m PyInstaller CursorKeepAlive.spec
130112
131-
- name: Copy and rename env file
132-
run: |
133-
cp .env.example dist/.env
134-
135-
- name: Verify architecture
136-
run: |
137-
file dist/CursorPro | grep "x86_64" || (echo "Wrong architecture" && exit 1)
138-
139113
- name: Upload MacOS Intel artifact
140114
uses: actions/upload-artifact@v4
141115
with:
142116
name: CursorPro-MacOS-Intel
143-
path: |
144-
dist/CursorPro
145-
dist/.env
117+
path: dist/CursorPro
146118

147119
create-release:
148120
needs: [build-windows, build-macos-arm64, build-linux, build-macos-intel]

0 commit comments

Comments
 (0)