Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 45 additions & 1 deletion .github/workflows/scrutiny-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,51 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Mac OS app ${{ github.ref_name }}
name: Mac OS app arm64 ${{ github.ref_name }}
path: ./nuitka_build/installer/*.dmg
if-no-files-found: error

build-mac-os-x86:
needs: build-user-guide
runs-on: macos-26-intel
steps:
# Check-out repository
- name: Checkout Repo
uses: actions/checkout@v4

# Download the user guide from previous job
- name: Download User Guide
uses: actions/download-artifact@v4
with:
name: user_guide_${{ github.ref_name }}
path: ./scrutiny/

# Setup Python
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

# Fetch all the build dependencies
- name: Install dependencies
run: pip install -e .[build]

# Launch Nuitka
- name: Nuitka build
env:
SCRUTINY_USER_GUIDE_PREBUILT: 1 # Prevent trying to rebuild the user guide.
run: ./scripts/nuitka_build.sh
shell: bash

# Create a DMG file
- name: Create package
run: ./scripts/make_macos_dmg.sh
shell: bash

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Mac OS app x86 ${{ github.ref_name }}
path: ./nuitka_build/installer/*.dmg
if-no-files-found: error

Expand Down
3 changes: 2 additions & 1 deletion scripts/make_macos_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ DMG_FILE=${OUTPUT_FOLDER}/${DMG_NAME}
TEMP_DIR=$(mktemp -d)
APP_NAME="Scrutiny GUI"
DST_APP_DIR="${TEMP_DIR}/${APP_NAME}.app"
ARCH=$(uname -m)
set -x
cp -R "${APP_DIR}" "${DST_APP_DIR}"
ln -s "/Applications" "${TEMP_DIR}/Applications"
hdiutil create -volname "Scrutiny Debugger v${SCRUTINY_VERSION}" -srcfolder "${TEMP_DIR}" -ov -format UDZO "${DMG_FILE}"
hdiutil create -volname "Scrutiny Debugger v${SCRUTINY_VERSION} ${ARCH}" -srcfolder "${TEMP_DIR}" -ov -format UDZO "${DMG_FILE}"

# Finish and cleanup
assert_file "$DMG_FILE"
Expand Down
Loading