sonik-br / GDMENUCardManager

Manage content on SD Card for Dreamcast's GDMenu
GNU General Public License v3.0
239 stars 19 forks source link

macOS Support Testing #4

Closed marcomorain closed 3 years ago

marcomorain commented 3 years ago

Hi @sonik-br - thank you so much for making this tool.

I'm testing the macOS support right now.

The first issue that I hit was this:

$ ./GDMENUCardManager
Failed to load Q, error: dlopen(/Users/marc/Downloads/GDMENUCardManager.v1.3.0-osx-x64/libhostfxr.dylib, 1): no suitable image found.  Did find:
    /Users/marc/Downloads/GDMENUCardManager.v1.3.0-osx-x64/libhostfxr.dylib: code signature in (/Users/marc/Downloads/GDMENUCardManager.v1.3.0-osx-x64/libhostfxr.dylib) not valid for use in process using Library Validation: library load disallowed by system policy
The library libhostfxr.dylib was found, but loading it from /Users/marc/Downloads/GDMENUCardManager.v1.3.0-osx-x64/libhostfxr.dylib failed
  - Installing .NET Core prerequisites might help resolve this problem.
     https://go.microsoft.com/fwlink/?linkid=2063366

I worked around this using these steps:

$ xattr -p com.apple.quarantine libhostfxr.dylib
0081;602eb0c6;Firefox;81D3CB12-3C53-4EE2-81B3-FB10DD979D0B
$ xattr -w com.apple.quarantine "00c1;0081;602eb0c6;Firefox;81D3CB12-3C53-4EE2-81B3-FB10DD979D0B"  *.{dylib,dll}
$ ./GDMENUCardManager

And it launched fine.

marcomorain commented 3 years ago

image

It's looking good so far, going to test some writes now.

marcomorain commented 3 years ago

@sonik-br it's working great. I've added games to my card and they are booting on the Dreamcast.

Pistacchione commented 3 years ago

QUICK UPDATE

I need to do chmod +x GDMENUCardManager and xattr -r -d com.apple.quarantine GDMENUCardManager.v1.3.2-osx-x64 in order to run the application using ./GDMENUCardManager


Hi,

I tried to open but I always received permission denied. I'm on MacOS 11.3

 ./GDMENUCardManager
 permission denied: ./GDMENUCardManager

I also tried with sudo ./GDMENUCardManager with no luck.

Maybe I need to install some .NET packages?

Thanks

sonik-br commented 3 years ago

Glad you got it working.

Born2beSlicker commented 3 years ago

Hi, I joined here specifically for this tool. I’m not educated in coding or anything, so I’m sorry for being a bother.

Could it be possible to make a guide for how to get this working on MacOS? I can’t get it to work but have no experience in editing files to fix it like it’s suggested above.

I’m just too used to download, install, double click and it runs.

sonik-br commented 3 years ago

Hi @Born2beSlicker. Sorry but I don't even have a mac to test it. You will have to run some commands on the terminal.

Pistacchione commented 3 years ago

@Born2beSlicker if you want you can download the latest (1.3.2) version of GDMENUCardManager ready for MacOS here

https://mega.nz/file/l7oAwA7L#kPHH10qgbESv69_ib7ETmw82f5JiiY5Xdy1424K4VMk

This is an app bundle made by me. Simply unzip and launch it like any other mac application.

Born2beSlicker commented 3 years ago

@Born2beSlicker if you want you can download the latest (1.3.2) version of GDMENUCardManager ready for MacOS here

https://mega.nz/file/l7oAwA7L#kPHH10qgbESv69_ib7ETmw82f5JiiY5Xdy1424K4VMk

This is an app bundle made by me. Simply unzip and launch it like any other mac application.

Oh, wow, that worked right away. Thank you so much for doing this. I truly appreciate you helping me (and anybody in future who finds this) out.

sonik-br commented 3 years ago

Nice! This is something I can do on windows? It requires signing the app with a dev id?

Pistacchione commented 3 years ago

Nice! This is something I can do on windows? It requires signing the app with a dev id?

No, dev id is not needed.

If you want to use it for mac os release simply download the zip file, unzip it and you will find a folder call GDMENUCardManager.app (mac os application bundle are folders).

Update the GDMENUCardManager folder inside Contents/MacOS with the new version and update the Info.plist file version number. Info.plist file is an xml file.

The keys to update are CFBundleShortVersionString and CFBundleVersion

If you need help feel free to ask

sonik-br commented 3 years ago

No need to chmod and xattr the files inside the bundle?

Pistacchione commented 3 years ago

No need to chmod and xattr the files inside the bundle?

No is not needed, mac os should present a window like this

immagine

And user should go to Security & Privacy and click the Open Anyway button in the General pane

immagine

Here a link to apple documentation regarding Safely open apps on your Mac https://support.apple.com/en-us/HT202491

sonik-br commented 3 years ago

Thank you! I will offer this appimage too on the download page.

adamfratino commented 2 years ago

@Born2beSlicker if you want you can download the latest (1.3.2) version of GDMENUCardManager ready for MacOS here

https://mega.nz/file/l7oAwA7L#kPHH10qgbESv69_ib7ETmw82f5JiiY5Xdy1424K4VMk

This is an app bundle made by me. Simply unzip and launch it like any other mac application.

@Pistacchione seems the mega link is down. do you still maintain this?

Pistacchione commented 2 years ago

Hi @adamfratino ,

I remove the link because is not needed anymore, now all the versions works on macOS, just download it fron Github release page

adamfratino commented 2 years ago

I noticed after I posted but I didn't want to delete my question in case other people see it, thanks for the reply!