'Generic Commit'
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled

This commit is contained in:
Your Name 2025-06-01 23:37:34 +12:00
parent 7f341699c1
commit f48302c05e
3 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@ function build_native() {
ninja -j"$JOBS" ninja -j"$JOBS"
#upx ${BUILDDIR}/dropshell #upx ${BUILDDIR}/dropshell
cp "${BUILDDIR}/dropshell" "${OUTPUT_DIR}/dropshell.native" cp "${BUILDDIR}/dropshell" "${OUTPUT_DIR}/dropshell.${ARCH}"
cd "${PREVDIR}" || exit 1 cd "${PREVDIR}" || exit 1
} }
@ -48,6 +48,6 @@ build_native
echo "Auto-installing dropshell locally..." echo "Auto-installing dropshell locally..."
mkdir -p "${INSTALL_DIR}" mkdir -p "${INSTALL_DIR}"
cp "${OUTPUT_DIR}/dropshell.native" "${INSTALL_DIR}/dropshell" cp "${OUTPUT_DIR}/dropshell.${ARCH}" "${INSTALL_DIR}/dropshell"
ds version ds version
echo "Build process completed!" echo "Build process completed!"

View File

@ -4,9 +4,9 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# Create output directory # Create output directory
mkdir -p "${SCRIPT_DIR}/output" mkdir -p "${SCRIPT_DIR}/output"
PREV_DIR=$(pwd)
cd "${SCRIPT_DIR}" cd "${SCRIPT_DIR}"
trap 'cd "${PREVDIR}"' EXIT trap 'cd "${PREV_DIR}"' EXIT
function build_arch() { function build_arch() {
local arch=$1 local arch=$1

4
source/test.sh Normal file → Executable file
View File

@ -7,6 +7,6 @@ ARCH=$(uname -m)
PREV_DIR=$(pwd) PREV_DIR=$(pwd)
trap 'cd "$PREV_DIR"' EXIT trap 'cd "$PREV_DIR"' EXIT
"$SCRIPT_DIR/output/dropshell_${ARCH}" list "$SCRIPT_DIR/output/dropshell.${ARCH}" hash "${SCRIPT_DIR}/test.sh"
"$SCRIPT_DIR/output/dropshell_${ARCH}" help "$SCRIPT_DIR/output/dropshell.${ARCH}" help