-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathreleasevnc
More file actions
executable file
·45 lines (36 loc) · 872 Bytes
/
releasevnc
File metadata and controls
executable file
·45 lines (36 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
set -u
set -e
NAME=
TAG=
PRARG=
if [ $# -lt 2 ]; then
echo "USAGE: $0 <Release name> <Release tag> [-prerelease]"
exit 1
fi
NAME=$1
shift
TAG=$1
shift
while [ $# -gt 0 ]; do
case "$1" in
-p*) PRARG=--prerelease ;;
esac
shift
done
BUILDDIR=$HOME/src/vnc.nightly/$TAG/files
if [ ! -d $BUILDDIR ]; then
echo "Cannot find release under $BUILDDIR."
exit 1
fi
echo Pushing release to GitHub ...
gh release create -R TurboVNC/turbovnc $PRARG --title "$NAME" \
--verify-tag --notes-file $BUILDDIR/README.md $TAG ||
gh release edit -R TurboVNC/turbovnc $PRARG --title "$NAME" \
--verify-tag --notes-file $BUILDDIR/README.md $TAG
find $BUILDDIR -type f -depth 1 \
! -name '*.txt' -a ! -name '*.md' -a ! -name '*.html' \
-a ! -name '.DS_Store' | while read file; do
gh release upload -R TurboVNC/turbovnc $TAG "$file" || true
done
echo GREAT SUCCESS!