Skip to content

Commit

Permalink
Update rmapi binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
nov1n committed Oct 3, 2024
1 parent 7795415 commit 1283a32
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file modified src/main/jib/usr/local/bin/rmapi_aarch64
Binary file not shown.
Binary file modified src/main/jib/usr/local/bin/rmapi_amd64
Binary file not shown.
Binary file modified src/main/jib/usr/local/bin/rmapi_arm
Binary file not shown.
10 changes: 5 additions & 5 deletions update_rmapi_binaries.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/bin/bash

# Usage: ./update_rmapi_binaries.sh <repo> <version>

SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)

cd "${1}" || exit
git clone git@github.com:ddvk/rmapi.git
cd rmapi || exit
git fetch
git checkout "${2}"
git checkout "$(git tag --sort=-creatordate | head -n 1)"

move() {
mv rmapi "${SCRIPT_DIR}"/src/main/jib/usr/local/bin/rmapi_"${1}"
Expand All @@ -16,4 +15,5 @@ GOOS=linux GOARCH=arm64 go build && move "aarch64"
GOOS=linux GOARCH=arm GOARM=5 go build && move "arm"
GOOS=linux GOARCH=amd64 go build && move "amd64"

cd "${SCRIPT_DIR}" || exit
cd - || exit
rm -rf rmapi

0 comments on commit 1283a32

Please sign in to comment.