Hi coderofsalvation
... So far I've been able to create these files:
$ ls -la milkytracker-1.06.*
-rw-r--r-- 1 leon users 700 Jun 22 14:09 milkytracker-1.06.err
-rw-r--r-- 1 leon users 1409024 Jun 22 14:01 milkytracker-1.06.tcz
-rw-r--r-- 1 leon users 9 Jun 22 14:01 milkytracker-1.06.tcz.dep
-rw-r--r-- 1 leon users 481 Jun 22 14:01 milkytracker-1.06.tcz.info
-rw-r--r-- 1 leon users 48 Jun 22 14:01 milkytracker-1.06.tcz.list
----- Snip ----- ...
You are missing milkytracker-1.06.tcz.md5,txt.
I recommend installing submitqc.tcz if you plan on submitting extensions.
Then:
cd directory/containing/.tcz/files
submitqc --libssubmitqc will create .tcz.md5.txt and .tcz.list if not present or incorrect.
... All works **almost** fine, when running:
$ tce-load -i milkytracker-1.06.tgz
$ milkytracker
SDL: SDL_CreateWindow (width: 1280, height: 960) failed: Failed loading libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
Retrying with default size...SDL: SDL_CreateWindow (width: 640, height: 480) failed: Failed loading libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
----- Snip -----
This will error on a basic TC (which has no libGL installed)...which is probably MOST of the users.
----- Snip -----
First I was thinking in renaming /usr/bin/milkytracker to /usr/bin/milkytracker.app and then defining /usr/bin/milkytracker:
#!/bin/sh
find /lib | grep libGL || export NO_OPENGL=1
milkytracker
However, these overrides would jail the user into those settings forever
...
I'd like to share a few thoughts here:
1. Without libGl, the program fails. The script tests for and handles that.
2. With libGl, the program works. The script tests for and handles that.
3. The export is not system wide. It only exists for that instance of milkytracker.
4. If libGL gets installed while milkytracker is running, exit and restart milkytracker.
I don't see a forever here.
If someone wishes to edit a script, they can replace the link
with a copy of the file it points to:
sudo busybox cp /Path/To/Link/LinkName /Path/To/Link/If they want that file to persist between reboots, they can add
it to their backup.