Skip to content

Commit

Permalink
🚧 Add nextclade3
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Dec 22, 2023
1 parent fc57c78 commit 23f044b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail -x
mkdir -p "$PREFIX"/bin

# envdir
cp -v "$SRC_DIR"/envdir "$PREFIX"/bin/envdir

# Nextclade v3
curl -fsSL -o "$PREFIX"/bin/nextclade3 https://github.com/nextstrain/nextclade/releases/download/3.0.0-alpha.1/nextclade-$("$SRC_DIR"/target-triple)
23 changes: 23 additions & 0 deletions src/target-triple
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
#
# Get the target triple from uname.
#
set -euo pipefail

kernel="$(uname -s)"
machine="$(uname -m)"

case "$kernel/$machine" in
Linux/x86_64)
echo "x86_64-unknown-linux-gnu";;

Darwin/x86_64)
echo "x86_64-apple-darwin";;

Darwin/arm64)
echo "aarch64-apple-darwin";;

*)
echo "unsupported kernel/machine: $kernel/$machine" >&2
exit 1;;
esac

0 comments on commit 23f044b

Please sign in to comment.