Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS Installers #49

Merged
merged 7 commits into from
Jun 6, 2024
Merged

MacOS Installers #49

merged 7 commits into from
Jun 6, 2024

Conversation

trappitsch
Copy link
Owner

Add support for creating installers for CLIs and GUIs on MacOS. Details and discussion are in comments on #33.

In brief:

  • CLI is packaged with applecrates and a .pkg installer is created. This has issues (see docs)
  • GUI is packaged by compiling a minimal .app file and then creating a .dmg file with an arrow to Applications for installation (as used by macos) using dmgbuild.

Several improvements should take place here in the future:

  • CLI uninstaller should uninstall the PyApp folder as well (same as on Windows)
  • GUI dmg creater should accept a configuration file that is typical for dmgbuild

These improvements are not mandatory for a new release, since the basic prinicple is now working and we can improve from here.

Closes #33

most of the code is directly taken from the applecrate github repo.
needs testing, i currently have no idea if this works at all.
tests to be written once it actually works on macos...
- applecrate is used to package CLIs (works)
- GUI: package `.app` by hand, then turn into dmg with dmgbuild
@codecov-commenter
Copy link

codecov-commenter commented Jun 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.76%. Comparing base (acceb8c) to head (5ed0fb6).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
+ Coverage   99.74%   99.76%   +0.01%     
==========================================
  Files          24       25       +1     
  Lines        1581     1669      +88     
==========================================
+ Hits         1577     1665      +88     
  Misses          4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@trappitsch trappitsch mentioned this pull request Jun 6, 2024
@trappitsch trappitsch merged commit 64e5a8f into main Jun 6, 2024
9 checks passed
@trappitsch trappitsch deleted the macos_installers branch June 6, 2024 18:31
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.

Installers for projects
2 participants