Add Geekbench as optional install

This commit is contained in:
David Heinemeier Hansson
2025-05-23 11:48:24 +02:00
parent 43843d7a03
commit cd4af45dd2
3 changed files with 17 additions and 1 deletions

View File

@@ -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

View 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"

View File

@@ -0,0 +1,2 @@
sudo rm -rf /usr/local/geekbench6
sudo rm -rf /usr/local/bin/geekbench6