feat: 增加配置文件复制
This commit is contained in:
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -27,6 +27,10 @@ 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:
|
||||
@@ -54,6 +58,10 @@ 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:
|
||||
@@ -81,6 +89,10 @@ 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:
|
||||
@@ -109,7 +121,11 @@ jobs:
|
||||
TARGET_ARCH: 'x86_64'
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user