mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 00:40:51 +01:00
Merge branch 'sirjonasxx:extensionstore' into extensionstore
This commit is contained in:
commit
d2ba27136a
@ -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("<div>"
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user