-
Notifications
You must be signed in to change notification settings - Fork 1
files scripts release build dmg sh cf8f14e3
ventaphobia edited this page Apr 23, 2026
·
1 revision
- Area: Developer and release scripts.
- This page records the file's current repository role, source metadata, and recent commit history.
- Review nearby tests and commit pages before changing this file.
| Field | Value |
|---|---|
| Source path | scripts/release/build_dmg.sh |
| Wiki area | Developer and release scripts |
| Exists in current checkout | True |
| Size | 1275 bytes |
| Binary | False |
| Line count | 49 |
| Extension | .sh |
None detected.
| Kind | Name | Line |
|---|---|---|
| None detected |
| Commit | Date | Subject |
|---|---|---|
69cc386 |
2026-04-18 | Add DMG release packaging |
3fe35bf |
2026-04-18 | Add DMG release packaging |
- Prefer focused changes that respect the ownership described above.
- If this file touches helper trust, SMC writes, startup, or permissions, update the relevant support docs and tests.
- If this file is generated or an asset manifest, verify the producing workflow instead of hand-editing generated payloads.
#!/bin/zsh
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "$0")/../.." && pwd)"
BUILD_DIR="${BUILD_DIR:-${ROOT_DIR}/build/release}"
APP_PATH="${1:-${BUILD_DIR}/export/Core-Monitor.app}"
DMG_PATH_INPUT="${2:-${BUILD_DIR}/Core-Monitor.dmg}"
DMG_OUTPUT_BASE="${DMG_PATH_INPUT%.dmg}"
DMG_PATH="${DMG_OUTPUT_BASE}.dmg"
RW_DMG_PATH="${BUILD_DIR}/Core-Monitor-rw.dmg"
STAGING_DIR="${BUILD_DIR}/dmg-root"
VOLUME_NAME="${VOLUME_NAME:-Core-Monitor}"
RELEASE_CODE_SIGN_IDENTITY="${RELEASE_CODE_SIGN_IDENTITY:-Developer ID Application}"
if [[ ! -d "${APP_PATH}" ]]; then
echo "App bundle not found at ${APP_PATH}" >&2
exit 1
fi
rm -rf "${STAGING_DIR}" "${RW_DMG_PATH}" "${DMG_PATH}"
mkdir -p "${STAGING_DIR}"
cp -R "${APP_PATH}" "${STAGING_DIR}/Core-Monitor.app"
ln -s /Applications "${STAGING_DIR}/Applications"
hdiutil create \
-volname "${VOLUME_NAME}" \
-srcfolder "${STAGING_DIR}" \
-fs HFS+ \
-format UDRW \
"${RW_DMG_PATH}"
hdiutil convert "${RW_DMG_PATH}" \
-format UDZO \
-imagekey zlib-level=9 \
-o "${DMG_OUTPUT_BASE}"
codesign \
--force \
--sign "${RELEASE_CODE_SIGN_IDENTITY}" \
- Home
- Start Here
- Product Overview
- Runtime Architecture
- Monitoring Pipeline
- Fan Control
- Privileged Helper
- Touch Bar
- Release Automation
- Security Model
- File Index (279)
- Every Commit (401)
- Chronological Change Log
- Removed Parts
- All Deleted Paths
- Branches And Tags
- Wiki Manifest
- Start Here
- Product Overview
- Source Map
- Runtime Architecture
- App Startup And Lifecycle
- Dashboard Architecture
- Menu Bar Architecture
- Monitoring Pipeline
- Snapshot Trends And Freshness
- CPU GPU Memory Disk Network
- Battery Power And Thermals
- SMC And Apple Silicon
- Fan Control
- Custom Fan Curves
- Privileged Helper
- XPC Trust Boundary
- Helper Diagnostics
- Touch Bar Architecture
- Touch Bar Customization
- Weather And Location
- Privacy And Permissions
- Onboarding And Help
- Legacy Alerts
- Kernel Panic Weird Mode