Commit 1e42d42c authored by Antoine Le Gonidec's avatar Antoine Le Gonidec

Add a test to use shellcheck on game scripts — Fix syntax issues

+ Add exclusion to avoid false positives
parent 26f16073
......@@ -104,6 +104,7 @@ DATA_FILES='./140.sav'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='140Linux.x86'
APP_MAIN_EXE_BIN64='140Linux.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICON='140Linux_Data/Resources/UnityPlayer.png'
# Keep compatibility with old versions
......@@ -130,7 +131,7 @@ PKG_BIN64_DEPS="$PKG_BIN32_DEPS"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......
......@@ -58,6 +58,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE='6180 the moon.x86'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICON='6180 the moon_Data/Resources/UnityPlayer.png'
......
......@@ -116,11 +116,13 @@ write_launcher 'APP_MAIN'
# Store saved games outside of WINE prefix
# shellcheck disable=SC2016
save_path='$WINEPREFIX/drive_c/users/$(whoami)/Local Settings/Application Data/Daedalic Entertainment/A New Beginning - Final Cut/Savegames'
# shellcheck disable=SC2016
pattern='s#cp --force --recursive --symbolic-link --update "$PATH_GAME"/\* "$PATH_PREFIX"#&\n'
pattern="$pattern\tmkdir --parents \"${save_path%/*}\"\n"
pattern="$pattern\tmkdir --parents \"\$PATH_DATA/saves\"\n"
pattern="$pattern\tln --symbolic \"\$PATH_DATA/saves\" \"$save_path\"#"
pattern="$pattern\\tmkdir --parents \"${save_path%/*}\"\\n"
pattern="$pattern\\tmkdir --parents \"\$PATH_DATA/saves\"\\n"
pattern="$pattern\\tln --symbolic \"\$PATH_DATA/saves\" \"$save_path\"#"
for file in "${PKG_BIN_PATH}${PATH_BIN}"/*; do
sed --in-place "$pattern" "$file"
done
......
......@@ -60,6 +60,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='ActionHenk.x86'
APP_MAIN_EXE_BIN64='ActionHenk.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICONS_LIST='APP_MAIN_ICON'
APP_MAIN_ICON='ActionHenk_Data/Resources/UnityPlayer.png'
......
......@@ -63,6 +63,7 @@ ARCHIVE_GAME_DATA_FILES='./*_Data'
DATA_DIRS='./logs'
# shellcheck disable=SC2016
APP_MAIN_PRERUN='
file="$HOME/.config/unity3d/Daedalic Entertainment GmbH/AERMemoriesofOld/prefs"
if [ ! -f "$file" ] ; then
......@@ -80,6 +81,7 @@ fi
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='AER.x86'
APP_MAIN_EXE_BIN64='AER.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICON='AER_Data/Resources/UnityPlayer.png'
......
......@@ -131,6 +131,7 @@ rm --recursive "$PLAYIT_WORKDIR/gamedata"
PKG='PKG_BIN'
write_launcher 'APP_MAIN'
# shellcheck disable=SC2016
sed -i 's|$APP_EXE $APP_OPTIONS $@|cd ${APP_EXE%/*}\n${APP_EXE##*/} $APP_OPTIONS $@|' "${PKG_BIN_PATH}${PATH_BIN}/${GAME_ID}"
# Build package
......
......@@ -39,6 +39,7 @@ script_version=20180401.2
# Set game-specific variables
GAME_ID='alan-wakes-american-nightmare'
# shellcheck disable=SC1112
GAME_NAME='Alan Wake’s American Nightmare'
ARCHIVE_GOG='setup_alan_wake_american_nightmare_2.1.0.24.exe'
......
......@@ -40,6 +40,7 @@ script_version=20180612.1
# Set game-specific variables
GAME_ID='amerzone'
# shellcheck disable=SC1112
GAME_NAME='L’Amerzone'
ARCHIVE_GOG='setup_amerzone_french_2.1.0.10.exe'
......
......@@ -90,7 +90,7 @@ PKG_BIN_DEPS="$PKG_DATA_ID wine"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......
......@@ -69,6 +69,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='GoMLinux.x86'
APP_MAIN_EXE_BIN64='GoMLinux.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICON='GoMLinux_Data/Resources/UnityPlayer.png'
......@@ -91,7 +92,7 @@ PKG_BIN64_DEPS="$PKG_BIN32_DEPS"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......
......@@ -39,6 +39,7 @@ script_version=20180224.1
# Set game-specific variables
GAME_ID='annas-quest'
# shellcheck disable=SC1112
GAME_NAME='Anna’s Quest'
ARCHIVES_LIST='ARCHIVE_GOG'
......
......@@ -75,7 +75,7 @@ PKG_BIN_DEPS="$PKG_DATA_ID glibc libstdc++ glx gcc32"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......
......@@ -111,6 +111,7 @@ rm --recursive "$PLAYIT_WORKDIR/gamedata"
PKG='PKG_BIN'
write_launcher 'APP_MAIN'
# shellcheck disable=SC2016
sed --in-place 's|"./$APP_EXE" \($APP_OPTIONS $@\)|cd "${APP_EXE%/*}"\n"./${APP_EXE##*/}" \1|' "${PKG_BIN_PATH}${PATH_BIN}/$GAME_ID"
# Build package
......
......@@ -72,6 +72,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='./Aragami.x86'
APP_MAIN_EXE_BIN64='./Aragami.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICONS_LIST='APP_MAIN_ICON'
APP_MAIN_ICON='*_Data/Resources/UnityPlayer.png'
......
......@@ -76,7 +76,7 @@ ARCHIVE_GAME_DATA_PATH_GOG_OLD0='app'
CONFIG_FILES='./*.cfg'
DATA_DIRS='./data ./modules/arcanum/maps ./modules/arcanum/saves'
APP_WINETRICKS="vd=\$(xrandr|grep '\*'|awk '{print \$1}')"
APP_WINETRICKS="vd=\$(xrandr|grep '\\*'|awk '{print \$1}')"
APP_MAIN_TYPE='wine'
APP_MAIN_EXE='arcanum.exe'
......
......@@ -65,6 +65,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='Armikrog.x86'
APP_MAIN_EXE_BIN64='Armikrog.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICONS_LIST='APP_MAIN_ICON'
APP_MAIN_ICON='Armikrog_Data/Resources/UnityPlayer.png'
......
......@@ -63,6 +63,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_32='Ascendant.x86'
APP_MAIN_EXE_64='Ascendant_64.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICONS_LIST='APP_MAIN_ICON'
APP_MAIN_ICON='*_Data/Resources/UnityPlayer.png'
......
......@@ -65,6 +65,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='AsuraVengeance.x86'
APP_MAIN_EXE_BIN64='AsuraVengeance.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICON='AsuraVengeance_Data/Resources/UnityPlayer.png'
......@@ -84,7 +85,7 @@ PKG_BIN64_DEPS="$PKG_BIN32_DEPS"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......@@ -104,6 +105,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
# shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -39,6 +39,7 @@ script_version=20180929.2
# Set game-specific variables
GAME_ID='baldurs-gate-1-enhanced-edition'
# shellcheck disable=SC1112
GAME_NAME='Baldur’s Gate - Enhanced Edition - Siege of Dragonspear'
ARCHIVE_GOG='baldur_s_gate_siege_of_dragonspear_en_2_5_23121.sh'
......@@ -70,7 +71,7 @@ PKG_MAIN_DEPS="$GAME_ID"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......
......@@ -39,6 +39,7 @@ script_version=20180930.1
# Set game-specific variables
GAME_ID='baldurs-gate-1-enhanced-edition'
# shellcheck disable=SC1112
GAME_NAME='Baldur’s Gate - Enhanced Edition'
ARCHIVE_GOG='baldur_s_gate_enhanced_edition_en_2_5_23121.sh'
......@@ -119,7 +120,7 @@ PKG_BIN_DEPS_GOG_OLD2="$PKG_BIN_DEPS_GOG_OLD0"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......@@ -179,6 +180,7 @@ rm --recursive "$PLAYIT_WORKDIR/gamedata"
if [ "$ARCHIVE_LIBSSL32" ]; then
(
# shellcheck disable=SC2030
ARCHIVE='ARCHIVE_LIBSSL32'
extract_data_from "$ARCHIVE_LIBSSL32"
)
......@@ -195,6 +197,7 @@ write_launcher 'APP_MAIN'
# Build package
use_archive_specific_value 'PKG_BIN_DEPS'
# shellcheck disable=SC2031
case "$ARCHIVE" in
('ARCHIVE_GOG_OLD0'|'ARCHIVE_GOG_OLD1'|'ARCHIVE_GOG_OLD2')
case "$OPTION_PACKAGE" in
......
......@@ -41,6 +41,7 @@ script_version=20180930.4
SCRIPT_DEPS='unix2dos'
GAME_ID='baldurs-gate-1'
# shellcheck disable=SC1112
GAME_NAME='Baldur’s Gate'
ARCHIVES_LIST='ARCHIVE_GOG_EN ARCHIVE_GOG_EN_OLD0 ARCHIVE_GOG_FR ARCHIVE_GOG_FR_OLD0'
......@@ -127,7 +128,7 @@ PKG_BIN_PROVIDE='baldurs-gate'
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......@@ -168,6 +169,7 @@ move_icons_to 'PKG_DATA'
# Tweak paths in baldur.ini
file="${PKG_L10N_PATH}${PATH_GAME}/baldur.ini"
# shellcheck disable=SC1003
pattern='s/^\(.D.:\)=.*/\1=C:\\'"$GAME_ID"'\\/'
sed --in-place "$pattern" "$file"
unix2dos "${PKG_L10N_PATH}${PATH_GAME}/baldur.ini" > /dev/null 2>&1
......
......@@ -39,6 +39,7 @@ script_version=20180801.4
# Set game-specific variables
GAME_ID='baldurs-gate-2-enhanced-edition'
# shellcheck disable=SC1112
GAME_NAME='Baldur’s Gate 2 - Enhanced Edition'
ARCHIVE_GOG='baldur_s_gate_2_enhanced_edition_en_2_5_21851.sh'
......@@ -133,6 +134,7 @@ rm --recursive "$PLAYIT_WORKDIR/gamedata"
if [ "$ARCHIVE_LIBSSL" ]; then
(
# shellcheck disable=SC2030
ARCHIVE='ARCHIVE_LIBSSL'
extract_data_from "$ARCHIVE_LIBSSL"
)
......@@ -148,7 +150,8 @@ write_launcher 'APP_MAIN'
# Ensure that libjson.so.0 can be found and loaded for game versions needing it
if [ 'ARCHIVE' = 'ARCHIVE_GOG_OLD0' ]; then
# shellcheck disable=SC2031
if [ "$ARCHIVE" = 'ARCHIVE_GOG_OLD0' ]; then
PKG_BIN_DEPS="$PKG_BIN_DEPS json"
target="$PATH_GAME/$APP_MAIN_LIBS/libjson.so.0"
......
......@@ -41,6 +41,7 @@ script_version=20181028.1
SCRIPT_DEPS='unix2dos'
GAME_ID='baldurs-gate-2'
# shellcheck disable=SC1112
GAME_NAME='Baldur’s Gate II'
ARCHIVES_LIST='ARCHIVE_GOG_EN ARCHIVE_GOG_EN_OLD0 ARCHIVE_GOG_FR ARCHIVE_GOG_FR_OLD0'
......@@ -95,7 +96,7 @@ ARCHIVE_GAME1_DATA_FILES='*.ico *.mpi music scripts script?compiler override dat
CONFIG_FILES='./*.ini'
DATA_DIRS='./characters ./mpsave ./save'
APP_WINETRICKS="vd=\$(xrandr|grep '\*'|awk '{print \$1}')"
APP_WINETRICKS="vd=\$(xrandr|grep '\\*'|awk '{print \$1}')"
APP_MAIN_TYPE='wine'
APP_MAIN_EXE='bgmain.exe'
......@@ -128,7 +129,7 @@ PKG_BIN_DEPS="$PKG_L10N_ID $PKG_DATA_ID wine winetricks xrandr"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......@@ -175,10 +176,10 @@ icons_move_to 'PKG_DATA'
# Tweak paths in baldur.ini
file="${PKG_L10N_PATH}${PATH_GAME}/baldur.ini"
pattern="s/\\(HD0:\\)=.\+/\\1=C:\\\\$GAME_ID\\\\/"
pattern="s/\\(HD0:\\)=.\\+/\\1=C:\\\\$GAME_ID\\\\/"
sed --in-place "$pattern" "$file"
for drive in 'CD1' 'CD2' 'CD3' 'CD4' 'CD5' 'CD6'; do
pattern="s/\\($drive:\\)=.\+/\\1=C:\\\\$GAME_ID\\\\data\\\\/"
pattern="s/\\($drive:\\)=.\\+/\\1=C:\\\\$GAME_ID\\\\data\\\\/"
sed --in-place "$pattern" "$file"
done
unix2dos "$file" > /dev/null 2>&1
......
......@@ -106,7 +106,7 @@ PKG_BIN64_DEPS="$PKG_BIN32_DEPS"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......
......@@ -61,6 +61,7 @@ ARCHIVE_GAME_DATA_FILES='BattleChefBrigade_Data'
DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
# shellcheck disable=SC2016
APP_MAIN_PRERUN='if ! command -v pulseaudio >/dev/null 2>&1; then
mkdir --parents libs
ln --force --symbolic /dev/null libs/libpulse-simple.so.0
......@@ -74,6 +75,7 @@ else
fi
export LANG=C'
APP_MAIN_EXE='BattleChefBrigade.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICON='BattleChefBrigade_Data/Resources/UnityPlayer.png'
......@@ -90,7 +92,7 @@ PKG_BIN_DEPS="$PKG_DATA_ID glibc libstdc++"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......@@ -110,6 +112,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
# shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -66,6 +66,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='BattleWorldsKronos.x86'
APP_MAIN_EXE_BIN64='BattleWorldsKronos.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICONS_LIST='APP_MAIN_ICON'
APP_MAIN_ICON='*_Data/Resources/UnityPlayer.png'
......
......@@ -60,6 +60,7 @@ DATA_FILES='./Beatbuddy.x86'
APP_MAIN_TYPE='native'
APP_MAIN_EXE='Beatbuddy.x86'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICONS_LIST='APP_MAIN_ICON'
APP_MAIN_ICON='Beatbuddy_Data/Resources/UnityPlayer.png'
......
......@@ -62,6 +62,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='./Beholder.x86'
APP_MAIN_EXE_BIN64='./Beholder.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICONS_LIST='APP_MAIN_ICON'
APP_MAIN_ICON='*_Data/Resources/UnityPlayer.png'
......
......@@ -136,8 +136,8 @@ write_launcher 'APP_MAIN' 'APP_SETTINGS'
cat > "${PKG_BIN_PATH}${PATH_GAME}/install-path.reg" << EOF
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Ubisoft\Beyond Good & Evil]
"Install path"="C:\\\beyond-good-and-evil"
[HKEY_LOCAL_MACHINE\\Software\\Ubisoft\\Beyond Good & Evil]
"Install path"="C:\\\\$GAME_ID"
EOF
# Build package
......
......@@ -62,6 +62,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='Binaries.x86'
APP_MAIN_EXE_BIN64='Binaries.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICON='Binaries_Data/Resources/UnityPlayer.png'
......@@ -81,7 +82,7 @@ PKG_BIN64_DEPS="$PKG_BIN32_DEPS"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......
......@@ -134,15 +134,15 @@ write_launcher 'APP_1' 'APP_2' 'APP_3'
# Build package
cat > "$postinst" << EOF
ln --symbolic ./$GAME_ID.png "$PATH_ICON/$APP_1_ID.png"
ln --symbolic ./$GAME_ID.png "$PATH_ICON/$APP_2_ID.png"
ln --symbolic ./$GAME_ID.png "$PATH_ICON/$APP_3_ID.png"
ln --symbolic ./$GAME_ID.png "$PATH_ICON_BASE/256x256/apps/$APP_1_ID.png"
ln --symbolic ./$GAME_ID.png "$PATH_ICON_BASE/256x256/apps/$APP_2_ID.png"
ln --symbolic ./$GAME_ID.png "$PATH_ICON_BASE/256x256/apps/$APP_3_ID.png"
EOF
cat > "$prerm" << EOF
rm "$PATH_ICON/$APP_1_ID.png"
rm "$PATH_ICON/$APP_2_ID.png"
rm "$PATH_ICON/$APP_3_ID.png"
rm "$PATH_ICON_BASE/256x256/apps/$APP_1_ID.png"
rm "$PATH_ICON_BASE/256x256/apps/$APP_2_ID.png"
rm "$PATH_ICON_BASE/256x256/apps/$APP_3_ID.png"
EOF
write_metadata 'PKG_DATA'
......
......@@ -119,6 +119,7 @@ for PKG in 'PKG_BIN32' 'PKG_BIN64'; do
write_launcher 'APP_MAIN'
done
# shellcheck disable=SC2016
pattern='s|"./$APP_EXE" \($APP_OPTIONS $@\)|cd "${APP_EXE%/*}"\n"./${APP_EXE##*/}" \1|'
sed --in-place "$pattern" "${PKG_BIN32_PATH}${PATH_BIN}/$GAME_ID" "${PKG_BIN64_PATH}${PATH_BIN}/$GAME_ID"
......
......@@ -63,6 +63,7 @@ CONFIG_FILES='./config/*.xml'
APP_MAIN_TYPE='java'
APP_MAIN_LIBS='.'
APP_MAIN_EXE='BTM.jar'
# shellcheck disable=SC2016
APP_MAIN_JAVA_OPTIONS='-Djava.library.path="." -Dorg.lwjgl.librarypath="$PWD"'
APP_MAIN_ICON='BTM.png'
......@@ -75,7 +76,7 @@ PKG_MAIN_DEPS="$PKG_DATA_ID xcursor libxrandr openal java"
target_version='2.11'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......@@ -95,6 +96,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
# shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -76,6 +76,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='Braveland Pirate.x86'
APP_MAIN_EXE_BIN64='Braveland Pirate.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICONS_LIST='APP_MAIN_ICON'
APP_MAIN_ICON='Braveland Pirate_Data/Resources/UnityPlayer.png'
......
......@@ -76,6 +76,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='Braveland Wizard.x86'
APP_MAIN_EXE_BIN64='Braveland Wizard.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICON='Braveland Wizard_Data/Resources/UnityPlayer.png'
APP_MAIN_ICON_RES='128'
......
......@@ -72,6 +72,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='./Braveland.x86'
APP_MAIN_EXE_BIN64='./Braveland.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICONS_LIST='APP_MAIN_ICON'
APP_MAIN_ICON='*_Data/Resources/UnityPlayer.png'
......
......@@ -82,7 +82,7 @@ PKG_BIN64_DEPS="$PKG_BIN32_DEPS"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......
......@@ -66,6 +66,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE='Candle.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICONS_LIST='APP_MAIN_ICON'
APP_MAIN_ICON='*_Data/Resources/UnityPlayer.png'
......
......@@ -64,6 +64,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='Caravan.x86'
APP_MAIN_EXE_BIN64='Caravan.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICONS_LIST='APP_MAIN_ICON'
APP_MAIN_ICON='*_Data/Resources/UnityPlayer.png'
......
......@@ -88,6 +88,7 @@ ARCHIVE_GAME_DATA_FILES='*_Data'
DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
# shellcheck disable=SC2016
APP_MAIN_PRERUN='file="$HOME/.config/unity3d/Snapshot Games Inc_/Chaos Reborn/prefs"
if [ ! -e "$file" ]; then
mkdir --parents "${file%/*}"
......@@ -99,6 +100,7 @@ if [ ! -e "$file" ]; then
fi'
APP_MAIN_EXE_BIN32='ChaosRebornLinux.x86'
APP_MAIN_EXE_BIN64='ChaosRebornLinux.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICON='ChaosRebornLinux_Data/Resources/UnityPlayer.png'
......@@ -118,7 +120,7 @@ PKG_BIN64_DEPS="$PKG_BIN32_DEPS"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
for path in\
"$PWD"\
"$XDG_DATA_HOME/play.it"\
......
......@@ -67,6 +67,7 @@ DATA_DIRS='./logs'
APP_MAIN_TYPE='native'
APP_MAIN_EXE_BIN32='Convoy.x86'
APP_MAIN_EXE_BIN64='Convoy.x86_64'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICONS_LIST='APP_MAIN_ICON'
APP_MAIN_ICON='*_Data/Resources/UnityPlayer.png'
......
......@@ -61,6 +61,7 @@ APP_MAIN_TYPE='native'
APP_MAIN_PRERUN='pulseaudio --start
export LANG=C'
APP_MAIN_EXE='Cornerstone.x86'
# shellcheck disable=SC2016
APP_MAIN_OPTIONS='-logFile ./logs/$(date +%F-%R).log'
APP_MAIN_ICON='Cornerstone_Data/Resources/UnityPlayer.png'
......@@ -77,7 +78,7 @@ PKG_BIN_DEPS="$PKG_DATA_ID glibc libstdc++ glu xcursor pulseaudio alsa"
target_version='2.10'
if [ -z "$PLAYIT_LIB2" ]; then
: ${XDG_DATA_HOME:="$HOME/.local/share"}
: "${XDG_DATA_HOME:="$HOME/.local/share"}