-
Notifications
You must be signed in to change notification settings - Fork 1
/
elementary.sh
106 lines (94 loc) · 2.47 KB
/
elementary.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/bash
clear
sudo apt install software-properties-common -y
sudo apt install git -y
sudo apt install docker docker.io -y
sudo apt update -y && sudo apt upgrade -y
sudo apt --fix-broken install -y
git clone https://github.com/elementary/os.git
cd os
clear
#Version selection menu
versionselect() {
echo -ne "
Select the version you want to build
Daily builds:
1) Daily 5.1 "Hera"
2) Daily 6.1 "Jólnir"
3) Daily 7.1 "Horus"
4) Daily 8.0 "next"
Stable builds:
5) Stable 7.1 "Horus"
Build for other platforms
6) Rasperry Pi 4
7) Pinebook Pro
Choose an option: "
echo -e "\e[1;32mPress 0 to cancel\e[0m"
read -r ans
case $ans in
1)
sudo docker run --privileged -i -v /proc:/proc \
-v ${PWD}:/working_dir \
-w /working_dir \
debian:latest \
/bin/bash -s etc/terraform-daily-5.1-azure.conf < build.sh
;;
2)
sudo docker run --privileged -i -v /proc:/proc \
-v ${PWD}:/working_dir \
-w /working_dir \
debian:latest \
/bin/bash -s etc/terraform-daily-6.1-azure.conf < build.sh
;;
3)
sudo docker run --privileged -i -v /proc:/proc \
-v ${PWD}:/working_dir \
-w /working_dir \
debian:latest \
/bin/bash -s etc/terraform-daily-7.1-azure.conf < build.sh
;;
4)
sudo docker run --privileged -i -v /proc:/proc \
-v ${PWD}:/working_dir \
-w /working_dir \
debian:latest \
/bin/bash -s etc/terraform-daily-next-azure.conf < build.sh
;;
5)
sudo docker run --privileged -i -v /proc:/proc \
-v ${PWD}:/working_dir \
-w /working_dir \
debian:latest \
/bin/bash -s etc/terraform-stable-azure.conf < build.sh
;;
6)
sudo apt install flatpak gnome-software-plugin-flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo docker run --privileged -i -v /proc:/proc \
-v ${PWD}:/working_dir \
-w /working_dir \
debian:unstable \
./build-rpi.sh
;;
7)
sudo apt install flatpak gnome-software-plugin-flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo docker run --privileged -i -v /proc:/proc \
-v ${PWD}:/working_dir \
-w /working_dir \
debian:unstable \
./build-pinebookpro.sh
;;
0)
echo "Goodbye."
exit 0
;;
*)
echo "Invalid choice."
exit 1
;;
esac
}
versionselect
clear
exit