add workshop bash script for linux

This commit is contained in:
CapsAdmin 2017-07-26 10:15:06 +02:00
parent 76b298ffd9
commit 4fbef5cbb9
3 changed files with 14 additions and 0 deletions

View File

@ -9,6 +9,8 @@
"*.txt",
"*.md",
"*.bat",
"*.sh",
"icon.jpg",
"*.7z",
"*.md",
"*.yml",

BIN
icon.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

12
workshop.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
WORKSHOP_ID=104691717
dir="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
gma_location=$(readlink -f "$dir")/..__TEMP.gma
cd ../../../bin
./gmad_linux create -folder "$dir/" -out "$gma_location"
./gmpublish_linux update -addon "$gma_location" -id "$WORKSHOP_ID" -icon "$dir/icon.jpg"
rm $gma_location