Thought I'd share this here for people. I made two bash scripts that automatically import steamRIP games into heroic games launcher flatpak. Used AI sloppa to make them for linux. Why not windows? Because there's no real program like flatpak for windows that sandboxes and linux is good for playing games and more secure. Pirated games obviously have risks, but this makes it less, also my main gaming PC as a home console is mostly offline so I don't really expose it to the internet.
First one is move.sh which just moves any .rar with unrar in the Downloads folder and moves them to games folder which heroic makes and unpacks them there. It also checks if it has already unpacked it and skips it.
https://pastebin.com/yiivJgxv
The second one I named json.sh using jq and curl and this takes all the unpacked games in /home/pc/Games/Heroic, searches for the named.exe and creates a library.json file and adds the entries in the heroic flatpak file and also uses steamgriddb API to fetch game art url to put in the respective fields. It also checks if an entry is an the .json and skips it if it is.
https://pastebin.com/RLmR7PSF
Here's what the results look like. Looks like steam and they all run and work. Some aren't perfect since some devs don't name the .exe exactly as the game title but 95% of them work.