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