Skip to content

Commit

Permalink
removed version from filename on release artfiacts. added unix instal…
Browse files Browse the repository at this point in the history
…l script.
  • Loading branch information
e253 committed Jul 26, 2024
1 parent bbc5f19 commit 67722ff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
15 changes: 15 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# based on https://github.com/tristanisham/zvm/blob/dad2862a6ebc0cd457b0f472223d874fa49ba867/install.sh

ARCH=$(uname -m)
OS=$(uname -s)

if [ $ARCH = "arm64" ]; then
ARCH="aarch64"
fi
if [ $ARCH = "amd64" ]; then
ARCH="x86_64"
fi

wget -q --show-progress --max-redirect 5 -O openclc.tar.gz "https://github.com/e253/openclc/releases/latest/download/openclc-$OS-$ARCH.tar.gz
tar -xvzf openclc.tar.gz -C .
rm openclc.tar.gz
6 changes: 2 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ ROOTDIR=$(pwd)
TARGET="$1"
MCPU="$2"

OS_AND_ABI=${TARGET#*-}
OS=${OS_AND_ABI%-*}
ARCH_AND_OS=${TARGET%-*}

OPENCLC_VERSION="0.0.1"
RELEASE_NAME="openclc-$OPENCLC_VERSION-$TARGET"
RELEASE_NAME="openclc-$ARCH_AND_OS"
mkdir -p "$ROOTDIR/release/$RELEASE_NAME"

if [ $OS = "windows" ]; then
Expand Down

0 comments on commit 67722ff

Please sign in to comment.