Skip to content

Commit

Permalink
Merge branch 'hotfix/1.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
firecrafty committed Apr 11, 2016
2 parents c0b6c95 + f05a4ca commit f692edf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
app_name=TechnicAssembler
package_group=com.github.firecrafty.technicassembler
app_version=1.2.1
app_version=1.2.2
main_class=com.github.firecrafty.technicassembler.TechnicAssembler
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class TechnicAssembler {
/**
* Name of the modpack
*/
private static String output = "Modpack";
private static String modpack = "Modpack";
/**
* Version of the modpack
*/
Expand Down Expand Up @@ -59,7 +59,7 @@ public static void main(String[] args) {
packDir = getPackFolder(arg.split("=")[1]);
}
if (arg.startsWith("-o=")) {
output = arg.split("=")[1];
modpack = arg.split("=")[1];
}
if (arg.startsWith("-v=")) {
version = arg.split("=")[1];
Expand Down Expand Up @@ -133,8 +133,21 @@ public static String getZipName(Side side) {
if (useCustomName) {
return customFileName + "-" + side.toString();
} else {
return output + "-" + version + "-" + side.toString();
return modpack + "-" + version + "-" + side.toString();
}
}
public static void setModpackName(String modpackName) {
modpack = modpackName;
}
public static void setModpackVersion(String modpackVersion) {
version = modpackVersion;
}
public static void setCustomName(String name) {
useCustomName = true;
customFileName = name;
}
public static void setPackDir(File dir) {
packDir = dir;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ public class ZipFile {
*/
public ZipFile(Side side) {
this.side = side;
if (side == Side.CLIENT) {
parent = "";
}
this.outputZip = TechnicAssembler.getZipName(side) + ".zip";
}

Expand Down

0 comments on commit f692edf

Please sign in to comment.