Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 3204438

Browse files
fixed a small number of issues
- Fixed an issue with the log not redirecting correctly. - Fixed an issue with the extra DRIVER2 files (LANG, REPLAYS, etc.) to be added if not available.
1 parent 1eaac76 commit 3204438

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

io.github.opendriver2.Redriver2.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ modules:
117117
build-commands:
118118
- cd src_rebuild && premake5 gmake2
119119
- cd src_rebuild/project_gmake2_linux && make config=release_x86 -j$(nproc)
120-
- mkdir -p /app/game/bin /app/game/bin/install /app/game/data /app/bin /app/lib /app/share/applications/ /app/share/appdata /var/data/install/ /var/data/DRIVER2/ /var/data/logs /app/share/icons/hicolor/256x256/apps
120+
- mkdir -p /app/game/bin /app/game/bin/install /app/game/data /app/bin /app/lib /app/share/applications/ /app/share/appdata /var/data/install/ /var/data/DRIVER2/ /app/share/icons/hicolor/256x256/apps
121121
- install start.sh /app/game/bin/REDRIVER2
122+
- cat /app/game/bin/REDRIVER2
122123
- cp -r data/* /app/game/data
123124
- install src_rebuild/bin/Release/REDRIVER2 /app/game/bin/REDRIVER2_game
124125
- install -m644 .flatpak/io.github.opendriver2.Redriver2.appdata.xml /app/share/appdata/
@@ -130,7 +131,7 @@ modules:
130131
- ln -s /var/data/DRIVER2 /app/game/bin/DRIVER2
131132
- cp -r data/install/* /app/game/bin/install
132133
- ln -s /var/cache/idxfile.tmp /app/game/bin/install/idxfile.tmp
133-
- ln -s /var/data/logs/REDRIVER2.log /app/game/bin/REDRIVER2.log
134+
- ln -s /var/data/REDRIVER2.log /app/game/bin/REDRIVER2.log
134135
- install start_launcher.sh /app/bin
135136
- chmod a+x /app/bin/start_launcher.sh
136137
- install io.github.opendriver2.Redriver2.desktop /app/share/applications/
@@ -142,16 +143,18 @@ modules:
142143
commands:
143144
- echo "#!/bin/sh" > start_launcher.sh # Starting Launcher script
144145
- echo "cd /app/game/bin/" >> start_launcher.sh
146+
- echo "[ ! -f /var/data/REDRIVER2.log ] && touch REDRIVER2.log" >> start_launcher.sh
145147
- echo "[ ! -f /var/cache/idxfile.tmp ] && touch idxfile.tmp" >> start_launcher.sh
146148
- echo "[ ! -d /var/data/DRIVER2 ] && mkdir -p /var/data/DRIVER2" >> start_launcher.sh
147149
- echo "[ ! -f /var/data/config.ini ] && cp /app/game/data/config.ini /var/data/config.ini" >> start_launcher.sh
148150
- echo "[ ! -f /var/data/cutscene_recorder.ini ] && cp /app/game/data/cutscene_recorder.ini /var/data/cutscene_recorder.ini" >> start_launcher.sh
149151
- echo "./Launcher" >> start_launcher.sh
150152
- echo "#!/bin/sh" > start.sh # Starting game script
153+
- echo "cd /app/game/data" >> start.sh
154+
- echo "find DRIVER2/ -type f -exec sh -c 'if [[ ! -f /var/data/\"\$0\" ]]; then mkdir -p \$(dirname /var/data/\"\$0\") && cp /app/game/data/\"\$0\" /var/data/\"\$0\"; fi' {} \;" >> start.sh
151155
- echo "cd /app/game/bin" >> start.sh
152156
- echo "args=''" >> start.sh
153157
- echo "while [[ "$#" -gt 0 ]]; do args+="$1 "; shift; done" >> start.sh
154-
- echo "[ -z $REDRIVER2_BIN ] && ./REDRIVER2_game" >> start.sh
155-
- echo "[ ! -z $REDRIVER2_BIN ] && exec $REDRIVER2_BIN" >> start.sh
158+
- echo "./REDRIVER2_game" >> start.sh
156159
- type: file
157160
path: io.github.opendriver2.Redriver2.desktop

0 commit comments

Comments
 (0)