forked from lloesche/valheim-server-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial BepInExPack mod support (Implements lloesche#282) (lloesche#288)
* Initial BepInExPack mod support (Fixes lloesche#282) * Add BEPINEX info to README * Refactored vpenvconf to work for generic BepInEx config files and support special characters in variable names * Renamed vpenvconf -> env2cfg * Unify ValheimPlus and BepInExPack mod install and update code
- Loading branch information
Showing
17 changed files
with
527 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
# bepinex-updater is being called by | ||
# valheim-updater when $BEPINEX=true | ||
# It downloads the BepInExPack mod and merges | ||
# the downloaded archive with the vanilla | ||
# Valheim server into /opt/valheim/bepinex | ||
|
||
# Include defaults and common functions | ||
. /usr/local/etc/valheim/defaults | ||
. /usr/local/etc/valheim/common | ||
|
||
|
||
main() { | ||
local api_response | ||
local download_url | ||
local remote_updated_at | ||
|
||
if ! api_response=$(curl -sfSL -H "accept: application/json" "https://valheim.thunderstore.io/api/experimental/package/denikson/BepInExPack_Valheim/"); then | ||
fatal "Error: could not retrieve BepInEx release info from Thunderstore.io API" | ||
fi | ||
download_url=$(jq -r ".latest.download_url" <<< "$api_response" ) | ||
remote_updated_at=$(jq -r ".date_updated" <<< "$api_response" ) | ||
|
||
check_for_mod_update \ | ||
"$download_url" \ | ||
"$remote_updated_at" \ | ||
"$bepinex_zipfile" \ | ||
"$bepinex_mergefile" \ | ||
"$bepinex_download_path" \ | ||
"$bepinex_config_path" \ | ||
"extracted/BepInExPack_Valheim" \ | ||
"$bepinex_install_path" \ | ||
"BepInEx" | ||
} | ||
|
||
|
||
main |
Oops, something went wrong.