mirror of
https://github.com/Winded/StopMotionHelper.git
synced 2025-03-04 03:13:33 -05:00
Create workshop export script. close #8
This commit is contained in:
parent
41d28fa61f
commit
25b17a46c7
20
workshop_export.sh
Normal file
20
workshop_export.sh
Normal 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!"
|
Loading…
Reference in New Issue
Block a user