-
Notifications
You must be signed in to change notification settings - Fork 332
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
Improvements to MacOS packaging #2733
base: master
Are you sure you want to change the base?
Conversation
markreidvfx
commented
Nov 10, 2019
- ported over changes from appleseed-maya packaging
- package script optionally builds a Application
- package script builds dmg file instead of zip
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
I'm nitpicking but I wonder if the appleseed logo shouldn't be shown in perspective on the drive icon?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more comments.
scripts/appleseed.package.py
Outdated
safe_make_directory(macos) | ||
|
||
# relative symlink for executable | ||
os.symlink('../bin/appleseed-studio', os.path.join(macos, 'appleseed')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the story here is that on macOS we have to rename appleseed.studio
to appleseed-studio
in order to allow double-clicking on the file in the Finder to start the app. Is this workaround still necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see, I was wondering why. I was thinking of just moving the executable too. I was surprised that mac didn't complain about the main executable being a symlink.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, we keep the workaround?
@@ -750,9 +935,34 @@ def get_dependencies_for_file(self, filepath, fix_paths=True, verbose=True): | |||
lib = m.group(1) | |||
|
|||
# Ignore self-references (why do these happen?). | |||
if lib == filename: | |||
if lib == filepath: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a significant change, did you check that it still works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll double check if this is correct, I know why these self references happen so I'll update the comments too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to fix/update the code and comment here? As far as I can tell, the situation hasn't changed since I've made the comment that this was a significant change.
@dictoon how is this for the drive icon instead? I rendered it with appleseed. |
Ah, lovely touch :) The logo is a bit washed out, maybe that can be fixed in post to approach the correct color? |
Lovely! |
Testing your script, I got the following error:
|
Guess there needs to be a .format(lib) there instead |
Hi Mark, I'd love to get this PR merged. Would you mind updating it? I'll also do some more tests in the coming days. Thanks! |
Sorry for the delay, a couple other projects came up. I'll try and get this finished up when I'm back from holidays in the new year! |
cdf5872
to
8292c6c
Compare
8292c6c
to
4637039
Compare
4637039
to
f9d2766
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upon closer inspection, the self-references thing when iterating over dependencies is still pending.
Hi @markreidvfx, thanks your contribution :) Do you still plan on working on that PR? It seems there is very few changes to make before being able to merge it into master. |
Sorry, I got really busy and must have forgotten about this. I'll try and find some time to finish it, just have too many ongoing projects at the moment. If anyone want to take it over, feel free too. |