Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Building on macOS 10.15 fails. Can't locate Mac/Memory.pm #3990
Which version of electron-builder are you using?
What target are you building for?
I'm on MacOs 10.15 (beta2). While trying to build dmg I get following exception:
Possible issue with Perl on new Mac OS?
Same issue; pretty sure it's related to Catalina not shipping with Perl installed.
I tried installing it myself, but Mac::Carbon and Mac::Memory don't install on 64bit Perl. Went as far as trying to rebuild Perl for 32bit, but looks liked xCode deprecated building for 32bit altogether.
Not only xcode but look like the entire operating system doesn't allow 32bit programs. Running
Also, for anyone that stumbles into this; this is only a problem when trying to package you app into a
*May be different if you're distributing into the mac app store.
All existing solutions, including appdmg, are bad and cannot help to create correctly positioned DMG Windows. Problem — window position is computed from bottom, and not from top. So, as you don't know user display screen height, you cannot correctly set window bounds.
If you will set only size, then Finder will ignore size, and your background image will look ugly.
Irony that used by electron-builder solution in Perl is able to set windows position from top because uses deprecated format. And now Apple killed mac carbon 32-bit completely. Enjoy :(
As I don't have time to convert Perl solution in Go (as Go is the only language that should be used for such tools, forget about nodejs or python), for now following solution is implemented:
I do not have time and plans to implement decent solution (as it was in Perl). First, because Perl solution format is deprecated for ages already, and maybe Apple will drop it sometime. Second, burn in hell, Apple (yes, it seems Apple don't care about developers who don't distribute apps via AppStore).
DropDMG app creates correctly positioned DMG windows. Maybe I will ask ability to reuse DropDMG CLI / support it.
Release will be in 2 days.