[BUILD] Do not strip ZAPD (#598)
* [BUILD] Do not strip ZAPD * [BUILD] Reuse Icon Asset * [APPIMAGE] Handle paths with spaces
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
#!/bin/bash
|
||||
HERE="$(dirname "$(readlink -f "${0}")")"/../..
|
||||
|
||||
export PATH=$HERE/bin:$HERE/usr/bin:$PATH
|
||||
export PATH="$HERE"/bin:"$HERE"/usr/bin:"$PATH"
|
||||
|
||||
while [[ ! -e $PWD/oot.otr ]]; do
|
||||
export ASSETDIR=$(mktemp -d /tmp/assets-XXXXX)
|
||||
ln -s $HERE/usr/bin/{assets,soh.elf,OTRGui} $ASSETDIR
|
||||
export OLDPWD=$PWD
|
||||
mkdir -p $ASSETDIR/tmp
|
||||
mkdir -p $ASSETDIR/Extract/assets
|
||||
if [ -e $PWD/*.*64 ]; then
|
||||
ln -s $OLDPWD/*.*64 $ASSETDIR/tmp/rom.z64
|
||||
cp -r $ASSETDIR/assets/game/ship_of_harkinian $ASSETDIR/Extract/assets/
|
||||
cd $ASSETDIR
|
||||
case $(sha1sum -b $ASSETDIR/tmp/rom.z64 | awk '{ print $1 }') in
|
||||
while [[ ! -e "$PWD"/oot.otr ]]; do
|
||||
export ASSETDIR="$(mktemp -d /tmp/assets-XXXXX)"
|
||||
ln -s "$HERE"/usr/bin/{assets,soh.elf,OTRGui} "$ASSETDIR"
|
||||
export OLDPWD="$PWD"
|
||||
mkdir -p "$ASSETDIR"/tmp
|
||||
mkdir -p "$ASSETDIR"/Extract/assets
|
||||
if [ -e "$PWD"/*.*64 ]; then
|
||||
ln -s "$OLDPWD"/*.*64 "$ASSETDIR"/tmp/rom.z64
|
||||
cp -r "$ASSETDIR"/assets/game/ship_of_harkinian "$ASSETDIR"/Extract/assets/
|
||||
cd "$ASSETDIR"
|
||||
case $(sha1sum -b "$ASSETDIR"/tmp/rom.z64 | awk '{ print $1 }') in
|
||||
cee6bc3c2a634b41728f2af8da54d9bf8cc14099)
|
||||
ROM=GC_NMQ_D;;
|
||||
0227d7c0074f2d0ac935631990da8ec5914597b4)
|
||||
@@ -23,8 +23,8 @@ while [[ ! -e $PWD/oot.otr ]]; do
|
||||
exit;;
|
||||
esac
|
||||
echo "Processing..."
|
||||
assets/extractor/ZAPD.out ed -eh -i assets/extractor/xmls/${ROM} -b tmp/rom.z64 -fl assets/extractor/filelists -o placeholder -osf placeholder -gsf 1 -rconf assets/extractor/Config_${ROM}.xml -se OTR > /dev/null 2>&1
|
||||
cp "$ASSETDIR"/oot.otr $OLDPWD
|
||||
assets/extractor/ZAPD.out ed -eh -i assets/extractor/xmls/"${ROM}" -b tmp/rom.z64 -fl assets/extractor/filelists -o placeholder -osf placeholder -gsf 1 -rconf assets/extractor/Config_"${ROM}".xml -se OTR > /dev/null 2>&1
|
||||
cp "$ASSETDIR"/oot.otr "$OLDPWD"
|
||||
echo "Restart $APPIMAGE to play!"
|
||||
sleep 3
|
||||
rm -r "$ASSETDIR"
|
||||
@@ -34,8 +34,8 @@ while [[ ! -e $PWD/oot.otr ]]; do
|
||||
exit
|
||||
fi
|
||||
done
|
||||
cd $OWD
|
||||
ln -s "$HERE/usr/bin/gamecontrollerdb.txt" $PWD
|
||||
"$HERE/usr/bin/soh.elf"
|
||||
unlink $PWD/gamecontrollerdb.txt
|
||||
cd "$OWD"
|
||||
ln -s "$HERE"/usr/bin/gamecontrollerdb.txt "$PWD"
|
||||
"$HERE"/usr/bin/soh.elf
|
||||
unlink "$PWD"/gamecontrollerdb.txt
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user