autocf: switch to official CurseForge API, but needs CF_API_KEY (#2043)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2023-03-29 21:00:39 -05:00
1 parent d672b3878f
commit 106996f06f
9 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
--var version=0.1.1 --var app=maven-metadata-release --file {{.app}} \ --var version=0.1.1 --var app=maven-metadata-release --file {{.app}} \
--from https://github.com/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz --from https://github.com/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
ARG MC_HELPER_VERSION=1.25.19 ARG MC_HELPER_VERSION=1.25.20
ARG MC_HELPER_BASE_URL=https://github.com/itzg/mc-image-helper/releases/download/${MC_HELPER_VERSION} ARG MC_HELPER_BASE_URL=https://github.com/itzg/mc-image-helper/releases/download/${MC_HELPER_VERSION}
RUN curl -fsSL ${MC_HELPER_BASE_URL}/mc-image-helper-${MC_HELPER_VERSION}.tgz \ RUN curl -fsSL ${MC_HELPER_BASE_URL}/mc-image-helper-${MC_HELPER_VERSION}.tgz \
| tar -C /usr/share -zxf - \ | tar -C /usr/share -zxf - \
+3
View File
@@ -616,6 +616,9 @@ docker run -d --name mc-ftb -e EULA=TRUE \
To manage a CurseForge modpack automatically with upgrade support, pinned or latest version tracking, set `TYPE` to "AUTO_CURSEFORGE". The appropriate mod loader (Forge / Fabric) version will be automatically installed as declared by the modpack. This mode will also take care of cleaning up unused files installed by previous versions of the modpack, but world data is never auto-removed. To manage a CurseForge modpack automatically with upgrade support, pinned or latest version tracking, set `TYPE` to "AUTO_CURSEFORGE". The appropriate mod loader (Forge / Fabric) version will be automatically installed as declared by the modpack. This mode will also take care of cleaning up unused files installed by previous versions of the modpack, but world data is never auto-removed.
> **NOTES:** > **NOTES:**
>
> A CurseForge API key is **required** to use this feature. Go to their [developer console](https://console.curseforge.com/), generate an API key, and set the environment variable `CF_API_KEY`.
>
> Be sure to use the appropriate [image tag for the Java version compatible with the modpack](#running-minecraft-server-on-different-java-version). > Be sure to use the appropriate [image tag for the Java version compatible with the modpack](#running-minecraft-server-on-different-java-version).
> >
> Most modpacks require a good amount of memory, so it best to set `MEMORY` to at least "4G" since the default is only 1 GB. > Most modpacks require a good amount of memory, so it best to set `MEMORY` to at least "4G" since the default is only 1 GB.
+1
View File
@@ -8,6 +8,7 @@ services:
environment: environment:
EULA: "true" EULA: "true"
TYPE: AUTO_CURSEFORGE TYPE: AUTO_CURSEFORGE
CF_API_KEY: # allocate from https://console.curseforge.com/
CF_PAGE_URL: https://www.curseforge.com/minecraft/modpacks/all-the-mods-8 CF_PAGE_URL: https://www.curseforge.com/minecraft/modpacks/all-the-mods-8
CF_FILENAME_MATCHER: "1.0.6" CF_FILENAME_MATCHER: "1.0.6"
MEMORY: 4G MEMORY: 4G
@@ -8,6 +8,7 @@ services:
environment: environment:
EULA: "true" EULA: "true"
TYPE: AUTO_CURSEFORGE TYPE: AUTO_CURSEFORGE
CF_API_KEY: # allocate from https://console.curseforge.com/
CF_PAGE_URL: "https://www.curseforge.com/minecraft/modpacks/one-block-modded/files/4136487" CF_PAGE_URL: "https://www.curseforge.com/minecraft/modpacks/one-block-modded/files/4136487"
CF_SET_LEVEL_FROM: OVERRIDES CF_SET_LEVEL_FROM: OVERRIDES
DEBUG: "false" DEBUG: "false"
+1
View File
@@ -8,6 +8,7 @@ services:
environment: environment:
EULA: "true" EULA: "true"
TYPE: AUTO_CURSEFORGE TYPE: AUTO_CURSEFORGE
CF_API_KEY: # allocate from https://console.curseforge.com/
CF_SLUG: the-pixelmon-modpack CF_SLUG: the-pixelmon-modpack
CF_FILENAME_MATCHER: "9.1.2" CF_FILENAME_MATCHER: "9.1.2"
MEMORY: 4G MEMORY: 4G
+1
View File
@@ -8,6 +8,7 @@ services:
environment: environment:
EULA: "true" EULA: "true"
TYPE: AUTO_CURSEFORGE TYPE: AUTO_CURSEFORGE
CF_API_KEY: # allocate from https://console.curseforge.com/
CF_FORCE_SYNCHRONIZE: "true" CF_FORCE_SYNCHRONIZE: "true"
CF_PAGE_URL: https://www.curseforge.com/minecraft/modpacks/valhelsia-5/files/4429560 CF_PAGE_URL: https://www.curseforge.com/minecraft/modpacks/valhelsia-5/files/4429560
MEMORY: 4G MEMORY: 4G
@@ -8,6 +8,7 @@ services:
environment: environment:
EULA: "true" EULA: "true"
TYPE: AUTO_CURSEFORGE TYPE: AUTO_CURSEFORGE
CF_API_KEY: # allocate from https://console.curseforge.com/
CF_SLUG: vault-hunters-1-18-2 CF_SLUG: vault-hunters-1-18-2
CF_FILENAME_MATCHER: "Update-6H" CF_FILENAME_MATCHER: "Update-6H"
MEMORY: 4G MEMORY: 4G
@@ -7,6 +7,7 @@ services:
EULA: "true" EULA: "true"
SETUP_ONLY: "TRUE" SETUP_ONLY: "TRUE"
TYPE: AUTO_CURSEFORGE TYPE: AUTO_CURSEFORGE
CF_API_KEY: ${CF_API_KEY}
CF_SLUG: the-pixelmon-modpack CF_SLUG: the-pixelmon-modpack
CF_FILENAME_MATCHER: "9.1.2" CF_FILENAME_MATCHER: "9.1.2"
# Use the image bundled one to ensure latest is being tested # Use the image bundled one to ensure latest is being tested
+1
View File
@@ -0,0 +1 @@
[[ $CF_API_KEY ]] || exit 1