feat: unified navigation
fix: install script copying build binary chore: updated readme
This commit is contained in:
16
install.sh
16
install.sh
@@ -1,5 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Check if binary exists
|
||||
if [ ! -f "build/playback" ]; then
|
||||
echo "Error: build/playback not found. Run 'make build' first."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Install binary to /usr/local/bin
|
||||
echo "Installing binary to /usr/local/bin/playback..."
|
||||
sudo cp build/playback /usr/local/bin/playback
|
||||
sudo chmod +x /usr/local/bin/playback
|
||||
|
||||
# Create desktop entry directory if it doesn't exist
|
||||
mkdir -p ~/.local/share/applications
|
||||
|
||||
@@ -19,5 +32,6 @@ EOF
|
||||
# Update desktop database
|
||||
update-desktop-database ~/.local/share/applications 2>/dev/null || true
|
||||
|
||||
echo "Binary installed to /usr/local/bin/playback"
|
||||
echo "Desktop entry installed to ~/.local/share/applications/playback.desktop"
|
||||
echo "Playback is now available in your application menu"
|
||||
echo "Playback is now available in your application menu and via 'playback' command"
|
||||
|
||||
Reference in New Issue
Block a user