modmuss50 / mod-publish-plugin

A Gradle plugin to publish mods to a range of destinations
https://modmuss50.github.io/mod-publish-plugin/
MIT License
50 stars 7 forks source link

Allow having no main file set when additional files are set for GitHub publishing #29

Closed Jab125 closed 1 week ago

gniftygnome commented 3 months ago

Yup. I'd like to just do this:

            splitProperty("enabled_platforms").each { var platform ->
                additionalFiles.from(project(":${platform}").remapJar.archiveFile)
            }
Jab125 commented 3 months ago

Currently my workaround is this:

github.configure {
    if (!file.isPresent()) {
        file.set(archiveFile)
    } else {
        additionalFiles.from(archiveFile)
    }
}
gniftygnome commented 3 months ago

Currently my workaround is this:

Yup, I was uploading the README as the primary file, but now I've lifted this approach instead.