Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Latest commit

 

History

History
48 lines (43 loc) · 1.39 KB

README.md

File metadata and controls

48 lines (43 loc) · 1.39 KB

Bannerlord.NexusmodsUploader

Generic mod file uploader. Is mainly used for M&B2:B, but can be used for any other game. Example of usage in WebSite.

Requirements

Requires BUTR GitHub Package Registry to be added.

nuget sources add -name "BUTR" -Source https://nuget.pkg.github.com/BUTR/index.json -Username YOURGITHUBUSERNAME -Password YOURGITHUBTOKEN

Requires NEXUSMODS_COOKIES_JSON environment variable:

[
    {
        "Id":"member_id",
        "Value":"%SET_VALUE%",
        "Domain":".nexusmods.com",
        "Path":"/",
        "Date":"%SET_VALUE%"
    },
    {
        "Id":"pass_hash",
        "Value":"%SET_VALUE%",
        "Domain":".nexusmods.com",
        "Path":"/",
        "Date":"%SET_VALUE%"
    },
    {
        "Id":"sid",
        "Value":"%SET_VALUE%",
        "Domain":".nexusmods.com",
        "Path":"/",
        "Date":"%SET_VALUE%"
    }
]

Installation

dotnet tool install -g Bannerlord.NexusmodsUploader

Example

When installed as a global tool:

bannerlord_nexusmods_uploader upload -g mountandblade2bannerlord -m 612 -n "Mod Configuration Menu" -v "v3.1.0" -l true -e true -d "MULTILINE\nCHANGELOG" -p "$PWD/MCM.Standalone.zip";

Check this for a workflow example.