Fixed first-time packaging issue in build script

This commit is contained in:
2022-01-09 21:02:56 +03:00
parent 162b2249b1
commit fe01e1b81c
4 changed files with 34 additions and 46 deletions

View File

@@ -15,7 +15,7 @@ task packageDeb_configure() {
preparePackaging.mustRunAfter packageDeb_configure
doLast {
tasks.preparePackaging.ext.buildDest = '/usr/share/progressia'
tasks.preparePackaging.ext.buildDest = 'usr/share/progressia'
tasks.preparePackaging.ext.mode = 'copy'
}
}
@@ -31,6 +31,10 @@ task packageDeb(type: Exec) {
dependsOn packageDeb_processResources
doFirst {
mkdir 'build/packages'
}
executable 'dpkg-deb'
args '--root-owner-group'
args '--build', 'build/tmp/packaging/workingDir'

View File

@@ -40,6 +40,10 @@ task packageNsis(type: Exec) {
dependsOn packageNsis_generateIcon
dependsOn packageNsis_generateLeftSide
doFirst {
mkdir 'build/packages'
}
executable 'makensis'
args '-NOCONFIG'
args "-DPROJECT_NAME=${project.name}"

View File

@@ -36,6 +36,10 @@ task packageZip(type: Zip) {
archiveVersion = project.version
}
doFirst {
mkdir 'build/packages'
}
from 'build/tmp/packaging/workingDir'
destinationDirectory = file('build/packages')
}