diff --git a/contrib/msi/build-msi.sh b/contrib/msi/build-msi.sh index 72fd0733..fd4ac3f5 100644 --- a/contrib/msi/build-msi.sh +++ b/contrib/msi/build-msi.sh @@ -78,18 +78,18 @@ if [ ! -d wintun ]; then curl -o wintun.zip https://www.wintun.net/builds/wintun-0.11.zip unzip wintun.zip - if [ $PKGARCH = "x64" ]; then - PKGWINTUNDLL=wintun/bin/amd64/wintun.dll - elif [ $PKGARCH = "x86" ]; then - PKGWINTUNDLL=wintun/bin/x86/wintun.dll - elif [ $PKGARCH = "arm" ]; then - PKGWINTUNDLL=wintun/bin/arm/wintun.dll - #elif [ $PKGARCH = "arm64" ]; then - # PKGWINTUNDLL=wintun/bin/arm64/wintun.dll - else - echo "wasn't sure which architecture to get wintun for" - exit 1 - fi +fi +if [ $PKGARCH = "x64" ]; then + PKGWINTUNDLL=wintun/bin/amd64/wintun.dll +elif [ $PKGARCH = "x86" ]; then + PKGWINTUNDLL=wintun/bin/x86/wintun.dll +elif [ $PKGARCH = "arm" ]; then + PKGWINTUNDLL=wintun/bin/arm/wintun.dll +#elif [ $PKGARCH = "arm64" ]; then +# PKGWINTUNDLL=wintun/bin/arm64/wintun.dll +else + echo "wasn't sure which architecture to get wintun for" + exit 1 fi if [ $PKGNAME != "master" ]; then