Skip to content

Mac pkg#120

Open
tylermlui wants to merge 16 commits intodevfrom
mac-pkg
Open

Mac pkg#120
tylermlui wants to merge 16 commits intodevfrom
mac-pkg

Conversation

@tylermlui
Copy link
Copy Markdown
Contributor

Summary of changes

  • Added build target for creating and signing macos pkg format
  • Added build target for notarizing pkg
  • Added build target for unsigned dmg
  • Tested on local system and James

@tylermlui tylermlui self-assigned this Jan 7, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds macOS PKG installer build and signing capabilities to the build system. It introduces three new build targets for creating signed PKG installers, notarizing them with Apple, and generating unsigned DMG files.

Key Changes

  • Added create-pkg target that builds and signs a macOS PKG installer, including code signing of FlatLaf native libraries
  • Added notarize-pkg target to submit PKG installers to Apple's notarization service
  • Updated icon file references to use a new directory structure and added version-suffixed icon copies for jpackage compatibility

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread build.xml Outdated
Comment thread build.xml Outdated
Comment thread build.xml Outdated
Comment thread build.xml Outdated
<arg line="--app-version ${dmg.version}"/>
<arg line="--vendor 'jdiskmark'"/>
<arg line="--dest ${dist.dir}"/>
<arg line="--resource-dir pkg/macos/images"/>
Copy link

Copilot AI Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The resource directory path is hardcoded while other paths use properties. Consider defining this as a property for consistency and maintainability.

Copilot uses AI. Check for mistakes.
@jamesmarkchan
Copy link
Copy Markdown
Member

@tylermlui what is the current error we're seeing on the mac? @copilot can you start a workflow config for macos pkg format on this branch?

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 24, 2026

@jamesmarkchan I've opened a new pull request, #156, to work on those changes. Once the pull request is ready, I'll request review from you.

@jamesmarkchan
Copy link
Copy Markdown
Member

this looks good to merge @tylermlui

image

tylermlui and others added 2 commits April 18, 2026 13:43
- Replace jpackage --type pkg with pkgbuild + productbuild to prevent
  ad-hoc re-signing that wiped Developer ID signatures
- Add runtime sub-bundle seal step so libjli.dylib passes notarization
- Clean stale app-image dir from jpackage input before bundling
- Add preinstall script to remove existing app before fresh install,
  fixing silent skip when same bundle ID/version already on disk
- Add GitHub Actions workflow for automated macOS PKG build and notarize
- Bump version to 0.7.2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants