mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-27 12:05:23 +00:00
Download wintun on first pass
This commit is contained in:
parent
8621223a1f
commit
38e05b5f4c
@ -74,19 +74,22 @@ PKGVERSIONMS=$(echo $PKGVERSION | tr - .)
|
|||||||
PKGGUID="54a3294e-a441-4322-aefb-3bb40dd022bb" PKGINSTFOLDER="ProgramFilesFolder"
|
PKGGUID="54a3294e-a441-4322-aefb-3bb40dd022bb" PKGINSTFOLDER="ProgramFilesFolder"
|
||||||
|
|
||||||
# Download the Wintun driver
|
# Download the Wintun driver
|
||||||
curl -o wintun.zip https://www.wintun.net/builds/wintun-0.11.zip
|
if [ ! -d wintun ];
|
||||||
unzip wintun.zip
|
then
|
||||||
if [ $PKGARCH = "x64" ]; then
|
curl -o wintun.zip https://www.wintun.net/builds/wintun-0.11.zip
|
||||||
PKGWINTUNDLL=wintun/bin/amd64/wintun.dll
|
unzip wintun.zip
|
||||||
elif [ $PKGARCH = "x86" ]; then
|
if [ $PKGARCH = "x64" ]; then
|
||||||
PKGWINTUNDLL=wintun/bin/x86/wintun.dll
|
PKGWINTUNDLL=wintun/bin/amd64/wintun.dll
|
||||||
elif [ $PKGARCH = "arm" ]; then
|
elif [ $PKGARCH = "x86" ]; then
|
||||||
PKGWINTUNDLL=wintun/bin/arm/wintun.dll
|
PKGWINTUNDLL=wintun/bin/x86/wintun.dll
|
||||||
#elif [ $PKGARCH = "arm64" ]; then
|
elif [ $PKGARCH = "arm" ]; then
|
||||||
# PKGWINTUNDLL=wintun/bin/arm64/wintun.dll
|
PKGWINTUNDLL=wintun/bin/arm/wintun.dll
|
||||||
else
|
#elif [ $PKGARCH = "arm64" ]; then
|
||||||
echo "wasn't sure which architecture to get wintun for"
|
# PKGWINTUNDLL=wintun/bin/arm64/wintun.dll
|
||||||
exit 1
|
else
|
||||||
|
echo "wasn't sure which architecture to get wintun for"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $PKGNAME != "master" ]; then
|
if [ $PKGNAME != "master" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user