Add release build on tagged commit

This commit is contained in:
RatzzFatzz
2025-12-16 16:18:50 +01:00
parent b6b15faf7d
commit e5e5f56aed
2 changed files with 23 additions and 6 deletions

View File

@@ -21,7 +21,10 @@ public class ProjectUtil implements CommandLine.IVersionProvider {
}
}
// TODO: add mkvmerge and mkvpropedit version
public static String getProjectName() {
return PROJECT_PROPERTIES.getProperty("project_name");
}
public String[] getVersion() throws IOException {
String mkvpropeeditVersion = getVersion(MkvToolNix.MKV_PROP_EDIT);
String mkvmergeVersion = getVersion(MkvToolNix.MKV_MERGE);
@@ -34,10 +37,6 @@ public class ProjectUtil implements CommandLine.IVersionProvider {
};
}
public static String getProjectName() {
return PROJECT_PROPERTIES.getProperty("project_name");
}
public static String getVersion(MkvToolNix app) throws IOException {
ProcessBuilder processBuilder = new ProcessBuilder(app.toString(), "--version");
Process process = processBuilder.start();