Heroic-Games-Launcher / HeroicGamesLauncher

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
https://heroicgameslauncher.com
GNU General Public License v3.0
8.26k stars 435 forks source link

a little "fix" for (app is damaged and can't be opened) on ARM macs. #2199

Closed ai-h24 closed 1 year ago

ai-h24 commented 1 year ago

the command provided in the release notes didn't work for me.

but this command did: xattr -d com.apple.quarantine /Applications/Heroic.app

and did try to install Heroic again to check which command did the job, or simply if both were needed. and turns out only the one above is needed. after using it once in terminal everything works as expected.

flavioislima commented 1 year ago

Thanks for the info, which OS version are you on? It seems the command might be different and the one from the website is for an old version.

ai-h24 commented 1 year ago

Thanks for the info, which OS version are you on? It seems the command might be different and the one from the website is for an old version.

tested it on both MacOS Ventura 13.1 and the new beta 13.2 both worked with that command above.

flavioislima commented 1 year ago

Cool. So no sudo as well?

ai-h24 commented 1 year ago

Cool. So no sudo as well?

yes. no need for sudo. and the command works from MacOS Big Sur to the latest one Ventura (which are the only OS's that support ARM macs)

flavioislima commented 1 year ago

Thanks for the info, I updated the website and also the instructions on the release notes šŸ‘šŸ½

ai-h24 commented 1 year ago

Thanks for the info, I updated the website and also the instructions on the release notes šŸ‘šŸ½

thank you, but the website and the release notes both still show the old command.

flavioislima commented 1 year ago

Thanks for the info, I updated the website and also the instructions on the release notes šŸ‘šŸ½

thank you, but the website and the release notes both still show the old command.

Maybe was some cache, for me it shows the new one. Not exactly yours since I added mdfind to get the app no matter where it is installed since not everyone installs on the Applications folder.

ai-h24 commented 1 year ago

hey again, that command didn't work either. so i was thinking ill find a way to fix for everyone. but after spending an hour or so trying to figure it out (look how many tries it took)

oops

well i just couldn't find a way. till after all these hours i was like you know let me try to just take the Original DMG file out of quarantine. by simply doing:

xattr -d com.apple.quarantine /Downloads/Heroic-2.5.2-macOS-arm64.dmg or you know wherever the dmg is located.

and it worked perfectly. you can do it from ur side then upload it on here and everything will work fine without having the user to do any additional steps. its funny how simple it was to fix it. not funny how much time it took to find out tho.

gummipunkt commented 1 year ago

Hi,

when I try xattr -d com.apple.quarantine /Downloads/Heroic-2.5.2-macOS-arm64.dmg

the response is

xattr: /Downloads/Heroic-2.5.2-macOS-arm64.dmg: No such xattr: com.apple.quarantine

gummipunkt commented 1 year ago

Ok solution was

Open DMG, move App to Applications and then

xattr -d com.apple.quarantine /Applications/Heroic.app

ai-h24 commented 1 year ago

Hi,

when I try xattr -d com.apple.quarantine /Downloads/Heroic-2.5.2-macOS-arm64.dmg

the response is

xattr: /Downloads/Heroic-2.5.2-macOS-arm64.dmg: No such xattr: com.apple.quarantine

i think you have to add the full path where the dmg file located. not just using /Downloads/example.dmg but something like /Users/(your mac user)/Downloads/example.dmg

or just type xattr -d com.apple.quarantine in terminal then drag and drop the dmg file wherever its located to the terminal window.

ai-h24 commented 1 year ago

xattr -d com.apple.quarantine /Downloads/Heroic-2.5.2-macOS-arm64.dmg or you know wherever the dmg is located.

@flavioislima hey, can this be implemented in Heroic dmg before it being uploaded to GitHub?

flavioislima commented 1 year ago

xattr -d com.apple.quarantine /Downloads/Heroic-2.5.2-macOS-arm64.dmg or you know wherever the dmg is located.

@flavioislima hey, can this be implemented in Heroic dmg before it being uploaded to GitHub?

No because the apple quarentine is in your computer. When I build the dmg on my Mac it does not complain about that. But if I send it to you it will complain.

Then only way to avoid that is paying apple 100 usd per year for a dev license.

ai-h24 commented 1 year ago

No because the apple quarentine is in your computer. When I build the dmg on my Mac it does not complain about that. But if I send it to you it will complain.

Then only way to avoid that is paying apple 100 usd per year for a dev license.

iā€™m not sure how u send the dmg to us, but assuming its just uploading it from ur mac to here. if so, can you then try doing the apple quarentine "bypass" command on the dmg file then uploading it here just to to see if that fixes it for us?

or for now can you please upload 2 dmg files one without the command and one with (knowing both dms files do work without any problems on ur mac) just for the sake of testing? just duplicate the bulid u already have then apply fix and change names one with fix one normal and upload it here please?