-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-setup.sh
More file actions
executable file
·58 lines (41 loc) · 1.25 KB
/
dev-setup.sh
File metadata and controls
executable file
·58 lines (41 loc) · 1.25 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
set -e
set -o pipefail
pushd $(dirname $0) > /dev/null
echo "Setting up dev env for linux"
echo "Installing libraries..."
sudo apt-get install libssl-dev libcurl4-openssl-dev
mkdir -p lib
if [ ! -d lib/wgpu ]; then
echo "Downloading wgpu debug binaries"
wget https://github.com/gfx-rs/wgpu-native/releases/download/v0.19.4.1/wgpu-linux-x86_64-debug.zip -O wgpu.zip
mkdir -p lib/wgpu
pushd lib/wgpu
unzip ../../wgpu.zip
popd
rm -rf wgpu.zip
fi
if [ ! -d lib/yyjson ]; then
echo "Downloading yyjson..."
git clone https://github.com/ibireme/yyjson.git lib/yyjson
fi
if [ ! -d "lib/glfw" ]; then
echo "Downloading glfw..."
wget https://github.com/glfw/glfw/archive/7b6aead9fb88b3623e3b3725ebb42670cbe4c579.zip -O glfw.zip
unzip glfw.zip
mv glfw-* ./lib/glfw
rm -rf glfw.zip
fi
if [ ! -d lib/cglm ]; then
echo "Downloading cglm..."
git clone https://github.com/recp/cglm.git lib/cglm
fi
if [ ! -d lib/libdeflate ]; then
echo "Downloading libdeflate..."
wget 'https://github.com/ebiggers/libdeflate/archive/refs/tags/v1.20.zip' -O libdeflate.zip
unzip libdeflate.zip
mv libdeflate-* ./lib/libdeflate
rm libdeflate.zip
fi
echo "Done! Next get required minecraft files by running ./import-data.sh"
popd > /dev/null