pac3/workshop.sh

23 lines
573 B
Bash
Raw Permalink Normal View History

2017-07-26 04:15:06 -04:00
#!/bin/bash
WORKSHOP_ID=104691717
if [ "$(git status --porcelain)" ]; then
echo "You have uncommitted changes in your workspace."
echo "Please commit or stash them before continuing."
exit 1
fi
2021-02-01 00:43:35 -05:00
if [[ "$OSTYPE" == "darwin"* ]]; then
gmad='../../../bin/gmad'
gmpublish='../../../gmpublish'
else
gmad='../../../bin/linux64/gmad'
gmpublish='../../../bin/linux64/gmpublish'
fi
2017-07-26 04:15:06 -04:00
2021-02-01 00:43:35 -05:00
export LD_LIBRARY_PATH="../../../bin/linux64/"
2017-07-26 04:15:06 -04:00
2021-02-01 00:43:35 -05:00
$gmad create -folder "./" -out "_TEMP.gma"
$gmpublish update -addon "_TEMP.gma" -id "$WORKSHOP_ID" -icon "icon.jpg"
rm ./_TEMP.gma