mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-15 05:31:42 +03:00
29 lines
522 B
Bash
Executable File
29 lines
522 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
set -euo pipefail
|
|
|
|
# shellcheck disable=SC1091
|
|
. lib.sh
|
|
|
|
main() {
|
|
install_packages ca-certificates curl
|
|
|
|
export RUSTUP_HOME=/tmp/rustup
|
|
export CARGO_HOME=/tmp/cargo
|
|
|
|
curl --retry 3 -sSfL https://sh.rustup.rs -o rustup-init.sh
|
|
sh rustup-init.sh -y --no-modify-path --profile minimal
|
|
rm rustup-init.sh
|
|
|
|
PATH="${CARGO_HOME}/bin:${PATH}" cargo install xargo --root /usr/local
|
|
|
|
rm -r "${RUSTUP_HOME}" "${CARGO_HOME}"
|
|
|
|
purge_packages
|
|
|
|
rm "${0}"
|
|
}
|
|
|
|
main "${@}"
|