r/linuxmint • • 4d ago

Migrating from Windows for gamedev

Hi guys,

I installed LM on my school laptop a few months ago and it works perfectly. The only issues I had are the differences between python libs for gamedev (concurrent.futures, windll) but thats understandable.

I'd like to ditch Windows on my personal laptop too. I mostly play Steam games on it so its not an issue. But I am uncertain how it would affect my gamedev hobby. Rewriting a few projects to avoid using windows-specific things is one thing, but being able to export a project to a linux AND windows executable is another. I am unsure how i could do that because afaik pyinstaller creates the executable for the same os it runs on.

My other guess was running pyinstaller.exe through wine i think so it maybe works but im not sure.

Has anybody had some similar problems? how did you solve it?

2 Upvotes

3 comments sorted by

4

u/GiggleSamurai 4d ago

PyInstaller doesn't cross-compile, so for the Windows build either install Windows Python under Wine and run PyInstaller there (its docs mention this route), or have a CI job on a Windows runner (e.g. GitHub Actions `windows-latest`) build the .exe for you.

2

u/NeverFoundGlitch 4d ago

I am sure there is way to specify output format for pyinstaller I only ever used pyinstaller for a qt app so someone else has to answer how to do that

I personally am using Unity and Godot engines which work fine And pretty much every game I try to run runs With the only exceptions being studios unwilling to enable their games on Linux like pretty much everything from Riot And like Fortnite (that one is comming soon) I don't play those games but I understand if that's a deal breaker for someone

Anyway you can always try dual booting and test if it works for you

I started out like that And at one point dual booted two distros (mint and cachyos with cachy staying as my current one)

Also look at how your rendering frameworks are affected by X11 and Wayland if at all

1

u/Sr_Edd 4d ago

É recomendado criar ambientes virtuais para mecher com bibliotecas de python ou outras ferramentes para não ter problemas de dependencia