This commit is contained in:
sirjonasxx 2021-08-20 19:32:44 +02:00
parent a2d65d01b9
commit c4c3c36b8c
2 changed files with 10 additions and 4 deletions

View File

@ -98,10 +98,10 @@ public class StoreExtensionDetailsItem implements ContentItem {
if (storeExtension.getFramework().getFramework().isInstallationRequired()) {
contentBuilder.append("Warning: the framework requires --url:additional installations-")
.append(storeExtension.getFramework().getFramework().getInstallationInstructions()).append(" !\n");
.append(storeExtension.getFramework().getFramework().getInstallationInstructions()).append(" !\n\n");
}
if (!storeExtension.isStable()) {
contentBuilder.append("Warning: this extension has been marked unstable!\n");
contentBuilder.append("Warning: this extension has been marked unstable!\n\n");
}
contentBuilder.append("\n*Screenshot: *").append("\n")

View File

@ -94,8 +94,7 @@ public class StoreExtensionTools {
}
zipInputStream.closeEntry();
zipInputStream.close();
inputStream.close();
}
@ -126,10 +125,17 @@ public class StoreExtensionTools {
List<String> command = OSValidator.isMac() ? ext.getCommands().getMac() : (OSValidator.isUnix() ? ext.getCommands().getLinux() :
(OSValidator.isWindows() ? ext.getCommands().getWindows() : ext.getCommands().getDefault()));
command = command == null ? ext.getCommands().getDefault() : command;
// String commandRaw = new JSONArray(command).toString();
// PrintWriter out = new PrintWriter(Paths.get(path, "command.txt").toString());
// out.println(commandRaw);
// out.close();
FileUtils.writeStringToFile(commandFile, new JSONArray(command).toString(), "UTF-8");
listener.success(path);
} catch (IOException e) {
e.printStackTrace();
listener.fail("Error while unzipping");
removeExtension(path);
}