Skip to content

[Feat/macOS] Add Support for Apple's Gaming Toolkit #2787

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

Merged
merged 21 commits into from
Jun 30, 2023
Merged

Conversation

flavioislima
Copy link
Member

@flavioislima flavioislima commented Jun 8, 2023

With this, Heroic will look for a current setup of the apple's GPT and list it under the Wine List:

So far it works for Epic games, GOG and also Sideloaded games.

Testers Needed!

HOW TO TEST: EPIC and GOG Games

  • To download the build to test, go bellow under 'CHECKS' and build_macOS click on details. Then on the page that will open, click on SUMMARY. And then go to ARTIFACTS and download the build for your system.

  • Since this build is NOT signed (only releases are), you need to first run this command on the terminal: xattr -d -r com.apple.quarantine PATH_TO/Heroic.app

  • Make sure you have installed the gaming porting toolkit following the Install instructions provided by Apple.

  • Make sure Spotlight is enabled and the command mdfind wine64 returns something on the terminal.

  • [IMPORTANT] If you want to use the Apple scripts, copy the 3 scripts (gamingportingtoolkit...) to $HOME/bin folder, otherwise Heroic won't be able to find them.

  • Try to run some games and make sure it is working already.

  • When opening Heroic, go to Settings and on Game default check if, under WINE, it shows the list of the 3 gaming toolkit scripts as below and well the standalone wine (wine-7.7):
    image

  • Download and install some Windows games from EPIC or GOG and select the Script you want to use on the game wine settings.

  • Use new prefixes instead of reusing an existing ones. If you have DXVK installed on the prefix, the game might not work.

Sideloaded Games

  • Tested only Steam so far
  • Click on ADD GAMES on the library.
  • Fill in the title as you want.
  • Select the Gaming Toolkit script you want to use.
  • Click on RUN INSTALLER FIRST and select the exe you want to install
  • The app will be installed inside the prefix
  • On Select EXE, select the exe to run the app, for instance: /Users/name/Games/GPT_PREFIX/drive_c/Program Files (x86)/Steam/Steam.exe
  • Click Finish

Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

@MCChristor
Copy link

Nope, won't show anything.

@flavioislima
Copy link
Member Author

Nope, won't show anything.

What does this command shows on the terminal?
mdfind gameportingtoolkit-no-hud

@MCChristor
Copy link

2023-06-08 20:09:11.155 mdfind[95121:3444646] [UserQueryParser] Loading keywords and predicates for locale "de_DE"
2023-06-08 20:09:11.156 mdfind[95121:3444646] [UserQueryParser] Loading keywords and predicates for locale "de"

@mavethee
Copy link

mavethee commented Jun 8, 2023

Same thing as on regular release, here's what that command is outputing:

mdfind gameportingtoolkit-no-hud

2023-06-08 20:06:08.862 mdfind[65030:444945] [UserQueryParser] Loading keywords and predicates for locale "pl_PL"
2023-06-08 20:06:08.862 mdfind[65030:444945] [UserQueryParser] Loading keywords and predicates for locale "pl"
/usr/local/Cellar/game-porting-toolkit/1.0/gameportingtoolkit-no-hud
/usr/local/bin/gameportingtoolkit-no-hud

Using Whisky's bottle and with Terminal usage, Control works.

cd ~/Games/Heroic/Control && MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=/Users/$(whoami)/Library/Containers/com.isaacmarovitz.Whisky/Bottles/Heroic /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 "/Users/$(whoami)/Games/Heroic/Control/Control_DX12.exe"

With Heroic, nope. just quits, tried to log it but it's just backend things.
Side note: Using Whisky as I was a bit bothered by setting up Wine in Terminal ended up using it.
With Apple's defined prefix same behavior.

image

@flavioislima
Copy link
Member Author

flavioislima commented Jun 8, 2023

@MCChristor @mavethee Ok I think I know the issue.
Can you try to copy the 3 scripts files to your homefolder/bin?
This is one step I did and might be the reason why is not working for you.

This is not explicit in the Apple Readme, it just says to copy them to your PATH. Since $HOME/bin is inside the path, I copied them there.

EDIT: I can confirm that if you do not copy the scripts to this folder Heroic cannot find them, I have updated the testing instructions.

@mavethee
Copy link

mavethee commented Jun 8, 2023

