Build Yggdrasil for each arch

This commit is contained in:
Neil Alexander 2019-11-27 23:38:51 +00:00
parent cd346492bd
commit d130c9b614
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -29,14 +29,12 @@ then
fi fi
# Check the prerequisite files are in place # Check the prerequisite files are in place
(test -f yggdrasil.exe && test -f yggdrasilctl.exe) || (
[ "${PKGARCH}" == "x64" ] && GOARCH=amd64 CGO_ENABLED=0 ./build || \ [ "${PKGARCH}" == "x64" ] && GOARCH=amd64 CGO_ENABLED=0 ./build || \
[ "${PKGARCH}" == "x86" ] && GOARCH=386 CGO_ENABLED=0 ./build || \ [ "${PKGARCH}" == "x86" ] && GOARCH=386 CGO_ENABLED=0 ./build || \
( (
echo "failed to build Yggdrasil" echo "failed to build Yggdrasil"
exit 1 exit 1
) )
)
# Create the postinstall script # Create the postinstall script
cat > config.bat << EOF cat > config.bat << EOF