@@ -72,11 +72,12 @@ macAppBundle {
7272
7373launch4j { // Windows only, don't use this, use createWindowsInstaller
7474 mainClassName = " com.airsquared.blobsaver.Main"
75- copyright = " Copyright (c) 2018 airsquared"
75+ copyright = " Copyright (c) 2019 airsquared"
7676 downloadUrl = " https://java.com/inc/BrowserRedirect1.jsp"
7777 icon = " ${ projectDir} /icons/blob_emoji.ico"
7878}
7979
80+ // if your platform isn't Windows, "wine" is required to run this task
8081task createWindowsInstaller (type : Exec , dependsOn : ' createExe' ) {
8182 // IMPORTANT: first make sure you have installed Inno Setup
8283 // Install Inno Setup Preprocessor (ISPP) along with Inno Setup
@@ -94,21 +95,23 @@ task createWindowsInstaller(type: Exec, dependsOn: 'createExe') {
9495 }
9596}
9697
97- void buildEverything () {
98- println " creating fat/uber jar with shadowJar:"
99- shadowJar. execute()
100- println " creating mac app bundle:"
101- if (System . getProperty(" os.name" ). toUpperCase(). contains(" MAC" )) {
102- println " creating full .dmg"
103- createDmg. execute()
104- } else {
105- println " creating .zip with .app inside"
106- createAppZip. execute()
98+ task buildEverything () {
99+ doLast {
100+ println " creating fat/uber jar with shadowJar:"
101+ shadowJar. execute()
102+ println " creating mac app bundle:"
103+ if (System . getProperty(" os.name" ). toUpperCase(). contains(" MAC" )) {
104+ println " creating full .dmg"
105+ createDmg. execute()
106+ } else {
107+ println " creating .zip with .app inside"
108+ createAppZip. execute()
109+ }
110+ println " creating windows installer with inno setup:"
111+ println " **IMPORTANT:** (for creating windows installer)"
112+ println " first make sure you have installed Inno Setup first"
113+ println " and make sure you have wine in your path if you are not on windows"
114+ println " Inno Setup **MUST** be installed to C:\\ Program Files (x86)\\ Inno Setup 5\\ "
115+ createWindowsInstaller. execute()
107116 }
108- println " creating windows installer with inno setup:"
109- println " **IMPORTANT:** (for creating windows installer)"
110- println " first make sure you have installed Inno Setup first"
111- println " and make sure you have wine in your path if you are not on windows"
112- println " Inno Setup **MUST** be installed to C:\\ Program Files (x86)\\ Inno Setup 5\\ "
113- createWindowsInstaller. execute()
114117}
0 commit comments