@MCChristor @mavethee Ok I think I know the issue. Can you try to copy the 3 scripts files to your homefolder/bin? This is one step I did and might be the reason why is not working for you.

@flavioislima Done but still same thing, Heroic can't launch anything.

2023-06-08 21:42:47.751 mdfind[99251:640496] [UserQueryParser] Loading keywords and predicates for locale "pl_PL"
2023-06-08 21:42:47.752 mdfind[99251:640496] [UserQueryParser] Loading keywords and predicates for locale "pl"
/Users/marcinmitura/bin/gameportingtoolkit-no-hud
/usr/local/Cellar/game-porting-toolkit/1.0/gameportingtoolkit-no-hud
/usr/local/bin/gameportingtoolkit-no-hud

@flavioislima
Copy link
Member Author

flavioislima commented Jun 8, 2023

@mavethee but now the list appears in Heroic, right?

My luck with games is varying as well, So far the ones that worked for me were:

  • Abzu
  • Greek
  • Creature in The well
  • Grime
  • Disco Elysim
  • Death's Door

But I am downloading more and also testing Steam. That runs fine but I tried Yakuza Like a Dragon and Death Stranding and they did not work.

EDIT:
I was able to play Bloodstained: Ritual of the Night just fine now from Steam using Heroic.

@mavethee
Copy link

mavethee commented Jun 8, 2023

@mavethee but now the list appears in Heroic, right?

My luck with games is varying as well, So far the ones that worked for me were:

@flavioislima I think it prevents me from my luck here:

/usr/local/Cellar/game-porting-toolkit/1.0/gameportingtoolkit:13: command not found: brew

That's if to trust Heroic game logs :P
I have set brew default set depending on arch set in shell and eventual alias 'ibrew' for x64 instance so idk weird.

@flavioislima
Copy link
Member Author

@mavethee but now the list appears in Heroic, right?
My luck with games is varying as well, So far the ones that worked for me were:

@flavioislima I think it prevents me from my luck here:

/usr/local/Cellar/game-porting-toolkit/1.0/gameportingtoolkit:13: command not found: brew

That's if to trust Heroic game logs :P I have set brew default set depending on arch set in shell and eventual alias 'ibrew' for x64 instance so idk weird.

that's weird, I also have two brews installed but I did not did add the second one, the x64, to my path. So in my case it is using the default brew for arm64.

@flavioislima
Copy link
Member Author

@mavethee I also haven't copied the scripts like you to this folder, I have copied only the lib folder to it. Using the Ditto command like specified on the readme:
ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ /usr/local/bin/brew --prefix game-porting-toolkit/lib/

And then manually I have copied the 3 scripts files to the bin folder inside my home folder.
That is the only place I have them.

@mavethee
Copy link

mavethee commented Jun 8, 2023

ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ /usr/local/bin/brew --prefix game-porting-toolkit/lib/

@flavioislima I have done exact same thing so I don't really know whats the issue.

Full log on Abzu if that helps:

Game Settings: {
	"autoInstallDxvk": false,
	"autoInstallVkd3d": true,
	"preferSystemLibs": false,
	"nvidiaPrime": false,
	"enviromentOptions": [
		{
			"key": "MTL_HUD_ENABLED",
			"value": "1"
		},
		{
			"key": "WINEESYNC",
			"value": "1"
		}
	],
	"wrapperOptions": [],
	"showFps": false,
	"useGameMode": false,
	"language": "",
	"wineVersion": {
		"bin": "/Users/marcinmitura/bin/gameportingtoolkit",
		"name": "Gaming Porting Toolkit With Hud",
		"type": "toolkit"
	},
	"wineCrossoverBottle": "Heroic",
	"winePrefix": "/Users/marcinmitura/Library/Containers/com.isaacmarovitz.Whisky/Bottles/Heroic"
}

Game launched at: Thu Jun 08 2023 23:05:46 GMT+0200 (Central European Summer Time)

