Skip to content

Commit

Permalink
add setup-util-(alacritty|hyper)
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Feb 15, 2024
1 parent 1d09026 commit 1488978
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 11 deletions.
25 changes: 25 additions & 0 deletions commands/setup-util-alacritty
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

# https://repology.org/project/alacritty/versions

function setup_util_alacritty() (
source "$DOROTHY/sources/bash.bash"

# apt is out of date
# v0.13 is only one that supports .toml, which is the only documented configuration format
local options=(
--app='Alacritty'
--cli=alacritty
"$@"
AUR='alacritty'
CASK='alacritty'
SNAP='alacritty --edge --classic'
WINGET='alacritty'
)
setup-util "${options[@]}"
)

# fire if invoked standalone
if test "$0" = "${BASH_SOURCE[0]}"; then
setup_util_alacritty "$@"
fi
67 changes: 67 additions & 0 deletions commands/setup-util-hyper
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/usr/bin/env bash

# https://repology.org/project/hyper-terminal/versions
# https://hyper.is/#installation

function setup_util_hyper() (
source "$DOROTHY/sources/bash.bash"

# determine the options
local arch options=(
--name='Hyper'
--app='Hyper'
--cli=hyper
"$@"
AUR='hyper'
CASK='hyper'
CHOCO='hyper'
NIX='hyper'
WINGET='Hyper'
)
arch="$(get-arch)"
if is-mac; then
if test "$arch" = 'a64'; then
options+=(
DOWNLOAD='https://releases.hyper.is/download/mac'
DOWNLOAD_ARCHIVE_GLOB='*/Hyper.app'
DOWNLOAD_FILENAME='Hyper.app'
)
elif test "$arch" = 'x64'; then
options+=(
DOWNLOAD='https://releases.hyper.is/download/mac_arm64'
DOWNLOAD_ARCHIVE_GLOB='*/Hyper.app'
DOWNLOAD_FILENAME='Hyper.app'
)
fi
elif is-linux; then
if test "$arch" = 'a64'; then
options+=(
DEB='hhttps://releases.hyper.is/download/deb_arm64'
RPM='https://releases.hyper.is/download/rpm_arm64'
)
if is-appimage; then
options+=(
DOWNLOAD='https://releases.hyper.is/download/AppImage_arm64'
DOWNLOAD_FILENAME='Hyper.appimage'
)
fi
elif test "$arch" = 'x64'; then
options+=(
DEB='https://releases.hyper.is/download/deb'
RPM='https://releases.hyper.is/download/rpm'
)
if is-appimage; then
options+=(
DOWNLOAD='https://releases.hyper.is/download/AppImage'
DOWNLOAD_FILENAME='Hyper.appimage'
)
fi
fi
fi
setup-util "${options[@]}"
)

# fire if invoked standalone
if test "$0" = "${BASH_SOURCE[0]}"; then
setup_util_hyper "$@"
fi
22 changes: 11 additions & 11 deletions commands/setup-util-teip
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
# cut alternative

# https://github.com/greymd/teip/releases
# teip-2.3.0.aarch64-apple-darwin.tar.gz
# teip-2.3.0.aarch64-unknown-linux-musl.deb
# teip-2.3.0.aarch64-unknown-linux-musl.rpm
# teip-2.3.0.aarch64-unknown-linux-musl.tar.gz
# teip-2.3.0.arm-unknown-linux-gnueabihf.deb
# teip-2.3.0.arm-unknown-linux-gnueabihf.tar.gz
# teip-2.3.0.x86_64-apple-darwin.tar.gz
# teip-2.3.0.x86_64-unknown-linux-musl.deb
# teip-2.3.0.x86_64-unknown-linux-musl.rpm
# teip-2.3.0.x86_64-unknown-linux-musl.tar.gz
# teip_installer-2.3.0-x86_64-pc-windows-msvc.exe
# teip-2.3.2.aarch64-apple-darwin.tar.gz
# teip-2.3.2.aarch64-unknown-linux-musl.deb
# teip-2.3.2.aarch64-unknown-linux-musl.rpm
# teip-2.3.2.aarch64-unknown-linux-musl.tar.gz
# teip-2.3.2.arm-unknown-linux-gnueabihf.deb
# teip-2.3.2.arm-unknown-linux-gnueabihf.tar.gz
# teip-2.3.2.x86_64-apple-darwin.tar.gz
# teip-2.3.2.x86_64-unknown-linux-musl.deb
# teip-2.3.2.x86_64-unknown-linux-musl.rpm
# teip-2.3.2.x86_64-unknown-linux-musl.tar.gz
# teip_installer-2.3.2-x86_64-pc-windows-msvc.exe

# arm64
# https://github.com/greymd/teip/issues/23
Expand Down

0 comments on commit 1488978

Please sign in to comment.