feat: 增加配置文件复制
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -27,6 +27,10 @@ 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:
|
||||||
@@ -54,6 +58,10 @@ 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:
|
||||||
@@ -81,6 +89,10 @@ 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:
|
||||||
@@ -110,6 +122,10 @@ 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
|
- name: Verify architecture
|
||||||
run: |
|
run: |
|
||||||
file dist/CursorPro | grep "x86_64" || (echo "Wrong architecture" && exit 1)
|
file dist/CursorPro | grep "x86_64" || (echo "Wrong architecture" && exit 1)
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ def sign_up_account(browser, tab):
|
|||||||
if tab.ele("Account Settings"):
|
if tab.ele("Account Settings"):
|
||||||
break
|
break
|
||||||
if tab.ele("@data-index=0"):
|
if tab.ele("@data-index=0"):
|
||||||
code = email_handler.get_verification_code(account)
|
code = email_handler.get_verification_code()
|
||||||
if not code:
|
if not code:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user