Skip to content

Commit 57b6152

Browse files
committed
add intel support
1 parent ad1c512 commit 57b6152

File tree

5 files changed

+49
-15
lines changed

5 files changed

+49
-15
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build wxPython
1+
name: Build App
22
on:
33
push:
44
paths-ignore:
@@ -8,7 +8,7 @@ on:
88
types: [published]
99
jobs:
1010
build:
11-
name: Build wxPython
11+
name: Build ARM64
1212
runs-on: macos-15
1313
if: github.repository_owner == 'pyquick'
1414
permissions:
@@ -24,14 +24,7 @@ jobs:
2424
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m pip install -r requirements.txt
2525
- name: Build Apps
2626
run: |
27-
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 build_project.py
28-
- name: Delete previous pre-release
29-
uses: dev-drprasad/[email protected]
30-
with:
31-
keep_latest: 0
32-
delete_prerelease_only: true
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 build_project_arm64.py
3528
- name: Create (Pre-)Release on Push
3629
if: github.event_name == 'push'
3730
uses: softprops/action-gh-release@v2
@@ -41,9 +34,35 @@ jobs:
4134
body: ${{ github.event.head_commit.message }}
4235
prerelease: true
4336
files: |
44-
./dist/Converter.zip
37+
./dist/Converter_arm64_darwin.zip
4538
./dist/convert.bin
4639
./dist/convertzip.bin
47-
48-
49-
40+
build_intel:
41+
name: Build Intel
42+
runs-on: macos-13
43+
if: github.repository_owner == 'pyquick'
44+
permissions:
45+
contents: write
46+
steps:
47+
- uses: actions/checkout@v4
48+
- name: Set up Python 3.13
49+
uses: actions/setup-python@v5
50+
with:
51+
python-version: '3.13'
52+
- name: Install Dependencies
53+
run: |
54+
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m pip install -r requirements.txt
55+
- name: Build Apps
56+
run: |
57+
/Library/Frameworks/Python.framework/Versions/3.13/bin/python3 build_project_intel.py
58+
- name: Create (Pre-)Release on Push
59+
if: github.event_name == 'push'
60+
uses: softprops/action-gh-release@v2
61+
with:
62+
tag_name: 2.0.0B1
63+
name: 2.0.0 Beta 1
64+
body: ${{ github.event.head_commit.message }}
65+
prerelease: true
66+
files: |
67+
./dist/Converter_intel.zip
68+
File renamed without changes.

build_project_intel.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from build_nk import main
2+
import clean
3+
import buildzip
4+
from setup_ccache import setup_ccache
5+
from patch import _patch_load_command,_patch_sdk_version
6+
if __name__ == "__main__":
7+
clean.clean()
8+
setup_ccache()
9+
main()
10+
_patch_load_command()
11+
_patch_sdk_version()
12+
buildzip.build_zip_intel()

buildzip.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
from support.convertzip import create_zip
22
def build_zip():
33
print("Building Zip")
4-
create_zip("./dist/Converter.zip",["./dist/Converter.app"])
4+
create_zip("./dist/Converter_arm64_darwin.zip",["./dist/Converter.app"])
5+
def build_zip_intel():
6+
print("Building Zip")
7+
create_zip("./dist/Converter_intel.zip",["./dist/Converter.app"])
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)