Add build script #31

Merged
CommanderRedYT merged 1 commits from add-build-script into main 2024-10-03 11:17:32 +02:00
2 changed files with 27 additions and 1 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
/build-*
build-*
build/

25
iconconvert/build.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/bash
if [[ $PWD != *"esp-gui-lib/iconconvert"* ]] || [[ $0 != *"build.sh"* ]]; then
echo "This script must be run from the iconconvert directory"
exit 1
fi
# check if qmake is installed
if ! command -v qmake; then
echo "Qmake is not installed"
exit 1
fi
# check if make is installed
if ! command -v make; then
echo "Make is not installed"
exit 1
fi
mkdir -p build
cd build || exit 1
qmake ..
make
cd ..