add buildx script
This commit is contained in:
17
bin/buildx
Executable file
17
bin/buildx
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
target=$(rustc --print target-list | fzf --cycle --header "Select build target:")
|
||||||
|
|
||||||
|
if [ -z "$target" ]; then
|
||||||
|
echo "No target selected. Canceled."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$1" ]; then
|
||||||
|
cmd="$1"
|
||||||
|
shift
|
||||||
|
else
|
||||||
|
cmd="build"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cross "$cmd" --target "$target" $@
|
||||||
Reference in New Issue
Block a user