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

v1.0.0 darwin x86 binary cannot be run right away as dev can't be verified #280

Open
balupton opened this issue Nov 10, 2023 · 8 comments
Open

Comments

@balupton
Copy link

“sd” cannot be opened because the developer cannot be verified.

CleanShot 2023-11-11 at 00 08 21@2x

doing the right-click open trick makes it work from then on, however I'm unsure of any programatic way of doing that

@balupton
Copy link
Author

Okay the trick is xattr -d com.apple.quarantine ...

@NoahTheDuke
Copy link

If you open your privacy and security settings, there will appear a password-protected button to let you run the app even tho it's not verified.

@CosmicHorrorDev
Copy link
Collaborator

Thanks for opening the issue. I'll have to poke around and see what all is needed to handle signing the binary

@coolaj86
Copy link

coolaj86 commented Nov 25, 2023

Perhaps adding an install.sh that

  • moves the package into ~/.local/opt/sd/ or ~/.local/{bin,share}
  • runs xattrs on Darwin (macOS)
  • echos the line to add to PATH to put in the shell

@nc7s
Copy link
Contributor

nc7s commented Nov 25, 2023

Kindly consider using Homebrew or MacPorts or nix-darwin. Tarballs aren't really a good way to install CLI programs.

@coolaj86
Copy link

coolaj86 commented Nov 25, 2023

I also just updated https://webinstall.dev/sd for the v1 package structure.

(it uses your uname -srm output to match the correct build for your system and then the download from GitHub happens directly from your terminal - avoiding the need for 500mb of unrelated git history or 50mb of package management history just to download a single file)

@balupton
Copy link
Author

Kindly consider using Homebrew or MacPorts or nix-darwin. Tarballs aren't really a good way to install CLI programs.

Those tools use the tarball.

For myself, the tooling is Dorothy, which now dequarantines bins:

bevry/dorothy@cc23edb

@nc7s
Copy link
Contributor

nc7s commented Nov 26, 2023

Those tools use the tarball.

With, quote, "500mb of unrelated git history or 50mb of package management history". They are complete software package management systems, with features including but not limited to, file hash verification, installation steps tailored to the OS, etc.

But you are right to use anything you like. I shouldn't and won't waste more time on this topic.

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

5 participants