chore: 修改 workflow

This commit is contained in:
cheng zhen
2025-01-10 21:22:14 +08:00
parent 40543131c6
commit 5a08842c87
2 changed files with 4 additions and 103 deletions

View File

@@ -27,17 +27,11 @@ jobs:
run: |
pyinstaller CursorKeepAlive.spec
- name: Copy and rename env file
run: |
copy .env.example dist\.env
- name: Upload Windows artifact
uses: actions/upload-artifact@v4
with:
name: CursorPro-Windows
path: |
dist/CursorPro.exe
dist/.env
path: dist/CursorPro.exe
build-macos-arm64:
runs-on: macos-latest
@@ -60,17 +54,11 @@ jobs:
run: |
pyinstaller CursorKeepAlive.spec
- name: Copy and rename env file
run: |
cp .env.example dist/.env
- name: Upload MacOS ARM artifact
uses: actions/upload-artifact@v4
with:
name: CursorPro-MacOS-ARM64
path: |
dist/CursorPro
dist/.env
path: dist/CursorPro
build-linux:
runs-on: ubuntu-22.04
@@ -93,17 +81,11 @@ jobs:
run: |
pyinstaller CursorKeepAlive.spec
- name: Copy and rename env file
run: |
cp .env.example dist/.env
- name: Upload Linux artifact
uses: actions/upload-artifact@v4
with:
name: CursorPro-Linux
path: |
dist/CursorPro
dist/.env
path: dist/CursorPro
build-macos-intel:
runs-on: macos-latest
@@ -128,21 +110,11 @@ jobs:
run: |
arch -x86_64 python3 -m PyInstaller CursorKeepAlive.spec
- name: Copy and rename env file
run: |
cp .env.example dist/.env
- name: Verify architecture
run: |
file dist/CursorPro | grep "x86_64" || (echo "Wrong architecture" && exit 1)
- name: Upload MacOS Intel artifact
uses: actions/upload-artifact@v4
with:
name: CursorPro-MacOS-Intel
path: |
dist/CursorPro
dist/.env
path: dist/CursorPro
create-release:
needs: [build-windows, build-macos-arm64, build-linux, build-macos-intel]