Browse Source

修改为命令方式

boyrobot 6 months ago
parent
commit
5cdf6e782e
2 changed files with 5 additions and 6 deletions
  1. 4 5
      .github/workflows/build.yml
  2. 1 1
      main.spec

+ 4 - 5
.github/workflows/build.yml

@@ -34,17 +34,16 @@ jobs:
 
       - name: Install Dependencies
         run: |
+        
           python -m pip install --upgrade pip wheel setuptools
           pip install -r requirements.txt
           python -m pip install pyinstaller
 
-# apt update
-# apt install -y python-dev
-# apt install -y python3-dev
-
       - name: Build Package
         run: |
-          python -m PyInstaller main.py
+          python -m PyInstaller -F -c  -i favicon.ico --name set_github_secret --hidden-import=_cffi_backend main.py
+          
+          # python -m PyInstaller main.spec
 
       - name: Update to ali oss
         uses: yizhoumo/setup-ossutil@v1

+ 1 - 1
main.spec

@@ -35,4 +35,4 @@ exe = EXE(
     codesign_identity=None,
     entitlements_file=None,
     icon=['favicon.ico'],
-    )
+)