blake502 / balatro-mobile-maker

Create a mobile Balatro app from your Steam version of Balatro
601 stars 34 forks source link

How to run on MacOS? #78

Open p4p4-3ch0 opened 6 months ago

p4p4-3ch0 commented 6 months ago

Really sorry if this is an inappropriately basic question, but I’ve downloaded the osx-arm64 beta file to my M1 MacBook Air, and I can’t figure out what to do with it. MacBook thinks the file is a document. I’m sure I’m doing something wrong, I just do not know what it is?

xportz commented 6 months ago

I'm in the same boat. Trying to run it from terminal doesn't work. From finder MacOS claims its a document.

xportz commented 6 months ago

Okay I figured it out. You have to run the UNTESTED release from terminal. But you have to remove it from MacOS malware check with the following command "xattr -d com.apple.quarantine PROGRAM_NAME". And allow it to run with "chmod +x PROGRAM_NAME" where PROGRAM_NAME is "UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64" in this case.

So run these commands in terminal:

xattr -d com.apple.quarantine UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

chmod +x UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

./UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

Then you'll be able to run it.

p4p4-3ch0 commented 5 months ago

Okay I figured it out. You have to run the UNTESTED release from terminal. But you have to remove it from MacOS malware check with the following command "xattr -d com.apple.quarantine PROGRAM_NAME". And allow it to run with "chmod +x PROGRAM_NAME" where PROGRAM_NAME is "UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64" in this case.

So run these commands in terminal:

xattr -d com.apple.quarantine UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

chmod +x UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

./UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

Then you'll be able to run it.

Okay I figured it out. You have to run the UNTESTED release from terminal. But you have to remove it from MacOS malware check with the following command "xattr -d com.apple.quarantine PROGRAM_NAME". And allow it to run with "chmod +x PROGRAM_NAME" where PROGRAM_NAME is "UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64" in this case.

So run these commands in terminal:

xattr -d com.apple.quarantine UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

chmod +x UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

./UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

Then you'll be able to run it.

Okay I figured it out. You have to run the UNTESTED release from terminal. But you have to remove it from MacOS malware check with the following command "xattr -d com.apple.quarantine PROGRAM_NAME". And allow it to run with "chmod +x PROGRAM_NAME" where PROGRAM_NAME is "UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64" in this case.

So run these commands in terminal:

xattr -d com.apple.quarantine UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

chmod +x UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

./UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

Then you'll be able to run it.

Sadly, I'm trying to run on an M1 Mac, so I need 'osx-arm64' - there isn't an untested version for that. I'll try your steps on the 'balatro-mobile-maker-beta-0.8.3-osx-arm64-expeimental' file though... I hadn't done the chmod

p4p4-3ch0 commented 5 months ago

Nah - that didn't work

jaredwideman commented 5 months ago

Nah - that didn't work

@p4p4-3ch0, worked fine on my M1 Mac. Make sure you have the game installed in your default steam folder or in the same directory as UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

p4p4-3ch0 commented 5 months ago

Okay I figured it out. You have to run the UNTESTED release from terminal. But you have to remove it from MacOS malware check with the following command "xattr -d com.apple.quarantine PROGRAM_NAME". And allow it to run with "chmod +x PROGRAM_NAME" where PROGRAM_NAME is "UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64" in this case.

So run these commands in terminal:

xattr -d com.apple.quarantine UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

chmod +x UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

./UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

Then you'll be able to run it.

Once I used the correct version of the file this worked a treat for me. Thank you so much!

p4p4-3ch0 commented 5 months ago

Nah - that didn't work

@p4p4-3ch0, worked fine on my M1 Mac. Make sure you have the game installed in your default steam folder or in the same directory as UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

Nah - that didn't work

@p4p4-3ch0, worked fine on my M1 Mac. Make sure you have the game installed in your default steam folder or in the same directory as UNTESTED-balatro-mobile-maker-beta-0.8.3-osx-x64

