Archives containing JAR files are available as releases.
inno-gradle lets you automatically use InnoSetup from gradle
Using the plugins DSL:
plugins {
id "io.github.intisy.inno-gradle" version "1.6.7.1"
}Using legacy plugin application:
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "io.github.intisy.inno-gradle:1.6.7.1"
}
}
apply plugin: "io.github.intisy.inno-gradle"Once you have the plugin installed you can use it like so:
import io.github.intisy.gradle.inno.InnoSetupTask
tasks.register("createInstaller", InnoSetupTask) {
infile = artifact_name + "-" + platformArch + "-obfuscated.exe"
outfile = artifact_name + "-" + platformArch + "-installer.exe"
appName = artifact_name
appVersion = project.version
appIcon = "${projectDir}/icon.ico"
jrePath = "${buildDir}/libs/jre"
autoStart = true
debug = true
}