Skip to content

Commit 885e3f4

Browse files
authored
Release: Add build for OSX x86_64 (#363)
1 parent 8e91e6c commit 885e3f4

2 files changed

Lines changed: 47 additions & 2 deletions

File tree

.github/workflows/scrutiny-app.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff 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

scripts/make_macos_dmg.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ DMG_FILE=${OUTPUT_FOLDER}/${DMG_NAME}
4242
TEMP_DIR=$(mktemp -d)
4343
APP_NAME="Scrutiny GUI"
4444
DST_APP_DIR="${TEMP_DIR}/${APP_NAME}.app"
45+
ARCH=$(uname -m)
4546
set -x
4647
cp -R "${APP_DIR}" "${DST_APP_DIR}"
4748
ln -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
5152
assert_file "$DMG_FILE"

0 commit comments

Comments
 (0)