20 lines
376 B
Bash
Executable file
20 lines
376 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
rm -rf /tmp/release
|
|
mkdir -p /tmp/release
|
|
cp bb /tmp/release
|
|
# cp src-bash/bbk /tmp/release
|
|
|
|
VERSION=$(cat resources/BABASHKA_VERSION)
|
|
|
|
cd /tmp/release
|
|
mkdir -p /tmp/bb_size
|
|
./bb '(spit "/tmp/bb_size/size" (.length (io/file "bb")))'
|
|
|
|
## release binary as zip archive
|
|
|
|
zip "babashka-$VERSION-$BABASHKA_PLATFORM-amd64.zip" bb # bbk
|
|
|
|
## cleanup
|
|
|
|
rm bb # bbk
|