Skip to content

Commit 7c3de3c

Browse files
authored
bump version to v0.8.5
1 parent ed14a49 commit 7c3de3c

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

globals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import time
2222
from i18n import *
2323

24-
version = "v0.8.4"
24+
version = "v0.8.5"
2525

2626
def agree_terms():
2727
while True:

main.spec

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
11
# -*- mode: python ; coding: utf-8 -*-
2-
from PyInstaller.utils.hooks import collect_all
3-
4-
datas = []
5-
binaries = []
6-
hiddenimports = ['plyer.platforms.win.notification']
7-
tmp_ret = collect_all('readchar')
8-
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
2+
from PyInstaller.utils.hooks import copy_metadata
3+
import platform
94

5+
datas = copy_metadata("readchar")
6+
if platform.system() == "Windows":
7+
name = "BHYG-Windows"
8+
elif platform.system() == "Linux":
9+
name = "BHYG-Linux"
10+
elif platform.system() == "Darwin":
11+
print(platform.machine())
12+
if "arm" in platform.machine():
13+
name = "BHYG-macOS-Apple_Silicon"
14+
elif "64" in platform.machine():
15+
name = "BHYG-macOS-Intel"
16+
else:
17+
name = "BHYG-macOS"
18+
else:
19+
name = "BHYG"
1020

1121
a = Analysis(
1222
['main.py'],
1323
pathex=[],
14-
binaries=binaries,
24+
binaries=[],
1525
datas=datas,
16-
hiddenimports=hiddenimports,
26+
hiddenimports=[],
1727
hookspath=[],
1828
hooksconfig={},
1929
runtime_hooks=[],
20-
excludes=['PyQt5'],
30+
excludes=[],
2131
noarchive=False,
2232
optimize=0,
2333
)
@@ -29,7 +39,7 @@ exe = EXE(
2939
a.binaries,
3040
a.datas,
3141
[],
32-
name='main',
42+
name=name,
3343
debug=False,
3444
bootloader_ignore_signals=False,
3545
strip=False,
@@ -42,4 +52,4 @@ exe = EXE(
4252
target_arch=None,
4353
codesign_identity=None,
4454
entitlements_file=None,
45-
)
55+
)

0 commit comments

Comments
 (0)