mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-18 09:37:04 +01:00
add possibility to build DEB and RPM package
This commit is contained in:
@@ -1,8 +1,31 @@
|
|||||||
apply plugin: 'cpp'
|
|
||||||
plugins {
|
plugins {
|
||||||
id "nebula.os-package" version "2.0.3"
|
id "nebula.os-package" version "2.0.3"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apply plugin: 'cpp'
|
||||||
|
|
||||||
executables {
|
executables {
|
||||||
main
|
hello {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ospackage {
|
||||||
|
packageName = "hello"
|
||||||
|
version = "1.0"
|
||||||
|
release = 1
|
||||||
|
os = LINUX
|
||||||
|
packageDescription = "Linux Gradle hello package"
|
||||||
|
summary = "contains binary with hello world example"
|
||||||
|
|
||||||
|
from("build/binaries/helloExecutable") {
|
||||||
|
into "/usr/bin/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
buildDeb {
|
||||||
|
requires("libc6")
|
||||||
|
}
|
||||||
|
|
||||||
|
buildRpm {
|
||||||
|
requires("libc6")
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user