From a32ac7958c27ba2f27cadc5abf62fe82a87286f2 Mon Sep 17 00:00:00 2001 From: Gannon McGibbon Date: Fri, 29 Nov 2024 02:53:08 -0600 Subject: [PATCH] Add alacritty Default linux terminal isn't great, and all the others don't seem to work well. Let's use this instead. --- Bootstrapfile | 1 + bootstrap/lib/bootstrap/package/sources.yml | 4 ++++ test/bootstrap/fedora_test.rb | 10 +++++++++- test/bootstrap/macos_test.rb | 8 ++++++++ test/bootstrap/ubuntu_test.rb | 8 ++++++++ test/bootstrap/windows_test.rb | 4 ++++ 6 files changed, 34 insertions(+), 1 deletion(-) diff --git a/Bootstrapfile b/Bootstrapfile index cfd9f3f..cd2a680 100644 --- a/Bootstrapfile +++ b/Bootstrapfile @@ -14,6 +14,7 @@ gui do install "localsend" install "pinta" install "xournalpp" + install "alacritty" macos do install "iterm2" diff --git a/bootstrap/lib/bootstrap/package/sources.yml b/bootstrap/lib/bootstrap/package/sources.yml index 598b15a..d06f41f 100644 --- a/bootstrap/lib/bootstrap/package/sources.yml +++ b/bootstrap/lib/bootstrap/package/sources.yml @@ -158,3 +158,7 @@ xournalpp: name: Xournal++.Xournal++ macos: name: xournal++ + +alacritty: + ubuntu: + snap: true \ No newline at end of file diff --git a/test/bootstrap/fedora_test.rb b/test/bootstrap/fedora_test.rb index ea5e7a6..47fc149 100644 --- a/test/bootstrap/fedora_test.rb +++ b/test/bootstrap/fedora_test.rb @@ -112,6 +112,10 @@ class FedoraTest < TestCase test "installs xournalpp" do assert_dnf_installed("xournalpp") end + + test "installs alacritty" do + assert_dnf_installed("alacritty") + end else test "does not install flux" do assert_dnf_not_installed("fluxgui") @@ -161,9 +165,13 @@ class FedoraTest < TestCase assert_dnf_not_installed("pinta") end - test "installs xournalpp" do + test "does not install xournalpp" do assert_dnf_not_installed("xournalpp") end + + test "does not install alacritty" do + assert_dnf_not_installed("alacritty") + end end private diff --git a/test/bootstrap/macos_test.rb b/test/bootstrap/macos_test.rb index d244592..be7fdbe 100644 --- a/test/bootstrap/macos_test.rb +++ b/test/bootstrap/macos_test.rb @@ -120,6 +120,10 @@ class MacosTest < TestCase test "installs xournalpp" do assert_brew_cask_installed("xournal++") end + + test "installs alacritty" do + assert_brew_cask_installed("alacritty") + end else test "does not install iterm2" do assert_brew_cask_not_installed("iterm2") @@ -176,6 +180,10 @@ class MacosTest < TestCase test "does not install xournalpp" do assert_brew_cask_not_installed("xournal++") end + + test "does not install alacritty" do + assert_brew_cask_not_installed("alacritty") + end end private diff --git a/test/bootstrap/ubuntu_test.rb b/test/bootstrap/ubuntu_test.rb index 07e5eac..5c806e6 100644 --- a/test/bootstrap/ubuntu_test.rb +++ b/test/bootstrap/ubuntu_test.rb @@ -112,6 +112,10 @@ class UbuntuTest < TestCase test "installs xournalpp" do assert_apt_installed("xournalpp") end + + test "installs alacritty" do + assert_snap_installed("alacritty") + end else test "does not install flux" do assert_apt_not_installed("fluxgui") @@ -164,6 +168,10 @@ class UbuntuTest < TestCase test "does not install xournalpp" do assert_apt_not_installed("xournalpp") end + + test "does not install alacritty" do + assert_snap_not_installed("alacritty") + end end private diff --git a/test/bootstrap/windows_test.rb b/test/bootstrap/windows_test.rb index 2334397..92fafae 100644 --- a/test/bootstrap/windows_test.rb +++ b/test/bootstrap/windows_test.rb @@ -76,6 +76,10 @@ class WindowsTest < TestCase assert_winget_installed("Xournal++.Xournal++") end + test "installs alacritty" do + assert_winget_installed("alacritty") + end + private def assert_winget_installed(package_name)