generated from outfrost/godot-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
export.sh
executable file
·39 lines (33 loc) · 1.11 KB
/
export.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
36
37
38
39
#!/bin/bash
echo "Cleaning build outputs" >&2
rm -rf build/RePlacement-Linux/
rm -rf build/RePlacement-Windows/
echo "Creating build directories" >&2
mkdir -p build/RePlacement-Linux/
mkdir -p build/RePlacement-Windows/
echo >&2
echo "Starting Linux export" >&2
godot -v --no-window --export RePlacement-Linux-X11-amd64 build/RePlacement-Linux/replacement
echo >&2
echo "Starting Windowsexport" >&2
godot -v --no-window --export RePlacement-Windows-amd64 build/RePlacement-Windows/replacement.exe
echo >&2
echo "Copying sound files" >&2
cp -R sound build/RePlacement-Linux/
rm build/RePlacement-Linux/sound/*.import
cp -R sound build/RePlacement-Windows/
rm build/RePlacement-Windows/sound/*.import
echo >&2
echo "Creating library symlinks" >&2
pushd build/RePlacement-Linux/ >/dev/null
ln -f -s libfmod.so libfmod.so.13
ln -f -s libfmodstudio.so libfmodstudio.so.13
popd >/dev/null
echo >&2
echo "Archiving exports" >&2
pushd build/ >/dev/null
echo "RePlacement-Linux.zip" >&2
zip -r RePlacement-Linux.zip RePlacement-Linux
echo "RePlacement-Windows.zip" >&2
zip -r RePlacement-Windows.zip RePlacement-Windows
popd >/dev/null