From e184877a977542edd4e297264b60838f4cb6a59e Mon Sep 17 00:00:00 2001 From: SD Date: Sun, 26 Jul 2020 21:01:03 +0530 Subject: [PATCH] Fixed buildscript Changes to be committed: modified: build.gradle --- build.gradle | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 9df64e11..81389bd9 100644 --- a/build.gradle +++ b/build.gradle @@ -14,11 +14,7 @@ class Globals { private static final def MINECRAFT_VERSION ="1.16.1" static def getArchiveName() { - return ARCHIVE_NAME + "-" + MINECRAFT_VERSION - } - - static def getZipArchiveName() { - return getArchiveName() + ".zip" + return ARCHIVE_NAME + "-" + MINECRAFT_VERSION + ".zip" } } @@ -42,8 +38,8 @@ task install { } static def installPlugin(String path, String separator) { - File des = new File(path + Globals.getZipArchiveName()) - File original = new File(String.format("%s%s%s%s%s", System.getProperty("user.dir"), separator, "build", separator, Globals.getZipArchiveName())) + File des = new File(path + Globals.getArchiveName()) + File original = new File(String.format("%s%s%s%s%s", System.getProperty("user.dir"), separator, "build", separator, Globals.getArchiveName())) if(des.exists()) { des.delete() }