mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-01-18 16:26:26 +01:00
stuff
This commit is contained in:
parent
a2d65d01b9
commit
c4c3c36b8c
@ -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")
|
||||
|
@ -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