larsiusprime / SteamWrap

Haxe native extension for the Steam API
MIT License
106 stars 44 forks source link

Fix Mac #6

Closed larsiusprime closed 5 years ago

larsiusprime commented 8 years ago

From Slack:

Pavel Alexandrov [12:55 PM] include.xml. It written as: <template path="native/lib/osx32/libsteam_api.dylib" rename="bin/${APP_FILE}.app/Contents/MacOS/libsteam_api.dylib" />, but by some reason ${APP_FILE} results in "APP_FILE" and not actual .app bundle name. I just added this manually in my project.xml to look like that: <template path="steam/libsteam_api.dylib" rename="bin/PocketKingdom.app/Contents/MacOS/libsteam_api.dylib" />

I.E, figure out what's wrong with the {APP_FILE} bit in the script and get it to resolve correctly.

kennygoff commented 6 years ago

Not sure if this is still an unknown problem, but I ran into this issue myself and it turned out to be that the instructions in the README.md show:

<haxelib name="steamwrap"/>
<setenv name="STEAM_APP_ID" value="??????" />
<set name="APP_FILE" value="??????" />

In this order, the APP_FILE variable will be set after the steamwrap lib is included, which is why the variable replacement in the XML parser isn't working. Changing the order so the haxelib include is last in my Project.xml fixes it:

<setenv name="STEAM_APP_ID" value="??????" />
<set name="APP_FILE" value="??????" />
<haxelib name="steamwrap"/>

I've tested and rebuild on my local and through Steam deploy and it works fine now!

larsiusprime commented 6 years ago

This bug has been plaguing me for SOOO LONG you don't even know.

Thanks for diagnosing it!

On Tue, Jan 23, 2018 at 6:20 PM, Kenny Goff notifications@github.com wrote:

Not sure if this is still an unknown problem, but I ran into this issue myself and it turned out to be that the instructions in the README.md show:

In this order, the APP_FILE variable will be set after the steamwrap lib is included, which is why the variable replacement in the XML parser isn't working. Changing the order so the haxelib include is last in my Project.xml fixes it:

I've tested and rebuild on my local and through Steam deploy and it works fine now!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/larsiusprime/SteamWrap/issues/6#issuecomment-359977564, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtG-NLU7kUY00tJ9S6H6G2hOJGRiIGXks5tNnc0gaJpZM4ImzkA .

-- www.fortressofdoors.com -- Games, Art, Design