代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/ganttproject 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
* Open Source Software published under the Apache Licence, Version 2.0.
*/
import org.gradle.internal.os.OperatingSystem
plugins {
id "de.undercouch.download" version "3.4.3"
}
ext {
currentOs = OperatingSystem.current()
}
task downloadZipFile(type: Download) {
def srcFile = ""
if (project.ext.currentOs.isWindows()) {
srcFile = 'https://gluonhq.com/download/javafx-11-0-2-jmods-windows/'
} else if (currentOs.isLinux()) {
srcFile = 'https://gluonhq.com/download/javafx-11-0-2-jmods-linux/'
} else if (currentOs.isMacOsX()) {
srcFile = 'https://gluonhq.com/download/javafx-11-0-2-jmods-mac/'
}
println("Downloading JavaFX mods for $currentOs from $srcFile")
src srcFile
dest new File(buildDir, 'javafx-jmods-11.zip')
}
task installJavafxJmods(dependsOn: downloadZipFile, type: Copy) {
from zipTree(downloadZipFile.dest)
into buildDir
}
task build(dependsOn: installJavafxJmods) {
doLast {
if (project.ext.currentOs.isLinux()) {
exec {
workingDir '.'
commandLine 'build-bin/package-lin.sh', 'build', 'ganttproject-builder/dist-bin', '2.99.0', 'build/javafx-jmods-11.0.2'
}
} else if (project.ext.currentOs.isWindows()) {
exec {
workingDir '.'
environment("PWD", System.getProperty("user.dir"))
commandLine 'build-bin\\package-win.bat', 'build', 'ganttproject-builder\\dist-bin', '2.99.0', 'build\\javafx-jmods-11.0.2'
}
} else if (project.ext.currentOs.isMacOsX()) {
exec {
workingDir '.'
commandLine 'build-bin/package-mac.sh', 'build', 'ganttproject-builder/dist-bin', '2.99.0', 'build/javafx-jmods-11.0.2'
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。