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 Error: "KoLmafia.app" is damaged and can’t be opened. #2

Open
slifty opened this issue Sep 14, 2022 · 2 comments
Open

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

slifty opened this issue Sep 14, 2022 · 2 comments

Comments

@slifty
Copy link

slifty commented Sep 14, 2022

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
Copy link
Author

slifty commented Sep 14, 2022

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
Copy link
Contributor

gausie commented Nov 18, 2022

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.

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