Skip to content

Commit

Permalink
Only install .vbs on Windows (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson authored Sep 28, 2024
1 parent 14370d9 commit 5467f02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/ToolsUpdater/src/main/java/Program.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ private static void installJavaTool(ToolConfig tool, String toolsPath) {
if (artifactPath.toFile().exists()) {
try {
Files.copy(artifactPath, Paths.get(toolsPath, tool.name + ".jar"), StandardCopyOption.REPLACE_EXISTING);
Files.copy(Paths.get(toolsPath, "ScriptBase.vbs"), Paths.get(toolsPath, tool.name + ".vbs"), StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.COPY_ATTRIBUTES);
if (SystemUtils.IS_OS_WINDOWS) {
Files.copy(Paths.get(toolsPath, "ScriptBase.vbs"), Paths.get(toolsPath, tool.name + ".vbs"), StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.COPY_ATTRIBUTES);
}
Files.copy(Paths.get(toolsPath, "ScriptBase.py"), Paths.get(toolsPath, tool.name + ".py"), StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.COPY_ATTRIBUTES);
} catch (IOException e) {
System.out.println(e.toString());
Expand Down

0 comments on commit 5467f02

Please sign in to comment.