mirror of
https://github.com/aljazceru/omakub.git
synced 2025-12-17 04:24:20 +01:00
Add Geekbench as optional install
This commit is contained in:
@@ -8,6 +8,7 @@ CHOICES=(
|
||||
"Brave Chrome-based browser with built-in ad blocking"
|
||||
"Dropbox Sync files across computers with ease"
|
||||
"Gimp Image manipulation tool ala Photoshop"
|
||||
"Geekbench CPU benchmaking tool"
|
||||
"Mainline Kernels Install newer Linux kernels than Ubuntu defaults"
|
||||
"Minecraft Everyone's favorite blocky building game"
|
||||
"OBS Studio Record screencasts with inputs from both display + webcam"
|
||||
@@ -23,7 +24,7 @@ CHOICES=(
|
||||
"<< Back "
|
||||
)
|
||||
|
||||
CHOICE=$(gum choose "${CHOICES[@]}" --height 24 --header "Install application")
|
||||
CHOICE=$(gum choose "${CHOICES[@]}" --height 25 --header "Install application")
|
||||
|
||||
if [[ "$CHOICE" == "<< Back"* ]] || [[ -z "$CHOICE" ]]; then
|
||||
# Don't install anything
|
||||
@@ -45,6 +46,7 @@ else
|
||||
"dev-database") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/select-dev-storage.sh" ;;
|
||||
"ollama") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/optional/app-ollama.sh" ;;
|
||||
"tailscale") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/optional/app-tailscale.sh" ;;
|
||||
"geekbench") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/optional/app-geekbench.sh" ;;
|
||||
*) INSTALLER_FILE="$OMAKUB_PATH/install/desktop/optional/app-$INSTALLER.sh" ;;
|
||||
esac
|
||||
|
||||
|
||||
12
install/terminal/optional/app-geekbench.sh
Normal file
12
install/terminal/optional/app-geekbench.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
GB_VERSION="6.4.0"
|
||||
|
||||
cd /tmp
|
||||
gum spin --title "Downloading Geekbench $GB_VERSION..." -- \
|
||||
curl -sLo geekbench.tar.gz "https://cdn.geekbench.com/Geekbench-${GB_VERSION}-Linux.tar.gz"
|
||||
gum spin --title "Extracting Geekbench $GB_VERSION..." -- \
|
||||
tar -xzf geekbench.tar.gz
|
||||
sudo mv "Geekbench-${GB_VERSION}-Linux" /usr/local/geekbench6
|
||||
sudo ln -sf /usr/local/geekbench6/geekbench6 /usr/local/bin/geekbench6
|
||||
rm -rf Geekbench* geekbench.tar.gz
|
||||
cd -
|
||||
echo "Run as geekbench6 from the terminal"
|
||||
2
uninstall/app-geekbench.sh
Normal file
2
uninstall/app-geekbench.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
sudo rm -rf /usr/local/geekbench6
|
||||
sudo rm -rf /usr/local/bin/geekbench6
|
||||
Reference in New Issue
Block a user