mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 15:15:07 +03:00
Build Yggdrasil for each arch
This commit is contained in:
parent
cd346492bd
commit
d130c9b614
1 changed files with 5 additions and 7 deletions
|
@ -29,13 +29,11 @@ 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue