'Generic Commit'
All checks were successful
Build-Test-Publish / build (push) Successful in 6s

This commit is contained in:
Your Name
2025-06-01 19:48:11 +12:00
parent b9ca132071
commit 32552489f3
5 changed files with 51 additions and 46 deletions

View File

@ -4,29 +4,16 @@ set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
TEMP_DIR=$(mktemp -d)
SOS="${TEMP_DIR}/sos"
curl -L -o "${SOS}" https://getbin.xyz/sos
chmod +x "${SOS}"
function getbin() {
local BIN_NAME="$1"
curl -L -o "${TEMP_DIR}/${BIN_NAME}" "https://getbin.xyz/${BIN_NAME}"
chmod +x "${TEMP_DIR}/${BIN_NAME}"
}
getbin "dropshell-build"
"${TEMP_DIR}/dropshell-build" "${SCRIPT_DIR}"
# make canonical path
DROPSHELL_BUILD_DIR=$(realpath "${DROPSHELL_BUILD_DIR}")
# make sure the build script exists
if [ ! -f "${DROPSHELL_BUILD_DIR}/dropshell-build" ]; then
echo "Error: dropshell-build not found"
exit 1
fi
if [ ! -f "${DROPSHELL_BUILD_DIR}/install_dropshell_build_requirements" ]; then
echo "Error: install_dropshell_build_requirements not found"
exit 1
fi
# run the build script
"${DROPSHELL_BUILD_DIR}/dropshell-build" -m -r "${SCRIPT_DIR}"
rm -rf "${TEMP_DIR}"