forked from magico13/Modlets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzip.bash
More file actions
26 lines (22 loc) · 757 Bytes
/
zip.bash
File metadata and controls
26 lines (22 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
declare -a dirs=("DatedQuickSaves" "EditorTime" "NIMBY" "SensibleScreenshot" "ShipSaveSplicer" "TreeToppler" "Wwwwwwwww")
declare -a builds=("Dated_QuickSaves" "EditorTime" "NotInMyBackYard" "Sensible_Screenshot" "ShipSaveSplicer" "TreeToppler" "Wwwwwwwww")
declare -a magiCore=(1 0 0 1 0 0 0)
arrLen=${#dirs[@]}
mkdir -p build/GameData
for (( i=0; i<${arrLen}; i++ )); do
d="${dirs[$i]}"
b="${builds[$i]}"
m=${magiCore[$i]}
cp -r GameData/"${d}" build/GameData
cp "${b}"/obj/Release/*.dll build/GameData/"${d}"/
rm -f build/GameData/"${d}"/MagiCore.dll
if [ ${m} -eq 1 ]; then
cp -r ../MagiCore/GameData/* build/GameData/
fi
cd build
zip -r "${d}".zip GameData
mv "${d}".zip ../
cd ..
rm -r build/GameData/*
done
rm -r build