File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,7 +138,51 @@ jobs:
138138 - name : Upload Artifact
139139 uses : actions/upload-artifact@v4
140140 with :
141- name : Mac OS app ${{ github.ref_name }}
141+ name : Mac OS app arm64 ${{ github.ref_name }}
142+ path : ./nuitka_build/installer/*.dmg
143+ if-no-files-found : error
144+
145+ build-mac-os-x86 :
146+ needs : build-user-guide
147+ runs-on : macos-26-intel
148+ steps :
149+ # Check-out repository
150+ - name : Checkout Repo
151+ uses : actions/checkout@v4
152+
153+ # Download the user guide from previous job
154+ - name : Download User Guide
155+ uses : actions/download-artifact@v4
156+ with :
157+ name : user_guide_${{ github.ref_name }}
158+ path : ./scrutiny/
159+
160+ # Setup Python
161+ - name : Setup Python
162+ uses : actions/setup-python@v5
163+ with :
164+ python-version : ' 3.12'
165+
166+ # Fetch all the build dependencies
167+ - name : Install dependencies
168+ run : pip install -e .[build]
169+
170+ # Launch Nuitka
171+ - name : Nuitka build
172+ env :
173+ SCRUTINY_USER_GUIDE_PREBUILT : 1 # Prevent trying to rebuild the user guide.
174+ run : ./scripts/nuitka_build.sh
175+ shell : bash
176+
177+ # Create a DMG file
178+ - name : Create package
179+ run : ./scripts/make_macos_dmg.sh
180+ shell : bash
181+
182+ - name : Upload Artifact
183+ uses : actions/upload-artifact@v4
184+ with :
185+ name : Mac OS app x86 ${{ github.ref_name }}
142186 path : ./nuitka_build/installer/*.dmg
143187 if-no-files-found : error
144188
Original file line number Diff line number Diff line change @@ -42,10 +42,11 @@ DMG_FILE=${OUTPUT_FOLDER}/${DMG_NAME}
4242TEMP_DIR=$( mktemp -d)
4343APP_NAME=" Scrutiny GUI"
4444DST_APP_DIR=" ${TEMP_DIR} /${APP_NAME} .app"
45+ ARCH=$( uname -m)
4546set -x
4647cp -R " ${APP_DIR} " " ${DST_APP_DIR} "
4748ln -s " /Applications" " ${TEMP_DIR} /Applications"
48- hdiutil create -volname " Scrutiny Debugger v${SCRUTINY_VERSION} " -srcfolder " ${TEMP_DIR} " -ov -format UDZO " ${DMG_FILE} "
49+ hdiutil create -volname " Scrutiny Debugger v${SCRUTINY_VERSION} ${ARCH} " -srcfolder " ${TEMP_DIR} " -ov -format UDZO " ${DMG_FILE} "
4950
5051# Finish and cleanup
5152assert_file " $DMG_FILE "
You can’t perform that action at this time.
0 commit comments