1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 08:38:13 -07:00

Don't expose downloadUrl since it doesn't work yet.

This commit is contained in:
Cedric Beust 2015-11-13 23:36:58 -08:00
parent 8dfcb7c56a
commit 044bcc9c48
3 changed files with 6 additions and 5 deletions

View file

@ -18,13 +18,13 @@ class KobaltWrapperProperties @Inject constructor() {
fun create(version: String) {
log(2, "Creating $file with $version and ${defaultUrlFor(version)}")
KFiles.saveFile(file, listOf(
"$PROPERTY_VERSION=$version",
"$PROPERTY_DOWNLOAD_URL=${defaultUrlFor(version)}"
"$PROPERTY_VERSION=$version"
// "$PROPERTY_DOWNLOAD_URL=${defaultUrlFor(version)}"
).joinToString("\n"))
}
private fun defaultUrlFor(version: String) =
"https://github.com/cbeust/kobalt/releases/download/$version/kobalt-$version.zip"
"http://beust.com/kobalt/kobalt-$version.zip"
private val file: File
get() = File("$WRAPPER_DIR/$KOBALT_WRAPPER_PROPERTIES")

View file

@ -16,6 +16,6 @@ public class UpdateKobalt @Inject constructor(val github: GithubApi, val wrapper
* Download from the URL found in the kobalt-wrapper.properties regardless of what the latest version is
*/
fun downloadKobalt() {
com.beust.kobalt.wrapper.Main.main(arrayOf("--download"))
com.beust.kobalt.wrapper.Main.main(arrayOf("--download", "--no-launch"))
}
}