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

Provide macOS binaries (was: "exec format error" when trying to execute binary from "releases") #1

Closed
4kelly opened this issue Nov 29, 2021 · 7 comments
Assignees
Milestone

Comments

@4kelly
Copy link

4kelly commented Nov 29, 2021

OSX Big Sur

  1. Downloaded: md2blog-x86_64-unknown-linux-gnu.zip
  2. Extracted ZIP
➜  ~ chmod 777 ~/Downloads/md2blog
➜  ~ cd ~/Downloads 
➜  Downloads ./md2blog
zsh: exec format error: ./md2blog
➜  Downloads bash md2blog
md2blog: md2blog: cannot execute binary file

Im probably just doing something wrong, but the Deno install worked fine.

@jaredkrinke
Copy link
Owner

jaredkrinke commented Nov 30, 2021

It sounds like the issue is that I didn't provide OS X binaries (only Windows and Linux). Deno supports building x64/ARM binaries for Mac, but I have no way of testing them, so I didn't upload them. Maybe I'll just upload them and hope for the best :)

@jaredkrinke jaredkrinke changed the title "exec format error" when trying to execute binary from "releases" Provide OS X binaries (was: "exec format error" when trying to execute binary from "releases") Nov 30, 2021
@4kelly
Copy link
Author

4kelly commented Nov 30, 2021 via email

@jaredkrinke
Copy link
Owner

jaredkrinke commented Nov 30, 2021

Ok, I updated the release page with macOS binaries. Theoretically they should work the same as "deno install", modulo Deno bugs :)

Thanks for all your help!

@4kelly
Copy link
Author

4kelly commented Nov 30, 2021

Tested and running using the new md2blog-x86_64-apple-darwin.zip.

However, on OSX you have to explicitly "allow" binaries downloaded through Safari via System Preferences Security & Privacy menu.

Users will probably receive this prompt. I'm not familiar with ways to mitigate this.

Screen Shot 2021-11-29 at 11 41 40 PM

Then in settings:

Screen Shot 2021-11-29 at 11 43 09 PM

@jaredkrinke
Copy link
Owner

Yes, this is a Deno limitation: denoland/deno#11154

@jaredkrinke jaredkrinke changed the title Provide OS X binaries (was: "exec format error" when trying to execute binary from "releases") Provide macOS binaries (was: "exec format error" when trying to execute binary from "releases") Dec 1, 2021
@jaredkrinke
Copy link
Owner

Note to self: I need to update the documentation (after which this can be closed):

  • List supported platforms (with caveat that macOS isn't tested)
  • Warn about this error on macOS

@jaredkrinke jaredkrinke self-assigned this Dec 6, 2021
@jaredkrinke
Copy link
Owner

macOS binaries are now produced by the build script (and I uploaded them for the initial release) and macOS support is documented here:

https://jaredkrinke.github.io/md2blog/posts/faq/platforms.html
https://jaredkrinke.github.io/md2blog/posts/faq/common-problems.html#developer-cannot-be-verified-error-on-macos

@jaredkrinke jaredkrinke added this to the 1.1.0 milestone Dec 9, 2021
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