Update main.sh

This commit is contained in:
ferreo 2024-08-04 17:59:49 +02:00
parent 25bdcfee14
commit 3ea38f3d48

View File

@ -14,7 +14,7 @@ cd cosmic-settings
# Get build deps # Get build deps
sed -i '/^\s*\(cargo\|rustc\|rust-all\)\s*\(([^)]*)\)\?\s*,\?$/d; s/,\s*\(cargo\|rustc\|rust-all\)\s*\(([^)]*)\)\?\s*,\?//g' ./debian/control sed -i '/^\s*\(cargo\|rustc\|rust-all\)\s*\(([^)]*)\)\?\s*,\?$/d; s/,\s*\(cargo\|rustc\|rust-all\)\s*\(([^)]*)\)\?\s*,\?//g' ./debian/control
sed -i '2i$(shell . /root/.cargo/env)' ./debian/rules sed -i '2iexport $(shell . /root/.cargo/env && env | grep "^CARGO_\|^RUSTUP_" | sed "s/=/:=/")\n' ./debian/rules
apt-get build-dep ./ -y apt-get build-dep ./ -y
apt-get install curl -y apt-get install curl -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y