Skip to content

Commit 742db69

Browse files
committed
Update copyright dates & make buildEverything() a single Gradle task
1 parent 4aa472c commit 742db69

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

build.gradle

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,12 @@ macAppBundle {
7272

7373
launch4j { // 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
8081
task 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
}

src/main/java/com/airsquared/blobsaver/Controller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public void aboutMenuHandler() {
534534
OkButton.setDefaultButton(true);
535535

536536
alert.setHeaderText("blobsaver " + appVersion);
537-
alert.setContentText("blobsaver Copyright (c) 2018 airsquared\n\n" +
537+
alert.setContentText("blobsaver Copyright (c) 2019 airsquared\n\n" +
538538
"This program is licensed under GNU GPL v3.0-only");
539539

540540
resizeAlertButtons(alert);

0 commit comments

Comments
 (0)