This commit is contained in:
LibraHp_0928 2024-11-14 11:52:52 +08:00
parent 20e188851d
commit a428167019
2 changed files with 11 additions and 8 deletions

View File

@ -9,10 +9,13 @@ on:
- gui - gui
workflow_dispatch: workflow_dispatch:
permissions:
contents: write
env: env:
BUILD_NUMBER: 1 BUILD_NUMBER: 1
BUILD_VERSION: 1.0.2 BUILD_VERSION: 1.0.2
PYTHON_VERSION: 3.12.2 PYTHON_VERSION: 3.9.20
FLUTTER_VERSION: 3.24.0 FLUTTER_VERSION: 3.24.0
LATEST_RELEASE_TAG: 'latest' LATEST_RELEASE_TAG: 'latest'
@ -40,7 +43,7 @@ jobs:
- name: Flet Build macOS (aarch64) - name: Flet Build macOS (aarch64)
run: | run: |
flet pack --name GetQzonehistory-latest main.py flet pack --name GetQzonehistory-latest main.py -i .\assets\icon.ico
- name: Zip the macOS (aarch64) build - name: Zip the macOS (aarch64) build
run: | run: |
@ -75,7 +78,7 @@ jobs:
- name: Flet Build macOS (x86_64) - name: Flet Build macOS (x86_64)
run: | run: |
flet pack --name GetQzonehistory-latest main.py flet pack --name GetQzonehistory-latest main.py -i .\assets\icon.ico
- name: Zip the macOS (x86_64) build - name: Zip the macOS (x86_64) build
run: | run: |
@ -110,7 +113,7 @@ jobs:
- name: Flet Build Windows - name: Flet Build Windows
run: | run: |
flet pack --name GetQzonehistory-latest main.py flet pack --name GetQzonehistory-latest main.py -i .\assets\icon.ico
- name: Zip the Windows build using PowerShell - name: Zip the Windows build using PowerShell
shell: pwsh shell: pwsh
@ -150,7 +153,7 @@ jobs:
run: | run: |
gh release delete ${{ env.LATEST_RELEASE_TAG }} --cleanup-tag -y || true gh release delete ${{ env.LATEST_RELEASE_TAG }} --cleanup-tag -y || true
env: env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release and Upload Assets - name: Create Release and Upload Assets
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
@ -159,4 +162,4 @@ jobs:
body: 'This release was created by GitHub Actions automatically. There is the latest version of GetQzonehistory.' body: 'This release was created by GitHub Actions automatically. There is the latest version of GetQzonehistory.'
files: './*.zip' files: './*.zip'
env: env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -4,5 +4,5 @@ pandas==2.2.3
Requests==2.31.0 Requests==2.31.0
openpyxl==3.1.5 openpyxl==3.1.5
dateparser==1.2.0 dateparser==1.2.0
fake-useragent fake-useragent==1.5.1
pyinstaller pyinstaller==6.11.0