Adding upstream version 1.2.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
3a3aa427d7
commit
e7ed09875d
58 changed files with 3068 additions and 0 deletions
26
scripts/make-release.sh
Executable file
26
scripts/make-release.sh
Executable file
|
@ -0,0 +1,26 @@
|
|||
#! /bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! -d .git ]; then
|
||||
echo 'Run this script from root of repository' 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
executable=selfupdate-example
|
||||
|
||||
rm -rf release
|
||||
gox -verbose ./cmd/$executable
|
||||
mkdir -p release
|
||||
mv selfupdate-example_* release/
|
||||
cd release
|
||||
for bin in *; do
|
||||
if [[ "$bin" == *windows* ]]; then
|
||||
command="${executable}.exe"
|
||||
else
|
||||
command="$executable"
|
||||
fi
|
||||
mv "$bin" "$command"
|
||||
zip "${bin}.zip" "$command"
|
||||
rm "$command"
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue