-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Add dmgbuild as a dependency to improve mac dmg #2442
Add dmgbuild as a dependency to improve mac dmg #2442
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2442 +/- ##
==========================================
+ Coverage 79.89% 81.35% +1.45%
==========================================
Files 27 28 +1
Lines 4089 4231 +142
==========================================
+ Hits 3267 3442 +175
+ Misses 822 789 -33 ☔ View full report in Codecov by Sentry. |
There are a few paths forward to integrate For context, before we start discussing them, dmgbuild encourages a settings.py file similar to the setup.py cx_freeze uses.
My intent is to try 5 -> 4 -> 1 -> 3 -> 2 and update as needed. Let me know if you have any opinions |
I see dmbuild has a lot of options. Using settings.py has some advantages, such as using the Info.plist generated by bdist_mac (from what I saw on example), but it requires using another configuration file. We can think about how bdist_rpm was made. Rpm needs a .spec file and this file is generated by the options that the user passes, so the user does not need to deal with the .spec format. I believe that the finalize_options function can be built based on the load_json function. |
For some of these options, like icon: https://dmgbuild.readthedocs.io/en/latest/settings.html#content-settings Is this something better pulled from the bdist_mac config or should they be exposed here? Current output:
|
It must be pulled from the bdist_mac configuration, but sometimes if the user does not realize this inheritance, it can cause confusion. So if possible inherit the configuration, but also expose it. |
I’ll reuse the pattern from app image in that case |
Still working on this, don’t worry :) |
Is there a way to get Ruff to stop complaining about the commented-out code in Also can we change the CI to not always fail on failing to upload to codecov |
To ignore all violations across an entire file, add the line # ruff: noqa anywhere in the file, preferably towards the top, like so:
But, the real fail is: |
It's getting really good, huh? |
This one is probably a better example of what I was talking about. There’s likely failures in that last commit because it was my end of day commit. It triggered the ruff comment because it wouldn’t let me commit to the pr with issues without doing —no-verify https://github.com/marcelotduarte/cx_Freeze/actions/runs/9472361645/job/26097601102 |
Earlier I modified a test exactly to see if it passed the tests. It was just to see if they passed the test. But you should ignore the comments for now. |
Updated the code to pass the tests. |
After this, I'll be working on licensing display for MSI if you have any resources to share 😄 |
The codecov/coverage is very interesting as it helps to resolve some errors. But it has this error, when a contributor makes more than one commit (apparently that's it), it gives this error, and I have to change the token. |
d7dd499
to
03a0495
Compare
After a rebase, the tests pass, including coverage. |
Awesome! Let me know any changes required to get merged, and I'll keep an eye on this 😄 |
I'll let you know later. |
03a0495
to
d733510
Compare
I can work on the changes requested here in a few hours. We currently don’t use a GUI and if we did so it may be a web ui. Not sure for now. We will be doing code signing but I don’t have any certs on hand to do so yet |
4d45919
to
2b2d8a9
Compare
2b2d8a9
to
4538183
Compare
You can test the PRs in the latest development build (dev31): |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
5b5edd3
to
5befc25
Compare
Anything needed here? |
spare time ;-) Thanks! |
I'll see if I can code a Time Machine up. No promises |
Background
The current bdist_dmg command is limited in its functionality, to mainly the
Changes
This PR
Related
Discussed in #2438 and closes #2438
Closes #2441