Skip to content

Conversation

kilian-diener
Copy link

Probably same goes for 4.x-dev

@KANAjetzt KANAjetzt requested a review from Qubus0 August 28, 2025 10:27
@KANAjetzt KANAjetzt added bug Something isn't working 4.x labels Aug 28, 2025
@KANAjetzt KANAjetzt added this to the 4.x - 7.x milestone Aug 28, 2025
@KANAjetzt KANAjetzt added 3.x and removed 4.x labels Aug 28, 2025
@Qubus0
Copy link
Collaborator

Qubus0 commented Aug 28, 2025

Which game has this issue? We might need to be more specific than just checking for mac since some steam games don't have the app bundle layer, so this issue does not always exist. We might just have to check both paths

@kilian-diener
Copy link
Author

I'm currently setting up a Mac version of Brotato.
The path array is [..., Steam, steamapps, common, Brotato, Brotato.app, ]
With removing 3 entries this results in this workshop path: Steam/steamapps/common/workshop/content/1942280
With removing 4 it resolves correctly to: Steam/steamapps/workshop/content/1942280

I built the game as a ZIP, unpack it and upload the resulting Brotato.app. Maybe it would be different for a .dmg exported game.

@Qubus0
Copy link
Collaborator

Qubus0 commented Aug 28, 2025

ah we accounted for that in 4.x with this .app check

if OS.get_name() == "macOS":
game_install_directory = game_install_directory.get_base_dir().get_base_dir()
if game_install_directory.ends_with(".app"):
game_install_directory = game_install_directory.get_base_dir()

which is not present in 3.x

if OS.get_name() == "OSX":
game_install_directory = game_install_directory.get_base_dir().get_base_dir()

also hype to hear about brotato for mac 👀

@kilian-diener
Copy link
Author

Ah yeah that works as well. However, this may break setups for people using the mods folder without workshop since now the mods folder is expected to be outside the .app folder right? But whatever approach you guys prefer. I'll have it fixed for us anyway.

@Qubus0
Copy link
Collaborator

Qubus0 commented Aug 28, 2025

yep, true. most users don't know you can even look inside the .app bundle, so that works 😄 we'll take care of it, thanks for your contribution 👍

@KANAjetzt KANAjetzt modified the milestones: 4.x - 7.x, 3.x - v6.x Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants