Added support for Magma dev channel downloads

This commit is contained in:
Geoff Bourne 2021-07-26 19:32:26 -05:00
parent b3b3cdde08
commit f3dbb4dd2d
2 changed files with 10 additions and 3 deletions

View File

@ -470,7 +470,9 @@ A [Magma](https://magmafoundation.org/) server, which is a combination of Forge
-e TYPE=MAGMA
> **NOTE** there are limited base versions supported, so you will also need to set `VERSION`, such as "1.12.2"
By default, the "stable" channel is used, but you can set `MAGMA_CHANNEL` to "dev" to access dev channel versions.
> **NOTE** there are limited base versions supported, so you will also need to set `VERSION`, such as "1.12.2", ""
### Running a Mohist server

View File

@ -2,12 +2,17 @@
. ${SCRIPTS:-/}start-utils
isDebugging && set -x
# stable, dev
: ${MAGMA_CHANNEL:=stable}
export SERVER="/data/magma-server-${VANILLA_VERSION}.jar"
# Always download since new updates of each base version are published frequently
if ! curl -o /data/magma-server-${VANILLA_VERSION}.jar -fsSL \
https://api.magmafoundation.org/api/resources/Magma/${VANILLA_VERSION}/stable/latest/download; then
log "ERROR unable to download version ${VANILLA_VERSION} of Magma"
https://api.magmafoundation.org/api/resources/Magma/${VANILLA_VERSION}/${MAGMA_CHANNEL}/latest/download; then
log "ERROR unable to download version ${VANILLA_VERSION} of Magma in ${MAGMA_CHANNEL} channel"
log " Check https://magmafoundation.org/ for available versions"
exit 1
fi