Skip to content

Commit 4a518fb

Browse files
committed
Fix build.
1 parent b99a637 commit 4a518fb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

develnext/build.gradle

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,23 +86,24 @@ task distWindowsPatch(type: Zip, dependsOn: ['clean', 'distPatch']) {
8686

8787
doLast {
8888
def issFile = "$project.rootDir/develnext/windowsSetup/innopatchsetup.iss".replace("\\", "/")
89-
def innoSetupBin = "$project.rootDir/develnext-tools/innoSetup/ISCC.exe".replace("\\", "/")
9089

91-
exec {
92-
commandLine innoSetupBin, '/Qp', issFile
90+
if (System.properties['os.name'].toLowerCase().contains('linux')) {
91+
issFile = "windowsSetup/innopatchsetup.iss"
9392
}
9493

95-
def uploadPath = System.getProperty("uploadPath", "E:/Upload")
94+
buildISS(issFile)
95+
96+
def uploadPath = System.getProperty("uploadPath", "E:/Upload/YandexDisk")
9697

9798
if (new File(uploadPath).isDirectory()) {
9899
copy {
99100
from "$project.buildDir/distributions/DevelNext.WindowsPatch.exe"
100-
into "$uploadPath/YandexDisk"
101+
into "$uploadPath"
101102
}
102103

103104
copy {
104105
from distWindowsPatch.archivePath
105-
into "$uploadPath/YandexDisk"
106+
into "$uploadPath"
106107
}
107108
}
108109
}

0 commit comments

Comments
 (0)