Skip to content

Commit

Permalink
Adds plugins to javapackager for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Håkansson committed Aug 21, 2018
1 parent 7c51385 commit 1cef9bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ task copyPlugins(type: Copy, dependsOn: 'unzip', description: 'Copies additional
into file("${appBase}/lib/plugins")
}

task copyPluginsFlatLib(type: Copy, dependsOn: 'unzipFlatLib', description: 'Copies additional jars to the plugins folder (requires editing of build.gradle)') {
from configurations.appPlugins
into file("${appBase}/plugins")
}

def modifyPath(def path) {
def modified=path.replaceAll('\\Adotify-studio[^/]*(.+)', {"dotify-studio${it[1]}"})
return modified
Expand Down Expand Up @@ -241,7 +246,7 @@ ext.runJavaPackager = { bundles, appIcon, appName ->

}

task jpMsi(dependsOn: 'deleteBinFlatLib', description: 'Uses javapackager to create msi installer (experimental).') {
task jpMsi(dependsOn: ['deleteBinFlatLib', 'copyPluginsFlatLib'], description: 'Uses javapackager to create msi installer (experimental).') {
doLast() {
runJavaPackager('msi', file('ant-build/resources/app-icon.ico').getAbsolutePath(), 'dotify-studio')
}
Expand Down

0 comments on commit 1cef9bf

Please sign in to comment.