System Info:
Heroic Version: 2.8.0 Nico Robin
Legendary Version:  0.20.32 Dark Energy (hotfix #6)
GOGdl Version: 0.7.2

Electron Version: 24.4.1
Chrome Version: 112.0.5615.204
NodeJS Version: 18.14.0

OS: macOS 14.0 KERNEL: 23.0.0 ARCH: arm64
CPU: Apple M1 @2.4 
RAM: Total: 16 GiB Available: 12.76 GiB
GRAPHICS: GPU0: Apple M1  


Legendary's config from config.ini (before App's settings):
{
  "game_parameters": [],
  "game_executable": "AbzuGame.exe",
  "game_directory": "/Users/marcinmitura/Games/Heroic/ABZU",
  "launch_command": [
    "/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/bin/wine"
  ],
  "working_directory": "/Users/marcinmitura/Games/Heroic/ABZU",
  "user_parameters": [],
  "environment": {
    "CX_BOTTLE": "Legendary"
  },
  "pre_launch_command": "",
  "pre_launch_wait": false
}

Launch Command: MTL_HUD_ENABLED=1 WINEESYNC=1 LD_PRELOAD= /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary launch Curry --language pl --wrapper "/Users/marcinmitura/bin/gameportingtoolkit /Users/marcinmitura/Library/Containers/com.isaacmarovitz.Whisky/Bottles/Heroic" --no-wine 

Game Log:
[cli] INFO: Logging in...
[Core] INFO: Trying to re-use existing login session...
[cli] INFO: Checking for updates...
[Core] INFO: Getting authentication token...
[cli] INFO: Launching Curry...
/Users/marcinmitura/bin/gameportingtoolkit:13: command not found: brew

@lightningxcookie
Copy link

Does this work on macOS Ventura?

@HyeokjinKang
Copy link

I tried running Steam with the most recent build, but the "run installer first" button doesn't do anything. Please refer to the video.
I installed portingkit as directed by Apple and moved all necessary files to $HOME/bin. Is there something I'm missing?

@pakkographic
Copy link

pakkographic commented Jun 9, 2023

Does this work on macOS Ventura?

Nope as it requires Game porting toolkit beta which is only available on macOS Sonoma, and this tool requires Xcode 15 and Xcode 15 Command line tools

@pakkographic
Copy link

Btw, can't launch anything with Heroic too

@flavioislima
Copy link
Member Author

Does this work on macOS Ventura?

Sonoma Only.

@flavioislima
Copy link
Member Author

@mavethee what the command: which brew shows on the terminal?
For me it shows:
/usr/local/bin/brew

Can you also try not using Whisky? And remove the env vars as well? Let's try it vanilla as possible for now.

I am thinking on trying a different approach on this PR and try using the wine64 binary that is distributed with the porting kit.

But I tried this before and I could not have the same results, but maybe I missed something.
I will send an update today or during the weekend with this so you can all try as well.

For me, its working fine, even running games from Steam. And I just follow the Apple's Read me, letter by letter.

@pakkographic
Copy link

Everything works fine when I'm outside of Heroic, it happened even with my Crossover bottle, and can't run games anymore, that's maybe because I changed my PC's user name, so Heroic thinks that he should use the old user folder. I changed every path in the Heroic launcher and it still doesn't work

@flavioislima
Copy link
Member Author

This is a log from ABZU in my case. It is running just fine and I used the same build we have here to make sure it is not a packaging issue:

Game Settings: {
	"autoInstallDxvk": true,
	"autoInstallVkd3d": true,
	"preferSystemLibs": true,
	"nvidiaPrime": false,
	"enviromentOptions": [],
	"wrapperOptions": [],
	"showFps": true,
	"useGameMode": false,
	"language": "",
	"wineVersion": {
		"bin": "/Users/flavio/bin/gameportingtoolkit",
		"name": "Gaming Porting Toolkit With Hud",
		"type": "toolkit"
	},
	"wineCrossoverBottle": "Heroic",
	"winePrefix": "/Users/flavio/Games/GP_toolkit_3"
}
Game launched at: Fri Jun 09 2023 12:13:07 GMT+0200 (Central European Summer Time)

Legendary's config from config.ini (before App's settings):

{

  "game_parameters": [],
  "game_executable": "AbzuGame.exe",
  "game_directory": "/Users/flavio/Games/Heroic/ABZU",
  "launch_command": [
    "/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/bin/wine"
  ],
  "working_directory": "/Users/flavio/Games/Heroic/ABZU",
  "user_parameters": [],
  "environment": {
    "CX_BOTTLE": "Legendary"
  },
  "pre_launch_command": "",
  "pre_launch_wait": false
}

Launch Command: LD_PRELOAD= /Users/flavio/develop/HeroicGamesLauncher/dist/mac-arm64/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary launch Curry --language en --wrapper "/Users/flavio/bin/gameportingtoolkit /Users/flavio/Games/GP_toolkit_3" --no-wine 

