Thanks for the info! Lookin at the script it seems that I have to start it from the game's base directory. Also, I need to have the renpy SDK installed? Any other requirements? Thanks again!
Hello,
Actually you can invoke the script from anywhere, you just have to pass the full path of the extracted game as argument.
I put renpy2linux.sh in my scripts folder but it could by anywhere within your $PATH
The script will take care of dowloading the correct version of the renpy SDK for you.
The only requirement I am aware of are wget and python3, it could probably work with python2, but I haven't tried it.
Let's take this particular game for example, once unzipped, you have the directory ASABMotel-2.3.2-win in your $HOME:
Bash:
$> ls -1d $PWD/*
/home/f95/ASABMotel-2.3.2-win.zip
/home/f95/ASABMotel-2.3.2-win
$> which renpy2linux.sh
/home/f95/scripts/renpy2linux.sh
Content of the game folder before invoking the script
Bash:
$> ls -1 /home/f95/ASABMotel-2.3.2-win
game
lib
renpy
ASABMotel.exe
ASABMotel.py
$> ls -1 /home/f95/ASABMotel-2.3.2-win/lib
py3-windows-x86_64
python3.9
Launching the script outputs the following :
Bash:
$> renpy2linux.sh /home/f95/ASABMotel-2.3.2-win
==> Determining game information...
=> Ren'Py version: 8.0.3
=> Game title: ASABMotel
==> Downloading Ren'Py SDK...
2023-02-28 08:13:12 URL:https://renpy.org/dl/8.0.3/renpy-8.0.3-sdk.tar.bz2 [99675284/99675284] -> "renpy-8.0.3-sdk.tar.bz2" [1]
==> Extracting Ren'Py SDK...
==> Finding SDK directory...
==> Copying files...
=> lib/py3-linux-x86_64
=> lib/py3-mac-x86_64
=> ASABMotel.sh
=> ASABMotel.app
\o/ Done!
Content of the game folder after invoking the script:
Bash:
$> ls -1 /home/f95/ASABMotel-2.3.2-win
ASABMotel.app
game
lib
renpy
ASABMotel.exe
ASABMotel.py
ASABMotel.sh
$> ls -1 /home/f95/ASABMotel-2.3.2-win/lib
py3-linux-x86_64
py3-mac-x86_64
py3-windows-x86_64
python3.9
BTW, from the listing, you can see that the script also installs libraries for MacOS (ASABMotel.app and py3-mac-x86_64). Not sure how well that works since I do not have access to a Mac to test it out