-
Notifications
You must be signed in to change notification settings - Fork 0
/
distribute.sh
35 lines (30 loc) · 886 Bytes
/
distribute.sh
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
27
28
29
30
31
32
33
34
35
# rm -rf distribute
NAME="pickle"
# Source
rm -f distribute/source/*.love
zip -9 -r -v distribute/source/$NAME.love . -x *.git* *.sh "distribute/*"
cd distribute/source
rm -f ../*_source.zip
zip -9 -r -v ../$NAME"_source.zip" .
cd ../..
# Windows
rm -f distribute/windows/*.exe
cat distribute/windows/love.exe distribute/source/$NAME.love > distribute/windows/$NAME.exe
cd distribute/windows
rm -f ../*_windows.zip
zip -9 -r -v ../$NAME"_windows.zip" . -x love.exe love.ico
cd ../..
# Linux
rm -f distribute/linux/*.love
cp distribute/source/$NAME.love distribute/linux/
cd distribute/linux
rm -f ../*_linux.zip
zip -9 -r -v ../$NAME"_linux.zip" .
cd ../..
# OSX
rm -f distribute/osx/$NAME.app/Contents/Resources/$NAME.love
cp distribute/source/$NAME.love distribute/osx/$NAME.app/Contents/Resources/
cd distribute/osx
rm -f ../*_osx.zip
zip -9 -r -v ../$NAME"_osx.zip" .
cd ../..