kolmafia / homebrew-kolmafia

Homebrew tap for KoLmafia. The packages are currently unsigned, meaning that they will not work on most versions of OSX. This is something we plan to fix at some point.
2 stars 1 forks source link

MacOS Error: "KoLmafia.app" is damaged and can’t be opened. #2

Open slifty opened 2 years ago

slifty commented 2 years ago

First: thank you for the homebrew tap, and of course for Mafia in general, this is great!

The Issue

When I open the KoLmafia.app I get a MacOS error:

“KoLmafia.app” is damaged and can’t be opened. You should move it to the Trash.

image

With some extra info if I click the ?

image

This also happens if I download and run the dmg directly, and so if this is an issue with mafia at large I'm happy to move this issue to the forums but wanted to raise it here as well.

What I did

> brew tap kolmafia/homebrew-kolmafia
==> Tapping kolmafia/kolmafia
Cloning into '/opt/homebrew/Library/Taps/kolmafia/homebrew-kolmafia'...
remote: Enumerating objects: 842, done.
remote: Counting objects: 100% (305/305), done.
remote: Compressing objects: 100% (102/102), done.
remote: Total 842 (delta 150), reused 281 (delta 127), pack-reused 537
Receiving objects: 100% (842/842), 75.81 KiB | 7.58 MiB/s, done.
Resolving deltas: 100% (406/406), done.
Tapped 1 cask (16 files, 116.8KB).

> brew install --cask kolmafia
==> Caveats
kolmafia requires Java 17+. You can install the latest version with:
  brew install --cask temurin

==> Downloading https://github.com/kolmafia/kolmafia/releases/download/r26745/KoLmafia-22.09.26745.dmg
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/344505685/1c9f4b06-00fc-
######################################################################## 100.0%
==> Installing Cask kolmafia
==> Moving App 'KoLmafia.app' to '/Applications/KoLmafia.app'
🍺  kolmafia was successfully installed!

My Setup

MacOS 12.4 Chipset: ARM

slifty commented 2 years ago

I dug in the mafia forums and found this thread which I believe is related: https://kolmafia.us/threads/macintosh-sierra-cannot-launch-mafia-17-6-after-downloading-it.21574/

Added more context there.

Some potentially useful / related issues:

https://bugs.openjdk.org/browse/JDK-8276150 https://bugs.openjdk.org/browse/JDK-8254662

It looks like a bug in jpackage (which is now fixed in version 18).

gausie commented 1 year ago

This is because the packages are currently not signed. We need to sort out a signing key and then a way to do so via GitHub actions. It's something I'll do when I have time and inclination, PRs welcome as always.