mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-03 18:53:01 -05:00
23 lines
573 B
Bash
23 lines
573 B
Bash
#!/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
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
gmad='../../../bin/gmad'
|
|
gmpublish='../../../gmpublish'
|
|
else
|
|
gmad='../../../bin/linux64/gmad'
|
|
gmpublish='../../../bin/linux64/gmpublish'
|
|
fi
|
|
|
|
export LD_LIBRARY_PATH="../../../bin/linux64/"
|
|
|
|
$gmad create -folder "./" -out "_TEMP.gma"
|
|
$gmpublish update -addon "_TEMP.gma" -id "$WORKSHOP_ID" -icon "icon.jpg"
|
|
|
|
rm ./_TEMP.gma |