Skip to content

Conversation

@bruvzg
Copy link
Member

@bruvzg bruvzg commented Oct 13, 2025

cp -r git/misc/dist/macos_tools.app Godot.app
mkdir -p Godot.app/Contents/MacOS
cp out/macos/steam/godot.macos.editor.universal Godot.app/Contents/MacOS/Godot
#cp libsteam_api.dylib Godot.app/Contents/Frameworks/libsteam_api.dylib
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if there's an official public source to download these libs and how to handle it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the official download is: https://partner.steamgames.com/downloads/steamworks_sdk.zip

I cannot seem to download it properly with curl, but it redirects to a steamworks_sdk_162.zip and that seems to match a curlable URL (and a fixed version is better for reproducibility anyway).

https://partner.steamgames.com/downloads/steamworks_sdk_162.zip

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So these URLs don't seem to work from the command line, they're HTML pages with JavaScript and one needs to be logged in a Steam partner account to download the SDK.

Another option seems to be downloading from https://github.com/rlabrecque/SteamworksSDK - seems like this is (was?1) pretty much officially maintained by a Valve engineer, so it should be trustworthy.

Should we also copy the Windows DLLs at the same time so we ensure that we're using the same/latest version of the library in our Steam distribution?

--

Footnotes

  1. Seems like he recently stopped working for Valve.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only load the lib, so version is pretty much irrelevant. The only reason to do it on macOS is signing, lib should be part of the bundle.

cp out/macos/steam/godot.macos.editor.universal Godot.app/Contents/MacOS/Godot
#cp libsteam_api.dylib Godot.app/Contents/Frameworks/libsteam_api.dylib
chmod +x Godot.app/Contents/MacOS/Godot
zip -q -9 -r "${reldir}/${binname}_steam.zip" Godot.app
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should likely put it in another location than ${reldir}, otherwise we're going to upload it to our GitHub releases when it's not really relevant there. I guess just in the root folder (like we do with Godot.app) and then rm both after unzipping to the ${steamdir}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants