Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32159358
ensure_rustup_setup.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
505 B
Referenced Files
None
Subscribers
None
ensure_rustup_setup.sh
View Options
#!/usr/bin/env bash
ensure_target
()
{
local
target
=
"
$1
"
if
!
rustup
target
list
--installed
|
grep
"
$target
"
>
/dev/null
;
then
rustup
target
add
"
$1
"
fi
}
if
!
command
-v
rustup
>
/dev/null
;
then
echo
"Please install rustup"
>
&
2
exit
1
fi
if
[[
"
$(
rustup
toolchain
list
)
"
==
"no installed toolchains"
]]
;
then
rustup
toolchain
install
stable
fi
ensure_target
aarch64-apple-ios
ensure_target
x86_64-apple-ios
if
!
command
-v
cargo-lipo
>
/dev/null
;
then
cargo
install
cargo-lipo
fi
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sun, Dec 7, 4:30 PM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5390581
Default Alt Text
ensure_rustup_setup.sh (505 B)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment