Browse Source

prepping for alpha

main
forest 1 month ago
parent
commit
42aceac984
2 changed files with 14 additions and 11 deletions
  1. +1
    -1
      README.md
  2. +13
    -10
      picopublish.sh

+ 1
- 1
README.md View File

@ -1,5 +1,5 @@
# 🌱🏠🧑‍💻 greenhouse-cli
# greenhouse-cli
![Pitney the Pineapple holding a chemistry flask and test tube](readme/mascot-scientific.png)


+ 13
- 10
picopublish.sh View File

@ -1,15 +1,17 @@
#!/bin/bash -e
tag="0.0.0"
if git describe --tags --abbrev=0 > /dev/null 2>&1 ; then
tag="$(git describe --tags --abbrev=0)"
fi
version="$tag-$(git rev-parse --short HEAD)-$(hexdump -n 2 -ve '1/1 "%.2x"' /dev/urandom)"
function build() {
GOOS=$1
GOARCH=$2
tag="0.0.0"
if git describe --tags --abbrev=0 > /dev/null 2>&1 ; then
tag="$(git describe --tags --abbrev=0)"
fi
version="$tag-$(git rev-parse --short HEAD)-$(hexdump -n 2 -ve '1/1 "%.2x"' /dev/urandom)"
echo "building version: $version"
echo "building version: $version for GOOS=$GOOS GOARCH=$GOARCH"
rm -rf build
mkdir build
@ -29,8 +31,9 @@ function build() {
echo "https://picopublish.sequentialread.com/files/$gzip_file_name"
}
#build arm
#build linux amd64
build linux amd64
build linux arm
build linux arm64
#build windows amd64
build darwin amd64
#build arm64
#build darwin amd64

Loading…
Cancel
Save