mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
* fixing up error handling for prctl calls * minor clippy lintypoos * making clippy happier * clippizing a test * more clippy-calming * adding tpm-udev to ubuntu flows for testing * rebuilt wasm * moving from rg to grep because someone doesn't like nice things * such clippy like wow * clippy config to the rescue
45 lines
1.1 KiB
Bash
Executable file
45 lines
1.1 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ ! -f ../individual_build.sh ]; then
|
|
echo "Please run from the package base directory!"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "${BUILD_FLAGS}" ]; then
|
|
BUILD_FLAGS="--release"
|
|
fi
|
|
|
|
if [ -z "$(which rsync)" ]; then
|
|
echo "Cannot find rsync which is needed to move things around, quitting!"
|
|
exit 1
|
|
fi
|
|
if [ -z "$(which wasm-pack)" ]; then
|
|
echo "Cannot find wasm-pack which is needed to build the UI, quitting!"
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p ./pkg
|
|
|
|
echo "Cleaning up WASM files before build..."
|
|
find ./pkg/ -name 'kanidmd*' -exec rm "{}" \;
|
|
|
|
# we can disable this since we want it to expand
|
|
# shellcheck disable=SC2086
|
|
wasm-pack build ${BUILD_FLAGS} --no-typescript --target web --no-pack
|
|
|
|
echo "######################"
|
|
echo "Moving files around..."
|
|
echo "######################"
|
|
touch ./pkg/ANYTHING_HERE_WILL_BE_DELETED_ADD_TO_SRC && \
|
|
rm ./pkg/.gitignore
|
|
|
|
echo "######################"
|
|
echo "Moving files up into the webui pkg dir..."
|
|
echo "######################"
|
|
rsync -av pkg/* ../pkg/
|
|
|
|
echo "######################"
|
|
echo " Done!"
|
|
echo "######################" |