Game Log:
[cli] INFO: Logging in...
[Core] INFO: Trying to re-use existing login session...
[cli] INFO: Checking for updates...
[Core] INFO: Getting authentication token...
[cli] INFO: Launching Curry...```

@flavioislima
Copy link
Member Author

flavioislima commented Jun 9, 2023

@pakkographic

Hmm, thats weird but yes, Heroic stores the home folder in a JSON file as a form of caching since we need it in several places like when installing a game or setting up the prefix.
You can find this configuration under: ~/Library/Application\ Support/heroic/store/config.json
Delete the userHome key.
Also delete the user name from /Users/flavio/Library/Application\ Support/heroic/config.json

@flavioislima
Copy link
Member Author

I tried running Steam with the most recent build, but the "run installer first" button doesn't do anything. Please refer to the video. I installed portingkit as directed by Apple and moved all necessary files to $HOME/bin. Is there something I'm missing?

can you try running Heroic from terminal?
go to the folder where you have the Heroic.app and run:
./Heroic.app/Contents/MacOS/Heroic

Check what happens when you click the Run Installer First.

if it shows some error, try changing the script to another one (no-hud or no-esync for instance)

@mavethee
Copy link

mavethee commented Jun 9, 2023

Everything works fine when I'm outside of Heroic, it happened even with my Crossover bottle, and can't run games anymore, that's maybe because I changed my PC's user name, so Heroic thinks that he should use the old user folder. I changed every path in the Heroic launcher and it still doesn't work

@pakkographic
CrossOver is broken on macOS 14, needs downgrade to CX 22.1.1 if you're using nightlies and patching with CXPatcher as it contains fixes for macOS 14, but still using CX at current state of their DX12 approach vs GPT/GPTK (damn acronyms confusion) is a bit pointless unless you need DX9/DX10 games which are not working/broken support for now.

@mavethee what the command: which brew shows on the terminal? For me it shows: /usr/local/bin/brew

@flavioislima I have it set depending on which arch in shell I'm currently using:

for arch=arm64e zsh:
/opt/homebrew/bin/brew

for arch -x86_64 zsh:
/usr/local/bin/brew

Can you also try not using Whisky? And remove the env vars as well? Let's try it vanilla as possible for now.

Sure thing, will use Apple's prefix renaming it to Heroic, as I assume naming isn't harmful much.

Well here's the log, same case it seems:

Game Settings: {
	"autoInstallDxvk": false,
	"autoInstallVkd3d": true,
	"preferSystemLibs": false,
	"nvidiaPrime": false,
	"enviromentOptions": [
		{
			"key": "MTL_HUD_ENABLED",
			"value": "1"
		},
		{
			"key": "WINEESYNC",
			"value": "1"
		}
	],
	"wrapperOptions": [],
	"showFps": false,
	"useGameMode": false,
	"language": "",
	"wineVersion": {
		"bin": "/Users/marcinmitura/bin/gameportingtoolkit",
		"name": "Gaming Porting Toolkit With Hud",
		"type": "toolkit"
	},
	"wineCrossoverBottle": "Heroic",
	"winePrefix": "/Users/marcinmitura/Heroic"
}

Game launched at: Fri Jun 09 2023 12:31:45 GMT+0200 (Central European Summer Time)

System Info:
Heroic Version: 2.8.0 Nico Robin
Legendary Version:  0.20.32 Dark Energy (hotfix #6)
GOGdl Version: 0.7.2

Electron Version: 24.4.1
Chrome Version: 112.0.5615.204
NodeJS Version: 18.14.0

OS: macOS 14.0 KERNEL: 23.0.0 ARCH: arm64
CPU: Apple M1 @2.4 
RAM: Total: 16 GiB Available: 12.46 GiB
GRAPHICS: GPU0: Apple M1  


Legendary's config from config.ini (before App's settings):
{
  "game_parameters": [],
  "game_executable": "AbzuGame.exe",
  "game_directory": "/Users/marcinmitura/Games/Heroic/ABZU",
  "launch_command": [
    "/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/bin/wine"
  ],
  "working_directory": "/Users/marcinmitura/Games/Heroic/ABZU",
  "user_parameters": [],
  "environment": {
    "CX_BOTTLE": "Legendary"
  },
  "pre_launch_command": "",
  "pre_launch_wait": false
}

Launch Command: MTL_HUD_ENABLED=1 WINEESYNC=1 LD_PRELOAD= /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary launch Curry --language pl --wrapper "/Users/marcinmitura/bin/gameportingtoolkit /Users/marcinmitura/Heroic" --no-wine 

Game Log:
[cli] INFO: Logging in...
[Core] INFO: Trying to re-use existing login session...
[cli] INFO: Checking for updates...
[Core] INFO: Getting authentication token...
[cli] INFO: Launching Curry...
/Users/marcinmitura/bin/gameportingtoolkit:13: command not found: brew

I am thinking on trying a different approach on this PR and try using the wine64 binary that is distributed with the porting kit.

But I tried this before and I could not have the same results, but maybe I missed something. I will send an update today or during the weekend with this so you can all try as well.

For me, its working fine, even running games from Steam. And I just follow the Apple's Read me, letter by letter.

Well I solely focus on running it from Heroic as it runs way better than macOS Steam app, could always link them to my Porting Toolkit app that runs Steam bottle but yeah, I assume it's the same case as running it from Terminal.

We will see how it goes.

Thanks for your work so far tho, I didn't expect someone will take a look on that this fast hah!

@flavioislima
Copy link
Member Author

@TheAbstractDev

this command you pasted does not produce this result. I just removed the support for the scripts like I said.

Paste the result of mdfind wine64

Here's:

❯ mdfind wine64
2023-06-23 16:30:46.463 mdfind[82981:2028728] [UserQueryParser] Loading keywords and predicates for locale "en_US"
2023-06-23 16:30:46.464 mdfind[82981:2028728] [UserQueryParser] Loading keywords and predicates for locale "en"
/Users/ME/gameportingtoolkit-no-hud
/Users/ME/gameportingtoolkit-no-esync
/Users/ME/gameportingtoolkit
/Users/ME/bin/gameportingtoolkit
/Users/ME/bin/gameportingtoolkit-no-esync
/Users/ME/bin/gameportingtoolkit-no-hud
/Users/ME/Library/Application Support/heroic/tools/winetricks
/Users/ME/Library/Application Support/CrashReporter/wine64-preloader_CECC645E-8730-5F5D-B044-E413CD162CA0.plist
/Users/sofiane.beors/Library/Application Support/Whisky/Libraries/Wine/bin/wine64
/Users/sofiane.beors/Library/Application Support/Whisky/Libraries/Wine/bin/wine64-preloader
Screenshot 2023-06-23 at 16 30 49

Have you installed the toolkit or just downloaded the files from Apple? You need to run the commands and compile the code on your machine. So it will show like the output above.

@emersoncarth
Copy link

I did install the toolkit using the instructions in the ReadMe included with the toolkit. I compiled it on my machine. I'll try a diffrent game

@TheAbstractDev
Copy link

@TheAbstractDev

this command you pasted does not produce this result. I just removed the support for the scripts like I said.

Paste the result of mdfind wine64

Here's:

❯ mdfind wine64
2023-06-23 16:30:46.463 mdfind[82981:2028728] [UserQueryParser] Loading keywords and predicates for locale "en_US"
2023-06-23 16:30:46.464 mdfind[82981:2028728] [UserQueryParser] Loading keywords and predicates for locale "en"
/Users/ME/gameportingtoolkit-no-hud
/Users/ME/gameportingtoolkit-no-esync
/Users/ME/gameportingtoolkit
/Users/ME/bin/gameportingtoolkit
/Users/ME/bin/gameportingtoolkit-no-esync
/Users/ME/bin/gameportingtoolkit-no-hud
/Users/ME/Library/Application Support/heroic/tools/winetricks
/Users/ME/Library/Application Support/CrashReporter/wine64-preloader_CECC645E-8730-5F5D-B044-E413CD162CA0.plist
/Users/sofiane.beors/Library/Application Support/Whisky/Libraries/Wine/bin/wine64
/Users/sofiane.beors/Library/Application Support/Whisky/Libraries/Wine/bin/wine64-preloader
Screenshot 2023-06-23 at 16 30 49

Have you installed the toolkit or just downloaded the files from Apple? You need to run the commands and compile the code on your machine. So it will show like the output above.

I haven't installed the toolkit from brew, I've just downloaded the DMG.

@flavioislima
Copy link
Member Author

@TheAbstractDev

this command you pasted does not produce this result. I just removed the support for the scripts like I said.

Paste the result of mdfind wine64

Here's:

❯ mdfind wine64
2023-06-23 16:30:46.463 mdfind[82981:2028728] [UserQueryParser] Loading keywords and predicates for locale "en_US"
2023-06-23 16:30:46.464 mdfind[82981:2028728] [UserQueryParser] Loading keywords and predicates for locale "en"
/Users/ME/gameportingtoolkit-no-hud
/Users/ME/gameportingtoolkit-no-esync
/Users/ME/gameportingtoolkit
/Users/ME/bin/gameportingtoolkit
/Users/ME/bin/gameportingtoolkit-no-esync
/Users/ME/bin/gameportingtoolkit-no-hud
/Users/ME/Library/Application Support/heroic/tools/winetricks
/Users/ME/Library/Application Support/CrashReporter/wine64-preloader_CECC645E-8730-5F5D-B044-E413CD162CA0.plist
/Users/sofiane.beors/Library/Application Support/Whisky/Libraries/Wine/bin/wine64
/Users/sofiane.beors/Library/Application Support/Whisky/Libraries/Wine/bin/wine64-preloader
Screenshot 2023-06-23 at 16 30 49

Have you installed the toolkit or just downloaded the files from Apple? You need to run the commands and compile the code on your machine. So it will show like the output above.

I haven't installed the toolkit from brew, I've just downloaded the DMG.

The DMG has only the complementary files. You need to install from Brew like it's on the dmg Readme.

@TheAbstractDev
Copy link

@TheAbstractDev

this command you pasted does not produce this result. I just removed the support for the scripts like I said.

Paste the result of mdfind wine64

Here's:

❯ mdfind wine64
2023-06-23 16:30:46.463 mdfind[82981:2028728] [UserQueryParser] Loading keywords and predicates for locale "en_US"
2023-06-23 16:30:46.464 mdfind[82981:2028728] [UserQueryParser] Loading keywords and predicates for locale "en"
/Users/ME/gameportingtoolkit-no-hud
/Users/ME/gameportingtoolkit-no-esync
/Users/ME/gameportingtoolkit
/Users/ME/bin/gameportingtoolkit
/Users/ME/bin/gameportingtoolkit-no-esync
/Users/ME/bin/gameportingtoolkit-no-hud
/Users/ME/Library/Application Support/heroic/tools/winetricks
/Users/ME/Library/Application Support/CrashReporter/wine64-preloader_CECC645E-8730-5F5D-B044-E413CD162CA0.plist
/Users/sofiane.beors/Library/Application Support/Whisky/Libraries/Wine/bin/wine64
/Users/sofiane.beors/Library/Application Support/Whisky/Libraries/Wine/bin/wine64-preloader
Screenshot 2023-06-23 at 16 30 49

Have you installed the toolkit or just downloaded the files from Apple? You need to run the commands and compile the code on your machine. So it will show like the output above.

I haven't installed the toolkit from brew, I've just downloaded the DMG.

The DMG has only the complementary files. You need to install from Brew like it's on the dmg Readme.

I didn't knew, thanks for the help I will try

@DevelopMan
Copy link

I've just downloaded the latest build, tried to launch it and I've got “Heroic.app” is damaged and can’t be opened. You should move it to the Bin.
image

@flavioislima
Copy link
Member Author

I've just downloaded the latest build, tried to launch it and I've got “Heroic.app” is damaged and can’t be opened. You should move it to the Bin.
image

Read the instructions on the PR.

@imLinguin
Copy link
Member

As the description of this PR states

Since this build is NOT signed (only releases are), you need to first run this command on the terminal: xattr -d -r com.apple.quarantine PATH_TO/Heroic.app

@DevelopMan
Copy link

What a shame. Sorry for that.

@flavioislima flavioislima merged commit 5f0d603 into main Jun 30, 2023
@flavioislima flavioislima deleted the feat/mac_gpt branch June 30, 2023 10:39
@pakkographic
Copy link

pakkographic commented Jul 5, 2023

When running a game with Game Porting Toolkit with Heroic, it launches an explorer window, that's all, when you try to launch the game through the explorer, the game crashes.

Issue: #2832

@vapidinfinity
Copy link

same problem with me
#2858

@BebopSpikeSpiegel
Copy link

BebopSpikeSpiegel commented Jul 13, 2023

image image image

options for gptk won't show for me, added the scripts to $HOME/bin and mdfind can find everything. not sure what's wrong.

Installed heroic from brew, and I can confirm the game is running through gptk by directly using terminal to open it.
last log:

(22:45:26) INFO:    [Legendary]:        Refreshing library...
(22:45:26) INFO:    [Legendary]:        Refreshing Epic Games...
(22:45:26) INFO:    [Connection]:       Connectivity: check-online
(22:45:26) INFO:    [Connection]:       Pinging external endpoints
(22:45:26) INFO:    [Legendary]:        Running command: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary --version
(22:45:26) INFO:    [Legendary]:        Legendary location: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary
(22:45:26) INFO:    [Gog]:              GOGDL location: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/gogdl
(22:45:26) INFO:    [Gog]:              GOGDL location: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/gogdl
(22:45:26) INFO:    [Legendary]:        Game list updated, got 141 games & DLCs
(22:45:26) WARNING: [Backend]:          Protocol already registered.
(22:45:26) INFO:    [Connection]:       Connectivity: online
(22:45:26) INFO:    [Gog]:              Checking if login is valid
(22:45:26) INFO:    [Gog]:              Running command: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/gogdl --auth-config-path "/Users/spike/Library/Application Support/heroic/gog_store/auth.json" auth
(22:45:26) INFO:    [Backend]:          AreWeAntiCheatYet data downloaded
(22:45:26) INFO:    [Backend]:          Loading Screen Ready
(22:45:26) INFO:    [Legendary]:        Running command: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary list --third-party
(22:45:26) INFO:    [Frontend]:         Refreshing undefined Library
(22:45:26) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(22:45:26) INFO:    [Gog]:              Found 0 game(s) to update
(22:45:26) INFO:    [Backend]:          Frontend Ready
(22:45:27) INFO:    [Backend]:          Checking for new Heroic Updates
(22:45:27) INFO:    [Backend]:          Checking for current version changelog
(22:45:27) INFO:    [Legendary]:        Checking for game updates: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary list --third-party
(22:45:28) INFO:    [Gog]:              Running command: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/gogdl --auth-config-path "/Users/spike/Library/Application Support/heroic/gog_store/auth.json" --version
(22:45:29) INFO:    [Winetricks]:       Downloading Winetricks
(22:45:29) INFO:    [Gog]:              Saved username to config file
(22:45:31) WARNING: [Backend]:          Could not determine System Info
(22:45:31) INFO:    [Backend]:          Starting the Download Queue
(22:45:33) INFO:    [Legendary]:        Found 0 games to update
(22:47:48) INFO:    [Backend]:          Heroic: Setting wineVersion to {"wineserver":"/Users/spike/Library/Application Support/heroic/tools/wine/Wine-Staging-macOS-latest/Contents/Resources/wine/bin/wineserver","lib":"/Users/spike/Library/Application Support/heroic/tools/wine/Wine-Staging-macOS-latest/Contents/Resources/wine/lib","lib32":"/Users/spike/Library/Application Support/heroic/tools/wine/Wine-Staging-macOS-latest/Contents/Resources/wine/lib","bin":"/Users/spike/Library/Application Support/heroic/tools/wine/Wine-Staging-macOS-latest/Contents/Resources/wine/bin/wine64","name":"Wine Staging - 8.10","type":"wine"}
(22:51:07) INFO:    [Backend]:          Heroic: Setting wineVersion to {"bin":"/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/bin/wine","name":"CrossOver - 22.1.1","type":"crossover","wineserver":"/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/bin/wineserver"}
(22:51:08) INFO:    [Backend]:          Heroic: Setting wineVersion to {"wineserver":"/Users/spike/Library/Application Support/heroic/tools/wine/Wine-Staging-macOS-latest/Contents/Resources/wine/bin/wineserver","lib":"/Users/spike/Library/Application Support/heroic/tools/wine/Wine-Staging-macOS-latest/Contents/Resources/wine/lib","lib32":"/Users/spike/Library/Application Support/heroic/tools/wine/Wine-Staging-macOS-latest/Contents/Resources/wine/lib","bin":"/Users/spike/Library/Application Support/heroic/tools/wine/Wine-Staging-macOS-latest/Contents/Resources/wine/bin/wine64","name":"Wine Staging - 8.10","type":"wine"}
(22:51:26) INFO:    [Legendary]:        Running command: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary --version
(22:51:26) INFO:    [Gog]:              Running command: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/gogdl --auth-config-path "/Users/spike/Library/Application Support/heroic/gog_store/auth.json" --version
(22:51:36) INFO:    [Backend]:          Changing Language to: en
(22:55:01) INFO:    [Legendary]:        Running command: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary --version
(22:55:01) INFO:    [Gog]:              Running command: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/gogdl --auth-config-path "/Users/spike/Library/Application Support/heroic/gog_store/auth.json" --version

by the way, here is path:

spike@Spikes-MacBook-Pro bin % echo $PATH
/opt/homebrew/anaconda3/bin/:/usr/local/include/c51asm/bin:/opt/homebrew/opt/findutils/libexec/gnubin:/opt/homebrew/opt/openjdk/bin:/usr/local/Cellar/game-porting-toolkit/1.0.2/bin:/opt/homebrew/anaconda3/bin/:/usr/local/include/c51asm/bin:/opt/homebrew/opt/findutils/libexec/gnubin:/opt/homebrew/opt/openjdk/bin:/usr/local/Cellar/game-porting-toolkit/1.0.2/bin:/usr/local/Cellar/game-porting-toolkit/1.0.2/bin/wine64:/Users/spike/bin:/Users/spike/bin:/opt/homebrew/bin:/usr/local/bin:/opt/homebrew/anaconda3/bin/:/usr/local/include/c51asm/bin:/opt/homebrew/opt/findutils/libexec/gnubin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/bin:/usr/local/bin:/opt/homebrew/anaconda3/bin:/usr/local/include/c51asm/bin:/opt/homebrew/opt/findutils/libexec/gnubin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/anaconda3/bin:/opt/homebrew/anaconda3/condabin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin

@EvgeniSomlev
Copy link

Can I get the DMG file for Apple silicon?

@pakkographic
Copy link

pakkographic commented Jul 22, 2023

Can I get the DMG file for Apple silicon?

https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/pull/2787/checks

Click on build macOS, then arm64

Since this build is NOT signed (only releases are), you need to first run this command on the terminal: xattr -d -r com.apple.quarantine PATH_TO/Heroic.app (so you can open the app without any error message)

@EvgeniSomlev
Copy link

Can I get the DMG file for Apple silicon?

https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/pull/2787/checks

Click on build macOS, then arm64

Since this build is NOT signed (only releases are), you need to first run this command on the terminal: xattr -d -r com.apple.quarantine PATH_TO/Heroic.app (so you can open the app without any error message)

when I go there it says that the file is expired and I can't download it

@EvgeniSomlev
Copy link

Can I get the DMG file for Apple silicon?

https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/pull/2787/checks
Click on build macOS, then arm64
Since this build is NOT signed (only releases are), you need to first run this command on the terminal: xattr -d -r com.apple.quarantine PATH_TO/Heroic.app (so you can open the app without any error message)

when I go there it says that the file is expired and I can't download it

Screenshot 2023-07-23 at 20 59 47

here a screenshot too

@mavethee
Copy link

@EvgeniSomlev till 2.9.0 will become stable release just use whatever is latest in main branch, artifacts and mac-arm64, download unzip, run, drag and drop, done.

E.g.:
https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/actions/runs/5638515369

@Natejoecoop
Copy link

can someone please explain how to do this? I am really stupid

@mavethee
Copy link

mavethee commented Aug 27, 2023

can someone please explain how to do this? I am really stupid

by just downloading a project.

GPTK stuff is bundled into the project since 2.9.0 release.

@Rashoooodi
Copy link

Rashoooodi commented Oct 24, 2023

someone help me... i need to use the scrips...

my result for mdfind are 2023-10-24 05:40:49.054 mdfind[1805:32152] [UserQueryParser] Loading keywords and predicates for locale "en_US" 2023-10-24 05:40:49.054 mdfind[1805:32152] [UserQueryParser] Loading keywords and predicates for locale "en" /Users/rashoodi/bin/gameportingtoolkit-no-hud /Users/rashoodi/gameportingtoolkit-no-hud /usr/local/bin/gameportingtoolkit-no-hud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:ready-for-review Feature-complete, ready for the grind! :P
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] [macOS] Detect installed Apple's Game Porting Toolkit