mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-27 12:05:23 +00:00
620b901473
* Revert "Revert Wireguard update"
This reverts commit 03a5cce5bb
.
Signed-off-by: R4SAS <r4sas@i2pmail.org>
* [win] update installer build script
Signed-off-by: R4SAS <r4sas@i2pmail.org>
* [appveyor] use golang 1.17.3 for building
Signed-off-by: R4SAS <r4sas@i2pmail.org>
* [appveyor] use golang 1.17.5 for building
Signed-off-by: R4SAS <r4sas@i2pmail.org>
* test script
Signed-off-by: R4SAS <r4sas@i2pmail.org>
* test msi and semver scripts
Signed-off-by: R4SAS <r4sas@i2pmail.org>
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
26 lines
616 B
Bash
26 lines
616 B
Bash
#!/bin/sh
|
|
|
|
# Get the current branch name
|
|
BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null)
|
|
|
|
if [ -n "$APPVEYOR_PULL_REQUEST_NUMBER" ]; then
|
|
printf "yggdrasil-pr%s" "$APPVEYOR_PULL_REQUEST_NUMBER"
|
|
exit 0
|
|
# Complain if the git history is not available
|
|
elif [ $? != 0 ] || [ -z "$BRANCH" ]; then
|
|
printf "yggdrasil"
|
|
exit 0
|
|
fi
|
|
|
|
# Remove "/" characters from the branch name if present
|
|
BRANCH=$(echo $BRANCH | tr -d "/")
|
|
|
|
# Check if the branch name is not master
|
|
if [ "$BRANCH" = "master" ]; then
|
|
printf "yggdrasil"
|
|
exit 0
|
|
fi
|
|
|
|
# If it is something other than master, append it
|
|
printf "yggdrasil-%s" "$BRANCH"
|