Create workshop export script. close #8

This commit is contained in:
Winded 2018-07-12 20:23:36 +03:00
parent 41d28fa61f
commit 25b17a46c7

20
workshop_export.sh Normal file
View File

@ -0,0 +1,20 @@
#!/bin/sh
# Copy files to another folder that can be published to workshop
INPUT="$1"
OUTPUT="$2"
# Make output directory
mkdir -p "$OUTPUT"
# Copy all files to output
cp -r "$INPUT/" "$OUTPUT/"
# Remove non-lua files from output
find "$OUTPUT" -type f ! -name '*.lua' -delete
# Copy addon.json
cp "$INPUT/addon.json" "$OUTPUT"
echo "All done!"