Commit 8ebb475b authored by Meade's avatar Meade

Updated scripts and readme.

parent c94ecf8c
...@@ -59,13 +59,13 @@ Written in Rust, using GTK3 ...@@ -59,13 +59,13 @@ Written in Rust, using GTK3
To build, just run ```cargo build --release```. The resultant binary will be ```target/release/BrewStillery```. To build, just run ```cargo build --release```. The resultant binary will be ```target/release/BrewStillery```.
To install/uninstall system-wide, run ```install.sh``` or ```uninstall.sh``` from the scripts directory. To install/uninstall system-wide, run ```install.sh``` or ```uninstall.sh``` from the scripts directory as your regular user.
If you're installing with ```cargo install BrewStillery```, the logo image will be missing. If you're installing with ```cargo install BrewStillery```, the logo image will be missing.
To fix this, you will need ```BrewStilleryLogo.svg``` from the media directory. To fix this, you will need ```BrewStilleryLogo.png``` from the media directory.
Install it with ```sudo install -Dm755 ../media/BrewStilleryLogo.svg /usr/share/BrewStillery/BrewStilleryLogo.svg``` Install it with ```sudo install -Dm755 ../media/BrewStilleryLogo.png /usr/share/BrewStillery/BrewStilleryLogo.png```
## Sources: ## Sources:
......
#!/bin/sh #!/bin/sh
read -p "Enter root password: " -s rootPassword
cargo build --release && cargo build --release &&
sudo install -Dm755 ../target/release/BrewStillery /usr/bin/BrewStillery && echo "$rootPassword" | sudo -S install -Dm755 ../target/release/BrewStillery /usr/bin/BrewStillery &&
sudo install -Dm755 ../Desktop/BrewStillery.desktop /usr/share/applications/BrewStillery.desktop && echo "$rootPassword" | sudo -S install -Dm755 ../Desktop/BrewStillery.desktop /usr/share/applications/BrewStillery.desktop &&
sudo install -Dm755 ../media/BrewStilleryIcon.png /usr/share/BrewStillery/BrewStilleryIcon.png && echo "$rootPassword" | sudo -S install -Dm755 ../media/BrewStilleryIcon.png /usr/share/BrewStillery/BrewStilleryIcon.png &&
sudo install -Dm755 ../media/BrewStilleryLogo.png /usr/share/BrewStillery/BrewStilleryLogo.png && echo "$rootPassword" | sudo -S install -Dm755 ../media/BrewStilleryLogo.png /usr/share/BrewStillery/BrewStilleryLogo.png &&
sudo install -Ddm755 /usr/share/BrewStillery/glassware && echo "$rootPassword" | sudo -S install -Ddm755 /usr/share/BrewStillery/glassware &&
sudo install -Dm755 ../media/glassware/*.png /usr/share/BrewStillery/glassware/ && echo "$rootPassword" | sudo -S install -Dm755 ../media/glassware/*.png /usr/share/BrewStillery/glassware/ &&
sudo install -Ddm755 /usr/share/BrewStillery/buttons && echo "$rootPassword" | sudo -S install -Ddm755 /usr/share/BrewStillery/buttons &&
sudo install -Dm755 ../media/buttons/*.png /usr/share/BrewStillery/buttons/ echo "$rootPassword" | sudo -S install -Dm755 ../media/buttons/*.png /usr/share/BrewStillery/buttons/
\ No newline at end of file \ No newline at end of file
#!/bin/sh #!/bin/sh
sudo rm /usr/bin/BrewStillery && read -p "Enter root password: " -s rootPassword
sudo rm /usr/share/applications/BrewStillery.desktop &&
sudo rm -rf /usr/share/BrewStillery echo "$rootPassword" | sudo -S rm /usr/bin/BrewStillery &&
\ No newline at end of file echo "$rootPassword" | sudo -S rm /usr/share/applications/BrewStillery.desktop &&
echo "$rootPassword" | sudo -S rm -rf /usr/share/BrewStillery
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment