ItsSim / fsolauncher

Official FreeSO Launcher made with Electron
https://beta.freeso.org
Mozilla Public License 2.0
14 stars 9 forks source link

[Linux] Adapt launcher to be run on Linux distros #27

Closed ItsSim closed 2 years ago

ItsSim commented 2 years ago

The launcher currently works on Windows and macOS.

Since it already supports macOS, adapting it for linux shouldn’t be much of a problem. In fact, the installation process should be the same. The only thing that may change are directory paths (like Application Support, where the config file is stored on macOS, and is not available on linux). The code is kind of hard-coded to deal only with Windows and macOS (as in constants used around the application), but that can be changed.

A new build script would also need to be added for linux, electron-packager is used: https://github.com/electron/electron-packager.

An Ubuntu LTS VM would be a good choice to try this.

Edit: After testing it on an Ubuntu VM

Need to do 3 things:

ItsSim commented 2 years ago

The fix-path dependency in package.json will most likely have to be updated to 4.0.0.

https://github.com/sindresorhus/fix-path/commit/5f0a1a28e463ad0293d24725dc4ec0e031e029b7

ItsSim commented 2 years ago

Tried on a Hyper-V Ubuntu 20.04 virtual machine without changing a single line of code, and it does work. (Why are the bottom corners not round though? 😬 Not kidding, might invest time into making that happen somehow.)

Need to do 3 things:

sns

ItsSim commented 2 years ago

Think this is the best I can get for round corners (the window frame is still kind of visible around the bottom corners):

image

ItsSim commented 2 years ago

After having analyzed this for the past few days, I do not think it’s worth it to have linux support at this time.

There already is a Lutris script that should install FreeSO and all of its dependencies: https://lutris.net/games/install/10602/view

Part of this decision is the fact that the installation of mono and sdl2 cannot be easily automated (unlike macOS). It’s much easier to just run the Lutris install script.