Thanks Jared - once I used the correct file (I'd assumed I needed an arm64 file) it worked. There goes my productivity!

I3ARBIER commented 4 months ago

Hi, I tried all the steps but I just can’t get it to work.. Do I just copy the command and paste it in terminal? Terminal is saying “there is no such file”?! Where do I place the “Untested” file? In the same folder as Balatro, steam or steam apps? I drives me a little bit crazy, second day and still no success.

p4p4-3ch0 commented 4 months ago

Hi, I tried all the steps but I just can’t get it to work.. Do I just copy the command and paste it in terminal? Terminal is saying “there is no such file”?! Where do I place the “Untested” file? In the same folder as Balatro, steam or steam apps? I drives me a little bit crazy, second day and still no success.

I'm afraid I'm not the guy to debug this, but it does say in the notes section that the script expects Balatro to be in the Steam folder - could that be the issue? Or are you not in the downloads folder in your terminal session?

Sorry I can't be more help.

I3ARBIER commented 4 months ago

Hi, I tried all the steps but I just can’t get it to work.. Do I just copy the command and paste it in terminal? Terminal is saying “there is no such file”?! Where do I place the “Untested” file? In the same folder as Balatro, steam or steam apps? I drives me a little bit crazy, second day and still no success.

I'm afraid I'm not the guy to debug this, but it does say in the notes section that the script expects Balatro to be in the Steam folder - could that be the issue? Or are you not in the downloads folder in your terminal session?

Sorry I can't be more help.

I think I’m stupid, I just opened the “Untested file” with terminal and tried the commands.. I will try again later. (I don’t know anything about this terminal things and codes etc, but love to challenge myself once in a time). Thank you for the reply!

Will edit this message later today

edit Got the game working on my iPhone! Thanks again for the help! ;)

rafidarta commented 4 months ago

Hi, I tried all the steps but I just can’t get it to work.. Do I just copy the command and paste it in terminal? Terminal is saying “there is no such file”?! Where do I place the “Untested” file? In the same folder as Balatro, steam or steam apps? I drives me a little bit crazy, second day and still no success.

Hello @I3ARBIER , could you share what worked for you? I still can't get it to run on terminal because of the same issue

I3ARBIER commented 4 months ago

Hi, I tried all the steps but I just can’t get it to work.. Do I just copy the command and paste it in terminal? Terminal is saying “there is no such file”?! Where do I place the “Untested” file? In the same folder as Balatro, steam or steam apps? I drives me a little bit crazy, second day and still no success.

Hello @I3ARBIER , could you share what worked for you? I still can't get it to run on terminal because of the same issue

Hi, The only thing what I was missing was, that I was not in the download folder in terminal. You need the command in terminal to get in the download folder and from there use the commands above.

"cd /Users/yourusername/Downloads" replace yourusername with your macbook username. (if this isn't allowed please delete)

rafidarta commented 4 months ago

Hi, The only thing what I was missing was, that I was not in the download folder in terminal. You need the command in terminal to get in the download folder and from there use the commands above.

"cd /Users/yourusername/Downloads" replace yourusername with your macbook username. (if this isn't allowed please delete)

Thank you so much it's finally working!!!

p4p4-3ch0 commented 4 months ago

Hi, I tried all the steps but I just can’t get it to work.. Do I just copy the command and paste it in terminal? Terminal is saying “there is no such file”?! Where do I place the “Untested” file? In the same folder as Balatro, steam or steam apps? I drives me a little bit crazy, second day and still no success.

I'm afraid I'm not the guy to debug this, but it does say in the notes section that the script expects Balatro to be in the Steam folder - could that be the issue? Or are you not in the downloads folder in your terminal session? Sorry I can't be more help.

I think I’m stupid, I just opened the “Untested file” with terminal and tried the commands.. I will try again later. (I don’t know anything about this terminal things and codes etc, but love to challenge myself once in a time). Thank you for the reply!

Will edit this message later today

edit Got the game working on my iPhone! Thanks again for the help! ;)

Say goodbye to your productivity!

SupDos commented 3 months ago

Even after following the xattr and chmod instructions I still was not able to run the binary - I was getting a "Killed: 9" response after trying to run it

If anyone gets this same issue, I finally figured it out:

codesign --sign - --force --preserve-metadata=entitlements,requirements,flags,runtime "balatro-mobile-maker-beta-0.8.3-osx-arm64-expeimental"

source

I don't understand why this works, the person in the post doesn't understand why it works either, but after doing that the executable ran correctly in terminal and built the .ipa

before: image

after: image