From 6a7fbc9a85cfde2561ceae84252b9f03cea4c585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Misty=20De=20M=C3=A9o?= Date: Mon, 27 Nov 2023 11:18:33 -0800 Subject: [PATCH] fix(tests): update for Linuxbrew --- .../snapshots/axolotlsay_abyss_only.snap | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/cargo-dist/tests/snapshots/axolotlsay_abyss_only.snap b/cargo-dist/tests/snapshots/axolotlsay_abyss_only.snap index 5f2b2fe10..a06fe0c53 100644 --- a/cargo-dist/tests/snapshots/axolotlsay_abyss_only.snap +++ b/cargo-dist/tests/snapshots/axolotlsay_abyss_only.snap @@ -721,12 +721,20 @@ download_binary_and_run_installer "$@" || exit 1 ================ formula.rb ================ class Axolotlsay < Formula desc "💬 a CLI for learning to distribute CLIs in rust" - if Hardware::CPU.type == :arm - url "https://fake.axo.dev/faker/axolotlsay/fake-id-do-not-upload/axolotlsay-aarch64-apple-darwin.tar.gz" - else - url "https://fake.axo.dev/faker/axolotlsay/fake-id-do-not-upload/axolotlsay-x86_64-apple-darwin.tar.gz" - end version "0.2.1" + on_macos do + on_arm do + url "https://fake.axo.dev/faker/axolotlsay/fake-id-do-not-upload/axolotlsay-aarch64-apple-darwin.tar.gz" + end + on_intel do + url "https://fake.axo.dev/faker/axolotlsay/fake-id-do-not-upload/axolotlsay-x86_64-apple-darwin.tar.gz" + end + end + on_linux do + on_intel do + url "https://fake.axo.dev/faker/axolotlsay/fake-id-do-not-upload/axolotlsay-x86_64-unknown-linux-gnu.tar.gz" + end + end license "MIT OR Apache-2.0" def install @@ -2183,7 +2191,8 @@ maybeInstall(true).then(run); "kind": "installer", "target_triples": [ "aarch64-apple-darwin", - "x86_64-apple-darwin" + "x86_64-apple-darwin", + "x86_64-unknown-linux-gnu" ], "install_hint": "brew install axolotlsay", "description": "Install prebuilt binaries via Homebrew"