new file: CubeClt/Dockerfile new file: CubeClt/Resources/CubeCLT/install.sh new file: CubeClt/Resources/Scripts/reinstall-cmake.sh new file: CubeClt/build_and_publish.sh new file: CubeMx/Dockerfile new file: CubeMx/Resources/CubeMX/install-cubemx.sh new file: CubeMx/build_and_publish.sh modified: README.md
23 lines
448 B
Bash
23 lines
448 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Set the script to fail if any command fails.
|
|
set -e
|
|
|
|
# Cleanup temporary directory and associated files when exiting the script.
|
|
cleanup() {
|
|
EXIT_CODE=$?
|
|
set +e
|
|
if [[ -n "${TMP_DIR}" ]]; then
|
|
echo "Executing cleanup of tmp files"
|
|
rm -Rf "${TMP_DIR}"
|
|
fi
|
|
exit $EXIT_CODE
|
|
}
|
|
|
|
echo "Installing CubeMX..."
|
|
|
|
# Extract zip file
|
|
unzip -q /tmp/CubeMX/en.stm32cubemx-lin-v6-13-0.zip -d /tmp/CubeMX
|
|
|
|
|