22 lines
403 B
Bash
22 lines
403 B
Bash
#!/bin/bash
|
|
# Install script for nvme-monitor
|
|
|
|
cd "$(dirname "$0")" || exit 1
|
|
|
|
echo "Building nvme-monitor..."
|
|
./build.sh
|
|
|
|
if [ ! -f build/nvme-monitor ]; then
|
|
echo "Build failed!"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Installing nvme-monitor..."
|
|
cd build
|
|
sudo cmake --install .
|
|
|
|
echo "Installation complete!"
|
|
echo "Application icon is embedded in the executable"
|
|
echo "Run 'nvme-monitor' to start the application"
|
|
|