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

MacOS build does not contain electron framework #10

Closed
hjk321 opened this issue May 5, 2021 · 6 comments
Closed

MacOS build does not contain electron framework #10

hjk321 opened this issue May 5, 2021 · 6 comments

Comments

@hjk321
Copy link

hjk321 commented May 5, 2021

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  dyld: Using shared cache: 52762DF1-0E55-3F8B-9588-8169E6D0EB95
Library not loaded: @rpath/Electron Framework.framework/Electron Framework
  Referenced from: /Applications/Spelunky.app/Contents/MacOS/Spelunky Classic HD HTML5
  Reason: no suitable image found.  Did find:
	/Applications/Spelunky.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework: file too short

Full log:
https://pastebin.com/0MmXF57M

@yancharkin
Copy link
Owner

I'm not very familiar with macOS, and I have no access to Mac. I can offer only limited support, but I'll do what I can.
First of all, the build does contain Electron Framework but, for some reason, it is unusable. Before uploading, I tested the build (on macOS 10.10 or 10.11, not sure), and it worked fine. Either something wrong with your system or (more likely) the Electron version included in the build incompatible with recent macOS.

I'm going to update builds to a more recent Electron version, but it may take some time (besides, I can't test macOS build anyway). So if you willing to spend some time, I suggest you not wait and try the following:

@yancharkin
Copy link
Owner

@hjk321 Hello?

@yancharkin
Copy link
Owner

The new build includes the latest Electron. It will be nice if you test it.
https://github.com/yancharkin/SpelunkyClassicHDhtml5/releases

@hjk321
Copy link
Author

hjk321 commented Jun 14, 2021

Sorry for the late response.

Unfortunately, the crash still persists with the same error for 1.1.5 - the embedded electron file is "too short."
This is an Intel Mac on Big Sur. I cannot test on Silicon.

(Additionally, the executable was improperly chmodded, which is unrelated but still of note.)

@yancharkin
Copy link
Owner

yancharkin commented Jun 14, 2021

It looks like you have the same issue: electron-userland/electron-builder#3674
Try to use different software to extract the ZIP file.

@yancharkin
Copy link
Owner

The simplest solution is to use different software to unpack the zip file.

If it doesn't help:

  • download Electron binaries from here (you can try different versions)
  • download spelunky_classic_hd_html5-electron_ready.zip from the releases page
  • extract both archives and place the content of the second archive into the 'Electron.app/Contents/Resources/app/' directory
  • execute 'Electron.app'

Maybe I can solve this issue by repacking the archive with different software, but I do not own Mac and can't test it. If someone is willing to help, drop me a line.

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