mirror of
https://github.com/ALEZ-DEV/Babylonia-terminal.git
synced 2025-12-15 00:48:52 +00:00
edit build.sh
This commit is contained in:
parent
30a00db9f9
commit
d68664141d
44
build.sh
44
build.sh
@ -1,12 +1,34 @@
|
|||||||
sudo steamos-readonly disable
|
#!/bin/bash
|
||||||
curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sudo sh -s -- --prefix /usr
|
|
||||||
sudo steamos-readonly enable
|
while true; do
|
||||||
|
read -p "Are you on steam deck? (y/n): " confirm
|
||||||
|
if [[ $confirm =~ ^yes$|^y$|^Y$|^no$|^n$|^N$ ]]; then
|
||||||
|
if [[ $confirm =~ ^yes$|^y$|^Y$ ]]; then
|
||||||
|
isSteamdeck=true
|
||||||
|
else
|
||||||
|
isSteamdeck=false
|
||||||
|
fi
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if $isSteamdeck; then
|
||||||
|
sudo steamos-readonly disable
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! command -v distrobox &>/dev/null; then
|
||||||
|
curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sudo sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
if $isSteamdeck; then
|
||||||
|
sudo steamos-readonly enable
|
||||||
|
fi
|
||||||
|
|
||||||
xhost +si:localuser:$USER >/dev/null
|
xhost +si:localuser:$USER >/dev/null
|
||||||
distrobox create && distrobox enter
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
distroname="babylonia-terminal-image"
|
||||||
sudo dnf install pkg-config openssl-devel
|
distrobox create --image registry.fedoraproject.org/fedora-toolbox:38 -Y --name $distroname
|
||||||
sudo dnf install llvm-devel
|
distrobox enter --name $distroname -- sudo dnf install -y pkg-config openssl-devel llvm-devel gcc-c++.x86_64
|
||||||
sudo dnf install gcc-c++.x86_64
|
distrobox enter --name $distroname -- rustup update
|
||||||
rustup update
|
distrobox enter --name $distroname -- rustup toolchain install 1.78.0
|
||||||
rustup toolchain install 1.78.0
|
distrobox enter --name $distroname -- cargo install --git https://github.com/ALEZ-DEV/Babylonia-terminal --bin
|
||||||
cargo install --git https://github.com/ALEZ-DEV/Babylonia-terminal --bin
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user