Skip to content

Commit

Permalink
Add release configuration properties for Windows MSI bundle (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinayagarwal authored Jan 10, 2022
1 parent 12ce54c commit c7d78c7
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion src/main/java/com/gluonhq/ReleaseConfiguration.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Gluon
* Copyright (c) 2020, 2022, Gluon
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -48,6 +48,19 @@ public class ReleaseConfiguration {
*/
private String packageType;

/**
* A short description about the application
*
* Default: Empty string.
*/
private String appDescription;

/**
* Vendor of the application.
* Ideally, name of the company or individual developing the application.
*/
private String vendor;

// macOS

/**
Expand Down Expand Up @@ -192,6 +205,22 @@ public String getPackageType() {
return packageType;
}

public String getAppDescription() {
return appDescription == null ? "" : appDescription;
}

public void setAppDescription(String appDescription) {
this.appDescription = appDescription;
}

public String getVendor() {
return vendor;
}

public void setVendor(String vendor) {
this.vendor = vendor;
}

public boolean isMacAppStore() {
return macAppStore;
}
Expand Down Expand Up @@ -332,6 +361,8 @@ public void setProvidedKeyAliasPassword(String providedKeyAliasPassword) {
public String toString() {
return "ReleaseConfiguration{" +
"packageType=" + packageType +
", appDescription='" + appDescription + '\'' +
", vendor='" + vendor + '\'' +
", macAppStore=" + macAppStore +
", macSigningUserName=" + macSigningUserName +
", macAppCategory=" + macAppCategory +
Expand All @@ -356,6 +387,8 @@ public com.gluonhq.substrate.model.ReleaseConfiguration toSubstrate() {
com.gluonhq.substrate.model.ReleaseConfiguration release = new com.gluonhq.substrate.model.ReleaseConfiguration();

release.setPackageType(getPackageType());
release.setAppDescription(getAppDescription());
release.setVendor(getVendor());
// macOS
release.setMacAppStore(isMacAppStore());
release.setMacSigningUserName(getMacSigningUserName());
Expand Down

0 comments on commit c7d78c7

Please sign in to comment.