modpublisher icon indicating copy to clipboard operation
modpublisher copied to clipboard

Feature: Separate changelog/description for additional files.

Open iChun opened this issue 1 year ago • 2 comments

I've seen from trial and from poking around in the code that the changelog for additional files are taken from the parent file. Would appreciate a way to set a different changelog to said additional files.

Thank you!

EDIT: I suppose this could also potentially be extended to file display names as well

iChun avatar Jan 21 '24 00:01 iChun

Hmm good point.

I'm thinking for this, maybe I can change the additional file method, to either take in just a file, or an Object, which would allow overriding the file display name and changelog.

If those properties are not defined, it will just fall back to the globally defined ones

hypherionmc avatar Jan 21 '24 08:01 hypherionmc

Implemented with 2.0.3

// Additional files to upload with a custom display name and changelog.
// Currently only supported on Curseforge
addAdditionalFile {
    // File, Task or String
    artifact jar
    displayName "Some Name"
    changelog "Hello Changelog"
}

Kotlin DSL

// Additional files to upload with a custom display name and changelog.
// Currently supports CurseForge only
addAdditionalFile {
    // File, Task or String
    artifact(tasks.jar)
    displayName("Test Name")
    changelog("Some Changelog")
}

hypherionmc avatar Jan 22 '24 17:01 hypherionmc