[Build] Fix build script for jar with native freetype binaries

Natives were packed in 'io/imgui/java/native-bin/freetype', not in 'io/imgui/java/native-bin/'.
This commit is contained in:
SpaiR committed 2021-04-12 12:55:45 +03:00
1 parent f1556009a9
commit d80850104c
1 file changed
+3 -2
+3 -2
View File
@@ -6,6 +6,7 @@ plugins {
def packageName = 'imgui-java-natives-linux'
def packageDesc = 'Native binaries for imgui-java binding for 64bit Linux'
def fromDir = '../bin'
def libName = 'libimgui-java64.so'
if (System.getProperty('deployWin32')) {
@@ -33,11 +34,11 @@ if (System.getProperty('deployWin32')) {
if (System.getProperty('freetype')) {
packageName += '-ft'
packageDesc += ' with Freetype support'
libName = 'freetype/' + libName
fromDir += '/freetype'
}
jar {
from('../bin') {
from(fromDir) {
include "$libName" // this is fine
into 'io/imgui/java/native-bin/'
}