Skip to content

Enable ASAR packaging with unpacked generators and writable preferences - #707

Merged
danoli3 merged 4 commits into
openframeworks:masterfrom
danoli3:test-asar-packaging
Nov 9, 2026
Merged

danoli3 merged 4 commits into
openframeworks:masterfrom
danoli3:test-asar-packaging

Conversation

@danoli3

@danoli3 danoli3 commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Pack the GUI assets into app.asar while keeping the native generator executable available to spawn and saving preferences outside the read-only archive.

GUI version is 0.121.0, command-line version is 0.126.0, using Electron 45.2.3. This branch is based on current master, including the merged Apple settings support from #706.

  • Enable ASAR in electron-builder and the Linux packager, unpacking app/**/*. Update macOS universal/archive paths and packaging scripts.
  • Resolve the unpacked generator on every packaged platform; Linux packages now use their bundled generator. Keep the existing Linux development override.
  • Save packaged-app preferences in Electron's user data directory. Read legacy settings as a fallback; development runs still use frontend/settings.json.
  • Document the release version policy in README.md and AGENTS.md: every GUI version bump also increases the CLI version, including GUI-only releases. Add a PR check that rejects missing CLI bumps, decreasing versions and mismatched GUI lockfile versions.
  • Add executable-path and preference tests, plus checks of archive contents and native generator execution in macOS, Windows and Linux packaging CI.

Validation: the release version check passes, with seven acceptance/rejection scenarios verified; the rebuilt CLI reports 0.126.0; all 13 GUI settings and packaging Node tests pass; local macOS arm64 packaging with Electron 45.2.3 succeeds; the code signature verifies; assets are packed and the unpacked generator runs --version, creates an osx project, and updates it successfully. Manual GUI/menu testing is pending. Universal macOS, Windows and Linux packages are left to CI.

@danoli3
danoli3 force-pushed the test-asar-packaging branch from 937cb51 to 9c4dea3 Compare November 9, 2026 07:51
@danoli3
danoli3 marked this pull request as ready for review November 9, 2026 09:36
@danoli3
danoli3 merged commit d21dd59 into openframeworks:master Nov 9, 2026
6 of 7 checks passed
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.

1 participant