-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Building on macOS 10.15 fails. Can't locate Mac/Memory.pm #3990
Building on macOS 10.15 fails. Can't locate Mac/Memory.pm #3990
Comments
I am on macOS beta 2 as well having the same issue here... using [email protected] / [email protected] |
same issue |
same here |
Guys, today I am going to setup my Raspberry PI and make snap for ARM working. Then, later this week, I will take a look on this issue. Sorry for delay, if it is important for you, you can send PR or donation. |
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
|
@dotconnor Yup, you're right macOS Catalina does not Support 32-bit Apps. |
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. |
Yes, it is only for DMG, because no official tool and open API to perform customization of DMG. electron-builder uses 3rd-party solution, that written in Perl. Should be ported to Go language (from this perl code or from python). |
@UdaraJay Thanks a lot. "build":{
"mac": {
"icon": "build/icons/icon.icns",
"target":"pkg"
}
}
|
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. |
@develar , |
update electron-builder version to 21.2.0 |
* chore: update electron-builder to 21.2.0 Compiling for mac fails on macOS 10.15.1 with the following error: "Can't locate Mac/Memory.pm" The error originates from electron-builder which is now fixed in their latest version. See: electron-userland/electron-builder#3990 * fix: re-add afterSign script
In the end, I changed it to zip type and it succeeded without affecting the automatic update. "build":{ |
…out breaking (electron-userland/electron-builder#3990). Updated CLI colour so visible on black/white bgrounds. Updated dev config so shows full e2e for just dev as in all.
This fixes building on Catalina. Refer to this discussion on electron-builder for why: electron-userland/electron-builder#3990
hdiutil was removed because it uses old APIs, and fails to build. there is no reference in the commit in which it was added to package.json. it looks to me that hdiutil is not maintained. update electron-builder. version 14.5.x is too old and has bugs on macos and Windows. at least, 21.2.x is required to build the code. see electron-userland/electron-builder#3990 for example. for ARCH, `amd64` and `i386` are chosen because they are widely used, and what `uname -m` returns. i'm open for alternatives. there are too many `if: matrix.OS == 'windows'`. just to absorb path separator difference. when Windows Subsystem for Linux, or WSL, is available on hosted GitHub Actions runners, they can be removed. maybe, MSYS2 has solutions, but i did not go father because i need a working workflow first. see available software at: https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md
…out breaking (electron-userland/electron-builder#3990). Updated CLI colour so visible on black/white bgrounds. Updated dev config so shows full e2e for just dev as in all.
macOS Catalina (the oldest macOS version supported by Github Actions)[0] is not supported by our current electron-builder version to build .dmg images[1]. Upgrading electron-builder seems to require upgrading NodeJS' version - and I don't want to get lost into that rabbit hole now. The workaround is to build .pkg versions for macOS distribution - that is supported by our current electron-build [0] https://github.com/actions/virtual-environments/blob/cd920950ecab4754858eb395a1a763ae20deb342/README.md [1] electron-userland/electron-builder#3990 (comment)
* Add Github Actions to test project can build on pushes * Checkout code before trying to build in CI * Delete old TravisCI config So long, and thanks for all the fish! * Fix NodeJS version on CI builds * Run End-to-End tests in CI using xvfb-run * Build on CI on Windows/macOS as a matrix * Preview releasing instances' build from Github Actions I've commented out the country instances for now, just in case * Expose GITHUB_TOKEN for release CI script * Release 1.2.1.1 to test new CI builds * Release 1.2.2 to test new CI releases * Test builds for staging & demo only We're still drafting the workflow, so I don't want to wait for all the instances * Build macOS releases as .pkg macOS Catalina (the oldest macOS version supported by Github Actions)[0] is not supported by our current electron-builder version to build .dmg images[1]. Upgrading electron-builder seems to require upgrading NodeJS' version - and I don't want to get lost into that rabbit hole now. The workaround is to build .pkg versions for macOS distribution - that is supported by our current electron-build [0] https://github.com/actions/virtual-environments/blob/cd920950ecab4754858eb395a1a763ae20deb342/README.md [1] electron-userland/electron-builder#3990 (comment) * Run builds by platform to avoid creating multiple drafts The matrix key's order defines which job runs first[0], so this change will hopefully make all Windows builds ran before their macOS counter-parts, effectively avoiding the race condition between two `release.js` scripts listing the releases at the same time - and then both creating a draft each. It's not a hard guarantee, but if it may be a cheap workaround - and it's not that much of an issue if the workaround fail. [0] https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix * Avoid repeating INSTANCES list in Github Actions This allows us to split release creation and installers upload in two separate jobs, so we avoid creating two different drafts for each release * Test if we need to manually create the Github Release `electron-builder` must be doing it by default * Avoid creating Release Drafts from CI script electron-builder takes care of that * Move Release job into a separate workflow That'll allow us to re-run that step independently. We'll then split it into a workflow per instance. * Rollback version change It was a temporal change to be able to debug the builds. This commit rolls it back so we can merge this branch. See a2f831c
fix mac os 10.15 build error log is "Can't locate Mac/Finder/DSStore.pm in @inc" from: electron-userland/electron-builder#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?
The text was updated successfully, but these errors were encountered: