SDL module 1
This commit is contained in:
@@ -175,39 +175,4 @@ task packrZip(){
|
||||
|
||||
finalizedBy 'rzip'
|
||||
}
|
||||
}
|
||||
|
||||
task ikZip(type: Zip){
|
||||
def filename = "$appName-windows-${version}"
|
||||
|
||||
from "build/libs/$filename"
|
||||
archiveBaseName = "$appName-windows"
|
||||
}
|
||||
|
||||
task ikdist{
|
||||
dependsOn dist
|
||||
finalizedBy ikZip
|
||||
|
||||
doLast{
|
||||
def filename = "$appName-windows-${version}"
|
||||
def folder = "build/libs/$filename"
|
||||
def args = ["mono", "$IKVM_DIR/ikvmc.exe", "-target:winexe", "-static", "-out:build/libs/${filename}.exe", "build/libs/${filename}.jar"]
|
||||
if(file("../core/assets/sprites/icon.ico").exists()){
|
||||
args += ["-win32icon:../core/assets/sprites/icon.ico"]
|
||||
}
|
||||
|
||||
exec{
|
||||
commandLine args
|
||||
}
|
||||
|
||||
copy{
|
||||
from file("build/libs/${filename}.exe")
|
||||
into file(folder)
|
||||
}
|
||||
|
||||
copy{
|
||||
from "$IKVM_DIR/libraries"
|
||||
into folder
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user