/*
 * This file was generated by the Gradle 'init' task.
 *
 * This generated file contains a sample Java application project to get you started.
 * For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
 * User Manual available at https://docs.gradle.org/7.4.2/userguide/building_java_projects.html
 */
plugins {
	id 'com.github.langmo.gradlensis' version '0.1.0'
}

repositories {
    // Use Maven Central for resolving dependencies.
    mavenCentral()
}


nsis {
	// Enter here the configuration settings of the gradle-nsis plugin.
	// Note: a task "createInstaller" is automatically generated.
	
	// path to the NSIS configuration file
	configuration = file("${projectDir}/src/main/resources/nsis/drivers.nsi")

	// folder where the NSIS installer generator is run. All paths
	// in the NSIS configuration file are relative to this folder.
	runIn =  file("${projectDir}/src/main/resources/drivers")
}

createInstaller.configure {
	def os = System.getProperty("os.name").toLowerCase()
	if (!os.contains("windows"))
		enabled = false
}