Hello everyone!
Exactly what the title says, how does one implement Steam achievements with Tauri, is it even possible without doing some complicated workaround?
Running the game inside GDevelop works and the achievements get activated. I tried wrapping my game with electron and the achievements got activated without any issues.
While I could go with Electron and have my Steam achievements, Tauri is so much better when it comes to performance and it has a much lower size, it’s like 15 mb.
Thanks in advance, I’ve tried to find some thread related to this but haven’t found one yet.
Steam support in GDevelop is done through Steamworks.js, which is explicitly designed for nodeJS and mostly for electron.
I’m not aware of any equivalent for Tauri specific exports, but you might do some googling to see if anyone has compiled a version (or a configured a project) for Tauri?
You’re going to be doing everything pretty much outside of GDevelop around the libraries itself, though.
1 Like
Thank you for the quick reply and sorry for not responding earlier. I decided to go with Electron because I have implemented multiplayer with p2p and it’s just to much of a struggle to go with Tauri… Good luck to anyone else and thank you again.
You can implement Steam achievements in Tauri, but it requires some manual integration since Tauri doesn’t have built-in support for Steamworks. The usual approach is to create a Rust plugin or directly use FFI to call Steamworks SDK functions from your backend. You’ll need to link Steamworks libraries in your Rust code and expose achievement-related functions to the frontend through Tauri commands. It’s more work than Electron, which has existing Node.js Steam wrappers, but it’s definitely doable without complicated workarounds. The key is handling the Steam API calls on the Rust side, then triggering achievements from your frontend through those commands.
1 Like