mirror of
https://github.com/jlengrand/RemarkablePocket.git
synced 2026-03-10 08:41:19 +00:00
19 lines
473 B
Bash
Executable File
19 lines
473 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
|
|
|
git clone git@github.com:ddvk/rmapi.git
|
|
cd rmapi || exit
|
|
git fetch
|
|
git checkout "$(git tag --sort=-creatordate | head -n 1)"
|
|
|
|
move() {
|
|
mv rmapi "${SCRIPT_DIR}"/src/main/jib/usr/local/bin/rmapi_"${1}"
|
|
}
|
|
|
|
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 - || exit
|
|
rm -rf rmapi |