Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b23815

Browse files
committed
fix x86_64
1 parent bd59041 commit 6b23815

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/build-app-wxpython.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
rm -rf *pay*.dmg
3333
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m pip install -r requirements.txt
3434
35-
- name: Force Universal2 charset for Python
35+
- name: Force x86_64 charset for Python
3636
run: |
3737
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m pip uninstall -y charset_normalizer
38-
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m pip download --platform macosx_10_9_universal2 --only-binary=:all: charset-normalizer
39-
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m pip install charset_normalizer-*-macosx_10_9_universal2.whl
38+
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m pip download --platform macosx_10_13_x86_64 --only-binary=:all: charset-normalizer
39+
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m pip install charset_normalizer-*-macosx_10_13_x86_64.whl
4040
4141
- name: Prepare Assets (--prepare-assets)
4242

OCLP-R-GUI.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ exe = EXE(pyz,
5555
upx=True,
5656
console=False,
5757
disable_windowed_traceback=False,
58-
target_arch="universal2",
58+
target_arch="x86_64",
5959
codesign_identity=None,
6060
entitlements_file=None)
6161

oclp_r/support/translate_language.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def __init__(self, global_constants: Constants) -> None:
1111
try:
1212
self.plist = load(Path(self.global_settings_plist).open("rb"))
1313
self.language_point = self.plist["GUI:language_option"]
14-
except FileNotFoundError:
14+
except Exception:
1515
self.language_point = "English"
1616

1717
def application_entry(self):
@@ -2435,7 +2435,7 @@ def __init__(self, global_constants: Constants) -> None:
24352435
try:
24362436
self.plist = load(Path(self.global_settings_plist).open("rb"))
24372437
self.language_point = self.plist["GUI:language_option"]
2438-
except FileNotFoundError:
2438+
except Exception:
24392439
self.language_point = "English"
24402440
def detect(self):
24412441
if self.language_point=="English":
@@ -2498,7 +2498,7 @@ def __init__(self, global_constants: Constants) -> None:
24982498
try:
24992499
self.plist = load(Path(self.global_settings_plist).open("rb"))
25002500
self.language_point = self.plist["GUI:language_option"]
2501-
except FileNotFoundError:
2501+
except Exception:
25022502
self.language_point = "English"
25032503
def bluetooth(self):
25042504
if self.language_point=="English":

0 commit comments

Comments
 (0)