This commit is contained in:
parent
02be7691ac
commit
a87eb6151c
BIN
musl/aarch64-linux-musl-cross.tgz
Normal file
BIN
musl/aarch64-linux-musl-cross.tgz
Normal file
Binary file not shown.
BIN
musl/aarch64-linux-musl-native.tgz
Normal file
BIN
musl/aarch64-linux-musl-native.tgz
Normal file
Binary file not shown.
BIN
musl/i686-linux-musl-native.tgz
Normal file
BIN
musl/i686-linux-musl-native.tgz
Normal file
Binary file not shown.
34
musl/upload.sh
Executable file
34
musl/upload.sh
Executable file
@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
|
||||
function upload_file() {
|
||||
local file="$1"
|
||||
local server="getbin.xyz"
|
||||
local tag="latest"
|
||||
local name;
|
||||
name=$(basename "${file}")
|
||||
|
||||
# upload the file to the server
|
||||
echo "Uploading ${file} to the server"
|
||||
sos upload "${server}" "${file}" "${name}:${tag}"
|
||||
}
|
||||
|
||||
|
||||
if ! command -v sos &> /dev/null ; then
|
||||
echo "sos could not be found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v dropshell-tool &> /dev/null ; then
|
||||
echo "dropshell-tool could not be found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# find all .tgz in this directory
|
||||
for file in "${SCRIPT_DIR}"/*.tgz; do
|
||||
# upload the file to the server
|
||||
echo "Uploading ${file} to the server"
|
||||
upload_file "${file}"
|
||||
done
|
BIN
musl/x86_64-linux-musl-cross.tgz
Normal file
BIN
musl/x86_64-linux-musl-cross.tgz
Normal file
Binary file not shown.
BIN
musl/x86_64-linux-musl-native.tgz
Normal file
BIN
musl/x86_64-linux-musl-native.tgz
Normal file
Binary file not shown.
BIN
musl/x86_64-w64-mingw32-cross.tgz
Normal file
BIN
musl/x86_64-w64-mingw32-cross.tgz
Normal file
Binary file not shown.
@ -304,6 +304,7 @@ function install_musl() {
|
||||
TOOLCHAIN_LIST=(
|
||||
"aarch64-linux-musl-cross"
|
||||
"x86_64-linux-musl-cross"
|
||||
"x86_64-w64-mingw32-cross"
|
||||
)
|
||||
|
||||
for TOOLCHAIN in "${TOOLCHAIN_LIST[@]}"; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user