mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-14 18:05:51 -04:00
fix uploading?
This commit is contained in:
parent
c3a97a0fa1
commit
6f2153cba3
@ -526,7 +526,10 @@ application {
|
|||||||
mainClass.set("de.bixilon.minosoft.Minosoft")
|
mainClass.set("de.bixilon.minosoft.Minosoft")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var destination: File? = null
|
||||||
|
|
||||||
val fatJar = task("fatJar", type = Jar::class) {
|
val fatJar = task("fatJar", type = Jar::class) {
|
||||||
|
destination = destinationDirectory.get().asFile
|
||||||
archiveBaseName.set("${project.name}-fat-${os.name.lowercase()}-${architecture.name.lowercase()}")
|
archiveBaseName.set("${project.name}-fat-${os.name.lowercase()}-${architecture.name.lowercase()}")
|
||||||
manifest {
|
manifest {
|
||||||
attributes["Implementation-Title"] = project.name.capitalized()
|
attributes["Implementation-Title"] = project.name.capitalized()
|
||||||
@ -556,9 +559,9 @@ task("assetsProperties", type = JavaExec::class) {
|
|||||||
task("upload") {
|
task("upload") {
|
||||||
dependsOn("fatJar")
|
dependsOn("fatJar")
|
||||||
doLast {
|
doLast {
|
||||||
val path = "${project.name}-fat-${os.name.lowercase()}-${architecture.name.lowercase()}-${project.version}.jar"
|
val base = (destination ?: File("build/libs"))
|
||||||
val file = File("build/libs/$path")
|
val file = base.resolve("${project.name}-fat-${os.name.lowercase()}-${architecture.name.lowercase()}-${project.version}.jar")
|
||||||
if (!file.exists()) throw FileNotFoundException("Release file to upload was not found???: $file, available: ${file.parentFile.listFiles()}")
|
if (!file.exists()) throw FileNotFoundException("Release file to upload was not found???: $file, available: ${base.listFiles()}")
|
||||||
val key = KeyFactory.getInstance("RSA").generatePrivate(PKCS8EncodedKeySpec(System.getenv("RELEASE_KEY").fromBase64()))
|
val key = KeyFactory.getInstance("RSA").generatePrivate(PKCS8EncodedKeySpec(System.getenv("RELEASE_KEY").fromBase64()))
|
||||||
|
|
||||||
val digest = MessageDigest.getInstance(HashUtil.SHA_512)
|
val digest = MessageDigest.getInstance(HashUtil.SHA_512)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user