Skip to content

Commit

Permalink
解决linux版本兼容性问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lunzhiPenxil committed Dec 2, 2023
1 parent c96272d commit 49879fd
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ jobs:
run: |
cp ./OlivOS/hook.py ./OlivOS/hook_bak.py
cp ./OlivOS/hook_pack_debug.py ./OlivOS/hook.py
pyinstaller ./main_debug.spec
pyinstaller ./main_linux.spec
- name: Run artifact
run: |
mkdir OlivOS-PKG
Expand Down Expand Up @@ -374,7 +374,7 @@ jobs:
run: |
cp ./OlivOS/hook.py ./OlivOS/hook_bak.py
cp ./OlivOS/hook_pack_debug.py ./OlivOS/hook.py
pyinstaller ./main_debug.spec
pyinstaller ./main_linux.spec
- name: Run artifact
run: |
mkdir OlivOS-PKG
Expand Down
37 changes: 37 additions & 0 deletions main_linux.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# -*- mode: python ; coding: utf-8 -*-

block_cipher = None


a = Analysis(['main.py'],
pathex=['./'],
binaries=[],
datas=[],
hiddenimports=[
'websockets.legacy.auth',
'websockets.legacy.client',
'websockets.legacy.server'
],
hookspath=['./hook'],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='main',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir='./runtime/',
console=True , icon='resource/favoricon.ico')

0 comments on commit 49879fd

Please sign in to comment.