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

Can't create installer file on Mac #126

Open
2 tasks done
pranulit opened this issue Jul 12, 2024 · 11 comments
Open
2 tasks done

Can't create installer file on Mac #126

pranulit opened this issue Jul 12, 2024 · 11 comments

Comments

@pranulit
Copy link

pranulit commented Jul 12, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

This is what I get in the terminal:

Using python [ 3.9 ]
Specify an app
Creating dmg image ...
Could not find 120
Traceback (most recent call last):
File "/Users/pranulit/ayon-launcher/tools/build_post_process.py", line 682, in
main()
File "/Users/pranulit/ayon-launcher/tools/build_post_process.py", line 678, in main
create_installer(ayon_root, build_root)
File "/Users/pranulit/ayon-launcher/tools/build_post_process.py", line 648, in create_installer
installer_path = _create_installer(
File "/Users/pranulit/ayon-launcher/tools/build_post_process.py", line 611, in _create_installer
return _create_darwin_installer(*args, **kwargs)
File "/Users/pranulit/ayon-launcher/tools/build_post_process.py", line 588, in _create_darwin_installer
raise ValueError("Failed to create DMG image")
ValueError: Failed to create DMG image
!!!> Failed to create installer
All done. You will find AYON and build log in /Users/pranulit/ayon-launcher/build directory.


Any suggestions how to fix this?

Expected Behavior:

No response

Version

1.0.0

What platform you are running on?

MacOS

Steps To Reproduce:

  1. Install AYON 1.0.4-dev.1 based on build guidelines:
    https://github.com/ynput/ayon-launcher/blob/develop/docs/build_guides/macos.md
  2. try to run ./tools/make.sh make-installer

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

No response

Additional context:

No response

@iLLiCiTiT
Copy link
Member

Hello, did you run ./tools/make.sh build before make-installer?

@pranulit
Copy link
Author

pranulit commented Jul 16, 2024

Yeah, it installed the app just fine. Just having issues with the .dmg and metadata.json (for the installer) file creation

@iLLiCiTiT
Copy link
Member

Could you try to run this command in terminal:

create-dmg --volname "AYON Installer" --windows-pos 200 120 --window-size 600 300 --app-drop-link 100 50 "
{SOME DIR}/AYON-macos.dmg" "{PATH TO CREATED .app FILE}"

Please replae SOME DIR with path to a directory (~ can be used to use user home) and PATH TO CREATED .app FILE should lead to .app in build.

@pranulit
Copy link
Author

Hmmm, gives:

  • Could not find 120

But all paths are right :/

@iLLiCiTiT
Copy link
Member

Hmm, could you try to change --windows-pos 200 120 in the command to --windows-pos 200 160, just to validate that is the 120 which could not be found.

@pranulit
Copy link
Author

Yeah, tried it - same

@iLLiCiTiT
Copy link
Member

We've maybe find out why it is. macOs build does require Rosetta virtualization. You have to set your terminal application to be launched with rosetta virtualization and uninstall and install again most of the packages afterwards (python, pyenv, homebrew etc.).

@pranulit
Copy link
Author

Hmm, I'm running on Mac intel (AMD Radeon Pro 5500M 8 GB
Intel UHD Graphics 630 1536 MB, 2.3 GHz 8-Core Intel Core i9) - so Rosetta virtualization isn't really applicable?

@iLLiCiTiT
Copy link
Member

iLLiCiTiT commented Aug 26, 2024

It is, you have to run and install everything with rosetta virtualization (including terminal, cmake, pyenv, python etc.). So if you want to build it on your own, this is only way how to do it.

( https://support.apple.com/en-us/102527 )

@pranulit
Copy link
Author

The link you provided is for Apple Silicon. As I said I'm running on Mac intel. So all the apps are already running on rosetta essentially.

@iLLiCiTiT
Copy link
Member

Ok, then I don't know, sorry.

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

No branches or pull requests

2 participants