Skip to content

Commit

Permalink
Fix artifact naming and clean up (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold856 authored Oct 22, 2024
1 parent 23226a6 commit 567a48e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,11 @@ def getPlatformPath(triplet) {
}
}

ext.triplet = getTriplet()
ext.platformPath = getPlatformPath(ext.triplet)
def triplet = getTriplet()
ext.platformPath = getPlatformPath(triplet)
ext.platformClassifier = ext.platformPath.replaceFirst('/', '')

ext.repo = "thirdparty-ceres"

def triplet = getTriplet()

def pubVersion = "2.2-1"

def outputsFolder = file("$project.buildDir/outputs")
Expand All @@ -73,10 +70,8 @@ def versionFile = file("$outputsFolder/version.txt")
def licenseFile = file("LICENSE.md")

def outputClassifierStatic = project.ext.platformClassifier + 'static'
def outputClassifierDebugStatic = project.ext.platformClassifier + 'debug/static'
System.out.println(triplet)


task copyAllOutputs(type: Copy) {
destinationDir = outputsFolder
}
Expand Down Expand Up @@ -142,7 +137,7 @@ task cppLibsZipStatic(type: Zip) {
task cppLibsZipStaticDebug(type: Zip) {
destinationDirectory = outputsFolder
archiveClassifier = outputClassifierStatic + 'debug'
archiveBaseName = zipBaseName + 'debug'
archiveBaseName = zipBaseName
duplicatesStrategy = 'exclude'

from(licenseFile) {
Expand Down

0 comments on commit 567a48e

Please sign in to comment.