Skip to content

Commit

Permalink
openra - Add support for original cnc
Browse files Browse the repository at this point in the history
  • Loading branch information
d10sfan committed Mar 16, 2024
1 parent 073af38 commit e92db24
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 5 deletions.
40 changes: 40 additions & 0 deletions engines/openra/assets/run-openra-cnc.sh
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
2 changes: 1 addition & 1 deletion engines/openra/build.sh
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/"
9 changes: 6 additions & 3 deletions engines/openra/env.json
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
}
33 changes: 32 additions & 1 deletion metadata/packagessniper_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -7567,6 +7567,12 @@
"url": "https://github.com/luxtorpeda-dev/packages/releases/download/vanilla-conquer-5/",
"file": "vanilla-conquer-common-5.tar.xz",
"cache_by_name": true
},
{
"name": "openra-binaries",
"url": "https://github.com/OpenRA/OpenRA/releases/download/release-20231010/",
"file": "OpenRA-Tiberian-Dawn-x86_64.AppImage",
"cache_by_name": true
}
],
"choices": [
Expand All @@ -7577,6 +7583,15 @@
"vanilla-conquer"
],
"engine_name": "Vanilla Conquer"
},
{
"name": "OpenRA",
"command": "./run-openra-cnc.sh",
"download": [
"openra-binaries",
"openra"
],
"engine_name": "OpenRA"
}
],
"cloudAvailable": true,
Expand Down Expand Up @@ -10274,6 +10289,22 @@
"engine_name": "OpenRA - TiberianDawnHD",
"internal_engine_name": "openra"
},
{
"engine_link": "https://www.openra.net",
"version": "release-20231010",
"author": "d10sfan",
"author_link": "https://github.com/d10sfan",
"license": "GPLv3",
"license_link": "https://github.com/OpenRA/OpenRA/blob/bleed/COPYING",
"controllerNotSupported": true,
"notices": [
{
"key": "in_progress"
}
],
"engine_name": "OpenRA",
"internal_engine_name": "openra"
},
{
"engine_link": "https://github.com/TheAssemblyArmada/Vanilla-Conquer",
"version": "83c152c",
Expand Down Expand Up @@ -10630,4 +10661,4 @@
"value": "Save Format Not Compatible"
}
]
}
}

0 comments on commit e92db24

Please sign in to comment.