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

Skip to content

Commit bd59041

Browse files
committed
update python to 3.13
1 parent cc99461 commit bd59041

File tree

5 files changed

+28
-19
lines changed

5 files changed

+28
-19
lines changed

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
name: Build wxPython
1414
runs-on: macos-26
1515
if: github.repository_owner == 'hackdoc'
16+
1617
env:
1718
# GitHub Information
1819
branch: ${{ github.ref }}
@@ -21,36 +22,40 @@ jobs:
2122

2223
steps:
2324
- uses: actions/checkout@v4
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.13'
2429
- name: Install Dependencies
2530
run: |
2631
rm -rf Univ*
2732
rm -rf *pay*.dmg
28-
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip install -r requirements.txt
33+
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m pip install -r requirements.txt
2934
3035
- name: Force Universal2 charset for Python
3136
run: |
32-
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip uninstall -y charset_normalizer
33-
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip download --platform macosx_10_9_universal2 --only-binary=:all: charset-normalizer
34-
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip install charset_normalizer-*-macosx_10_9_universal2.whl
37+
/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
3540
3641
- name: Prepare Assets (--prepare-assets)
3742

3843
run: >
39-
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 Build-Project.command
44+
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 Build-Project.command
4045
--run-as-individual-steps
4146
--prepare-assets
4247
4348
- name: Prepare Application (--prepare-application)
4449
run: >
45-
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 Build-Project.command
50+
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 Build-Project.command
4651
--git-branch "${{ env.branch }}" --git-commit-url "${{ env.commiturl }}" --git-commit-date "${{ env.commitdate }}"
4752
--reset-pyinstaller-cache
4853
--run-as-individual-steps
4954
--prepare-application
5055
5156
- name: Prepare Package (--prepare-package)
5257
run: >
53-
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 Build-Project.command
58+
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 Build-Project.command
5459
--run-as-individual-steps
5560
--prepare-package
5661
- name: Upload AutoPkg Package to Artifacts

.github/workflows/validate.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
python-version: '3.13'
2020
- name: Validate
2121
run: |
22-
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip install --upgrade pip
23-
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip install -r requirements.txt
24-
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip install packaging
25-
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 OCLP-R-GUI.command --validate
22+
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m pip install --upgrade pip
23+
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m pip install -r requirements.txt
24+
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m pip install packaging
25+
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 OCLP-R-GUI.command --validate

oclp_r/support/translate_language.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,10 +1215,12 @@ def gui_install_oc(self):
12151215
"Failed to find any applicable disks":"Failed to find any applicable disks",
12161216
"Volumes on ":"Volumes on ",
12171217
"Installing OpenCore to ":"Installing OpenCore to ",
1218-
"OpenCore has finished installing to disk.\n\nWould you like to update your root patches next?":"OpenCore has finished installing to disk.\n\nWould you like to update your root patches next?",
1218+
"OpenCore has finished installing to disk.":"OpenCore has finished installing to disk.",
1219+
"Would you like to update your root patches next?":"Would you like to update your root patches next?",
12191220
"Success":"Success",
1220-
"OpenCore has finished installing to disk.\n\nYou will need to reboot and hold the Option key and select OpenCore/Boot EFI's option.\n\nWould you like to reboot?":"OpenCore has finished installing to disk.\n\nYou will need to reboot and hold the Option key and select OpenCore/Boot EFI's option.\n\nWould you like to reboot?",
1221-
"OpenCore has finished installing to disk.\n\nYou can eject the drive, insert it into the ":"OpenCore has finished installing to disk.\n\nYou can eject the drive, insert it into the ",
1221+
"You will need to reboot and hold the Option key and select OpenCore/Boot EFI's option.":"You will need to reboot and hold the Option key and select OpenCore/Boot EFI's option.",
1222+
"Would you like to reboot?":"Would you like to reboot?",
1223+
"You can eject the drive, insert it into the ":"You can eject the drive, insert it into the ",
12221224
", reboot, hold the Option key and select OpenCore/Boot EFI's option.":", reboot, hold the Option key and select OpenCore/Boot EFI's option.",
12231225
"An internal error occurred while installing:\n":"An internal error occurred while installing:\n",
12241226
"Available disks:":"Available disks:",
@@ -1240,10 +1242,12 @@ def gui_install_oc(self):
12401242
"Failed to find any applicable disks":"找不到任何适用的磁盘",
12411243
"Volumes on ":"该卷在 ",
12421244
"Installing OpenCore to ":"正在安装 OpenCore 到 ",
1243-
"OpenCore has finished installing to disk.\n\nWould you like to update your root patches next?":"OpenCore 已完成安装到磁盘。\n\n接下来要更新您的根补丁吗?",
1245+
"OpenCore has finished installing to disk.":"OpenCore 已完成安装到磁盘。",
1246+
"Would you like to update your root patches next?":"接下来要更新您的根补丁吗?",
12441247
"Success":"成功",
1245-
"OpenCore has finished installing to disk.\n\nYou will need to reboot and hold the Option key and select OpenCore/Boot EFI's option.\n\nWould you like to reboot?":"OpenCore 已完成安装到磁盘。\n\n您需要重启并按住 Option 键,然后选择 OpenCore/Boot EFI 选项。\n\n要重启吗?",
1246-
"OpenCore has finished installing to disk.\n\nYou can eject the drive, insert it into the ":"OpenCore 已完成安装到磁盘。\n\n您可以弹出驱动器,将其插入 ",
1248+
"You will need to reboot and hold the Option key and select OpenCore/Boot EFI's option.":"您需要重启并按住 Option 键,然后选择 OpenCore/Boot EFI 选项。",
1249+
"Would you like to reboot?":"要重启吗?",
1250+
"You can eject the drive, insert it into the ":"您可以弹出驱动器,将其插入 ",
12471251
", reboot, hold the Option key and select OpenCore/Boot EFI's option.":", 重启,按住 Option 键,然后选择 OpenCore/Boot EFI 选项。",
12481252
"An internal error occurred while installing:\n":"安装过程中发生内部错误:\n"
12491253
}

oclp_r/wx_gui/gui_install_oc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def _invoke_install_oc(self, partition: dict) -> None:
290290
self.constants.update_stage = gui_support.AutoUpdateStages.ROOT_PATCHING
291291
popup_message = wx.MessageDialog(
292292
self,
293-
f"{self.trans['OpenCore has finished installing to disk.\n\nWould you like to update your root patches next?']}", self.trans["Success"],
293+
f"{self.trans['OpenCore has finished installing to disk.']}\n\n{self.trans['Would you like to update your root patches next?']}", self.trans["Success"],
294294
wx.YES_NO | wx.YES_DEFAULT
295295
)
296296
popup_message.ShowModal()

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ requests
22
pyobjc
33
colorama
44
termcolor
5-
wxpython @ https://pypi.tuna.tsinghua.edu.cn/packages/48/20/390530466538829eb8aa75256514d6fd976da2f272a068f4d00f90ab8013/wxPython-4.2.2-cp311-cp311-macosx_10_10_universal2.whl#sha256=0fe3cb940f5da4f0ec61c3cf37e63c0f577f09a7b9a5d3d7cfc59399eb18cb3b
5+
wxpython @ https://wxpython.org/Phoenix/snapshot-builds/wxPython-4.2.2-cp313-cp313-macosx_10_13_universal2.whl
66
pyinstaller
77
packaging
88
py_sip_xnu

0 commit comments

Comments
 (0)