Browse Source

Merge branch 'master' of https://github.com/boyrobot/set_github_secret

liuyuqi-dellpc 1 year ago
parent
commit
5d7d38a441
2 changed files with 42 additions and 1 deletions
  1. 4 1
      .github/workflows/build.yml
  2. 38 0
      main.spec

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

@@ -34,13 +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
 
       - name: Build Package
         run: |
-          python -m PyInstaller -F -c  -i favicon.ico --name set_github_secret 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

+ 38 - 0
main.spec

@@ -0,0 +1,38 @@
+# -*- mode: python ; coding: utf-8 -*-
+
+
+a = Analysis(
+    ['main.py'],
+    pathex=[],
+    binaries=[],
+    datas=[],
+    hiddenimports=[_cffi_backend],
+    hookspath=[],
+    hooksconfig={},
+    runtime_hooks=[],
+    excludes=[],
+    noarchive=False,
+)
+pyz = PYZ(a.pure)
+
+exe = EXE(
+    pyz,
+    a.scripts,
+    a.binaries,
+    a.datas,
+    [],
+    name='set_github_secret',
+    debug=False,
+    bootloader_ignore_signals=False,
+    strip=False,
+    upx=True,
+    upx_exclude=[],
+    runtime_tmpdir=None,
+    console=True,
+    disable_windowed_traceback=False,
+    argv_emulation=False,
+    target_arch=None,
+    codesign_identity=None,
+    entitlements_file=None,
+    icon=['favicon.ico'],
+)