Use beautysh to format the code.
This commit is contained in:
parent
94324c9290
commit
1d5a01d79c
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
license() {
|
||||
cat << EOF
|
||||
cat << EOF
|
||||
■The contents of this file are subject to the Common Public Attribution
|
||||
License Version 1.0 (the ■License■); you may not use this file except in
|
||||
compliance with the License. You may obtain a copy of the License at
|
||||
@ -78,9 +78,9 @@ update() {
|
||||
local downloadFile="audiogame-manager.mac"
|
||||
else
|
||||
if [[ "$(uname -m)" == "armv7l" ]]; then
|
||||
local downloadFile="audiogame-manager.arm"
|
||||
local downloadFile="audiogame-manager.arm"
|
||||
else
|
||||
local downloadFile="audiogame-manager"
|
||||
local downloadFile="audiogame-manager"
|
||||
fi
|
||||
fi
|
||||
if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/${downloadFile} | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then
|
||||
@ -106,7 +106,7 @@ open_url() {
|
||||
open "${*}" 2> /dev/null
|
||||
else
|
||||
xdg-open "${*}" 2> /dev/null
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Create desktop launcher file
|
||||
@ -135,7 +135,7 @@ desktop_launcher() {
|
||||
'StartupNotify=false'
|
||||
'Keywords=game;'
|
||||
'Categories=Game;'
|
||||
'Version=1.0')
|
||||
'Version=1.0')
|
||||
for i in "${dotDesktop[@]}" ; do
|
||||
echo "$i" >> "${desktopFile}"
|
||||
done
|
||||
@ -147,18 +147,18 @@ desktop_launcher() {
|
||||
|
||||
# Create the clipboard reading function for Sequence Storm
|
||||
write_sequence_storm_reader() {
|
||||
if -e ~/.SequenceStormReader ]]; then
|
||||
if -e ~/.SequenceStormReader ]]; then
|
||||
return
|
||||
fi
|
||||
# Here-document start
|
||||
cat << "EOF" > ~/.SequenceStormReader
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
# Wait for the game to be launched
|
||||
while ! pgrep -u "$USER" ^SequenceStorm &> /dev/null ; do
|
||||
sleep 0.05
|
||||
done
|
||||
|
||||
|
||||
export DISPLAY=:0
|
||||
unset cliptext
|
||||
socketFile="$(find /tmp -maxdepth 1 -name "orca-*.sock")"
|
||||
@ -195,7 +195,7 @@ while pgrep -u "$USER" ^SequenceStorm &> /dev/null ; do
|
||||
fi
|
||||
sleep 0.05
|
||||
done
|
||||
|
||||
|
||||
exit 0
|
||||
EOF
|
||||
# Here-document end
|
||||
@ -351,7 +351,7 @@ download() {
|
||||
|
||||
get_bottle() {
|
||||
# Handles games that use the same wine bottle
|
||||
case "${game}" in
|
||||
case "${game}" in
|
||||
# Aprone (Jeremy Kaldobsky) games.
|
||||
"castaways"*) ;&
|
||||
"castaways-2"*) ;&
|
||||
@ -502,7 +502,7 @@ echo "Loading documentation, please wait..."
|
||||
fi
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
||||
winetricks() {
|
||||
# Report used packages to the winetricks maintainer so he knows they are being used.
|
||||
if ! [[ -e "${XDG_CACHE_HOME:-$HOME/.cache}/winetricks/track_usage" ]]; then
|
||||
@ -1921,7 +1921,7 @@ case "${game}" in
|
||||
wine "${cache}/judgmentdayfullsetup.exe" /silent
|
||||
cat << EOF > /tmp/judgementday.reg
|
||||
Windows Registry Editor Version 5.00
|
||||
|
||||
|
||||
[HKEY_CURRENT_USER\Software\VB and VBA Program Settings\judgmentday\config]
|
||||
"name"="$USER"
|
||||
EOF
|
||||
@ -2310,7 +2310,7 @@ EOF
|
||||
;;
|
||||
"Super Egg Hunt")
|
||||
export bottle="l-works"
|
||||
install_wine_bottle
|
||||
install_wine_bottle
|
||||
download "http://files.l-works.net/superegghuntsetup.exe"
|
||||
wine "${cache}/superegghuntsetup.exe" /silent
|
||||
add_launcher "c:\Program Files\Lworks\super egg hunt\superegghunt.exe"
|
||||
|
Loading…
Reference in New Issue
Block a user