summary refs log tree commit diff
path: root/buildall.sh
blob: 4155b5e0045da95226f199408635a027890e4582 (plain)
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
echo "Welcome to the maelink CL build script"
git submodule update --init --recursive
ls .
echo "--"
ls -r mljs
echo "removing build folder if there already is a build there"

rm -r build/*

echo "Building windows..."
deno task build-win

echo "Building mac..."
deno task build-mac-x86
deno task build-mac-arm

echo "Building linux..."
deno task build-linux-x86
deno task build-linux-arm

echo "All platforms built, starting compression"

mkdir build/compressed

zip build/compressed/win.zip build/win.exe
zip build/compressed/mac.zip build/mac-x86 build/mac-arm

tar -kczf build/compressed/linux.tar.gz build/linux-x86 build/linux-arm
echo "All builds compressed, build finished"