mirror of
https://github.com/MedzikUser/go-github-selfupdate.git
synced 2024-08-08 08:07:21 +00:00
22 lines
345 B
Bash
Executable file
22 lines
345 B
Bash
Executable file
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
if [ ! -d .git ]; then
|
|
echo 'Run this script from root of repository' 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
command=selfupdate-example
|
|
|
|
rm -rf release
|
|
gox -verbose ./cmd/$command
|
|
mkdir -p release
|
|
mv selfupdate-example_* release/
|
|
cd release
|
|
for bin in *; do
|
|
mv "$bin" "$command"
|
|
zip "${bin}.zip" "$command"
|
|
rm "$command"
|
|
done
|