This repository was archived by the owner on Jun 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbootstrap-action.sh
More file actions
executable file
·59 lines (48 loc) · 1.81 KB
/
bootstrap-action.sh
File metadata and controls
executable file
·59 lines (48 loc) · 1.81 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
59
#!/usr/bin/env bash
source /etc/os-release
set -xe
echo -e "\nInstalling dependencies for your distro...\n"
case $ID in
"debian" | "ubuntu" | "elementary")
export DEBIAN_FRONTEND=noninteractive
apt update -y
pixbuf_dev=""
libc_static=""
case "$VERSION_CODENAME" in
"focal" | "buster")
pixbuf_dev="libgdk-pixbuf2.0-dev"
;;
*)
pixbuf_dev="libgdk-pixbuf-2.0-dev"
;;
esac
apt install build-essential clang cmake libglib2.0-dev libpango1.0-dev "$pixbuf_dev" libatk1.0-dev libgtk-3-dev libxcb-shape0-dev libxcb-xfixes0-dev curl libc6-dev libsqlite3-dev git -y
;;
"fedora" | "rocky")
packages=(gobject-introspection-devel cairo-devel atk-devel pango-devel gdk-pixbuf2-devel gtk3-devel clang curl cmake git)
dnf="$(which dnf)"
$dnf update -y
if [ -f "$(command -v dnf5)" ]; then
dnf="$(which dnf5)"
sudo $dnf group install development-tools -y
else
$dnf groupinstall "Development Tools" -y
fi
if [[ "$ID" == "rocky" && $(rpm -E %rhel) -ge 9 ]]; then
$dnf --enablerepo=crb --allowerasing install ${packages[@]} -y
else
$dnf install ${packages[@]} -y
fi
;;
"centos")
yum install epel-release -y
yum update -y
yum groupinstall "Development Tools" -y
yum install gobject-introspection-devel cairo-devel atk-devel pango-devel gdk-pixbuf2-devel gtk3-devel clang curl cmake3 git -y
ln -s /usr/bin/cmake3 /usr/bin/cmake
;;
esac
if [[ ! -z $(which rustup 2>/dev/null ) ]]; then
echo -e "\nInstalling wasm32-unknown-unknown Rust target..."
rustup target install wasm32-unknown-unknown
fi