Skip to content

Commit 0db5d3d

Browse files
committed
build folder seems protected now
1 parent 5446fa1 commit 0db5d3d

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ task dist(type: Jar) {
9090
attributes 'Main-Class': project.mainClassName
9191
}
9292

93-
destinationDirectory = file("$buildDir/lib")
93+
destinationDirectory = file("$buildDir/../distBuld/lib")
9494
}
9595

9696
jpackageImage.dependsOn dist
@@ -149,10 +149,14 @@ dependencies {
149149
}
150150

151151
task deleteInstallerTemp(type: Delete) {
152-
delete "$buildDir/installer"
152+
delete "$buildDir/../distBuld/installer"
153153
}
154154
jpackage.dependsOn deleteInstallerTemp
155155

156+
startScripts {
157+
dependsOn dist
158+
}
159+
156160
runtime {
157161
javaHome.set(System.getProperty("java.home"))
158162
options = ['--strip-debug',
@@ -171,6 +175,7 @@ runtime {
171175
'jdk.unsupported']
172176

173177
jpackage {
178+
distDir.set(file("$buildDir/../distBuld"))
174179
setVersion(getBuildVersion())
175180
mainJar = dist.archiveFileName.get()
176181
imageOptions += ['--app-version', getBuildVersion(), '--vendor', 'Red & Black Games', '--description', 'HyperLap2D Editor', '--name', 'HyperLap2D']
@@ -182,7 +187,7 @@ runtime {
182187
installerOptions += ['--win-dir-chooser', '--win-menu', '--win-menu-group', 'HyperLap2D',
183188
'--win-shortcut', '--win-shortcut-prompt', '--vendor', 'Red & Black Games',
184189
'--description', 'HyperLap2D Editor',
185-
'--temp', "$buildDir/installer",
190+
'--temp', "$buildDir/../distBuld/installer",
186191
'--win-upgrade-uuid', 'e5f64fb6-111f-41f3-8f33-03b90e1a3a32',
187192
"--icon", file("icons/icon.ico")]
188193
resourceDir = file("resources-windows")

plugin-9patch/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ task dist(type: Jar) {
3333
from files(sourceSets.main.output.classesDirs)
3434
from files(sourceSets.main.output.resourcesDir)
3535

36-
destinationDirectory = file("../build/lib/plugins")
36+
destinationDirectory = file("../distBuld/lib/plugins")
3737

3838
doLast {
3939
def jarToCopy = archiveFileName.get()

plugin-performance/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ task dist(type: Jar) {
3333
from files(sourceSets.main.output.classesDirs)
3434
from files(sourceSets.main.output.resourcesDir)
3535

36-
destinationDirectory = file("../build/lib/plugins")
36+
destinationDirectory = file("../distBuld/lib/plugins")
3737

3838
doLast {
3939
def jarToCopy = archiveFileName.get()

plugin-skin-composer/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ task dist(type: Jar) {
3737
from files(sourceSets.main.output.classesDirs)
3838
from files(sourceSets.main.output.resourcesDir)
3939

40-
destinationDirectory = file("../build/lib/plugins")
40+
destinationDirectory = file("../distBuld/lib/plugins")
4141

4242
doLast {
4343
def jarToCopy = archiveFileName.get()

plugin-tiled/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ task dist(type: Jar) {
5959
from files(sourceSets.main.output.resourcesDir)
6060
from files(project.assetsDir)
6161

62-
destinationDirectory = file("../build/lib/plugins")
62+
destinationDirectory = file("../distBuld/lib/plugins")
6363

6464
doLast {
6565
def jarToCopy = archiveFileName.get()

resources-windows/HyperLap2D-post-image.wsf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<![CDATA[
66
var fileSystem = new ActiveXObject("Scripting.FileSystemObject");
77
var hyperlap2dRoot = fileSystem.GetFolder(".").ParentFolder.ParentFolder.ParentFolder.ParentFolder.Path;
8-
var installerConfig = hyperlap2dRoot + "/build/installer/config/";
8+
var installerConfig = hyperlap2dRoot + "/distBuld/installer/config/";
99
// Copy image resources
1010
fileSystem.CopyFile(hyperlap2dRoot + "/resources-windows/dlgbmp.bmp", installerConfig);
1111
fileSystem.CopyFile(hyperlap2dRoot + "/resources-windows/bannrbmp.bmp", installerConfig);

0 commit comments

Comments
 (0)