-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openra - Add support for original cnc
- Loading branch information
Showing
4 changed files
with
79 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -d ~/.config/openra/Content/cnc ]; then | ||
mkdir -p ~/.config/openra/Content/cnc | ||
|
||
ln -rsf CONQUER.MIX ~/.config/openra/Content/cnc/conquer.mix | ||
ln -rsf DESERT.MIX ~/.config/openra/Content/cnc/desert.mix | ||
ln -rsf GENERAL.MIX ~/.config/openra/Content/cnc/general.mix | ||
ln -rsf SCORES.MIX ~/.config/openra/Content/cnc/scores.mix | ||
ln -rsf SOUNDS.MIX ~/.config/openra/Content/cnc/sounds.mix | ||
ln -rsf TEMPERAT.MIX ~/.config/openra/Content/cnc/temperat.mix | ||
ln -rsf WINTER.MIX ~/.config/openra/Content/cnc/winter.mix | ||
ln -rsf SPEECH.MIX ~/.config/openra/Content/cnc/speech.mix | ||
ln -rsf TEMPICNH.MIX ~/.config/openra/Content/cnc/tempicnh.mix | ||
ln -rsf TRANSIT.MIX ~/.config/openra/Content/cnc/transit.mix | ||
fi | ||
|
||
wantedversion="20231010" | ||
filepath="./OpenRA-Tiberian-Dawn-x86_64.AppImage" | ||
|
||
if [ -f "readyversion.txt" ]; then | ||
readyversion=$(cat readyversion.txt) | ||
echo "Found version: $readyversion" | ||
else | ||
readyversion="none" | ||
echo "No Version Found" | ||
fi | ||
|
||
if [ "$readyversion" != "$wantedversion" ]; then | ||
echo "Running Setup" | ||
|
||
chmod +x "$filepath" | ||
LD_LIBRARY_PATH="" "$filepath" --appimage-extract | ||
|
||
echo "$wantedversion" > ./readyversion.txt | ||
else | ||
echo "Not Running Setup" | ||
fi | ||
|
||
./squashfs-root/AppRun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# COPY PHASE | ||
cp -rfv assets/* "$diststart/1213210/dist/" | ||
cp -rfv assets/* "$diststart/common/dist/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"STEAM_APP_ID_LIST": [ | ||
"1213210" | ||
] | ||
} | ||
"1213210", | ||
"2229830", | ||
"2229840" | ||
], | ||
"COMMON_PACKAGE": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters