Skip to content

Commit 4b38f4e

Browse files
committed
NSIS Scripts
1 parent 957a775 commit 4b38f4e

File tree

7 files changed

+24
-19
lines changed

7 files changed

+24
-19
lines changed

NSIS/bin/kj-cli.jar

138 Bytes
Binary file not shown.

NSIS/libs/json-library-0.1.jar

71.4 KB
Binary file not shown.

NSIS/libs/request-library-0.1.jar

241 KB
Binary file not shown.

NSIS/setup.exe

-1.94 MB
Binary file not shown.

NSIS/setup.nsi

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
;General
88

99
;Name and file
10-
Name "Executor CLI"
11-
OutFile "setup.exe"
10+
Name "KayJamExecutor CLI"
11+
OutFile "windows.exe"
1212
Unicode True
1313

1414
;Default installation folder
@@ -43,10 +43,16 @@
4343
Section
4444
CreateDirectory "$INSTDIR"
4545
CreateDirectory "$INSTDIR\bin"
46+
CreateDirectory "$INSTDIR\libs"
4647

4748
SetOutPath "$INSTDIR\bin"
4849
File bin\kj-cli.jar
4950

51+
SetOutPath "$INSTDIR\libs"
52+
File libs\request-library-0.1.jar
53+
File libs\json-library-0.1.jar
54+
55+
5056
SetOutPath "$WINDIR"
5157
File bin\kj-cli.bat
5258

@@ -55,29 +61,23 @@ Section
5561

5662
SectionEnd
5763

58-
;--------------------------------
59-
;Descriptions
60-
61-
;Language strings
62-
LangString DESC_SecDummy ${LANG_ENGLISH} "A test section."
63-
64-
;Assign language strings to sections
65-
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
66-
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
67-
!insertmacro MUI_FUNCTION_DESCRIPTION_END
68-
6964
;--------------------------------
7065
;Uninstaller Section
7166

7267
Section "Uninstall"
7368

74-
Delete "$INSTDIR\Uninstall.exe"
69+
;Bin
7570
Delete "$INSTDIR\bin\kj-cli.jar"
76-
Delete "$WINDIR\kj-cli.bat"
77-
7871
RMDir "$INSTDIR\bin"
79-
RMDir "$INSTDIR"
8072

81-
DeleteRegKey /ifempty HKCU "Software\Modern UI Test"
73+
;Libs
74+
Delete "$INSTDIR\libs\request-library-0.1.jar"
75+
Delete "$INSTDIR\libs\json-library-0.1.jar"
76+
RMDir "$INSTDIR\libs"
8277

78+
Delete "$WINDIR\kj-cli.bat"
79+
80+
;Other
81+
Delete "$INSTDIR\Uninstall.exe"
82+
RMDir "$INSTDIR"
8383
SectionEnd

NSIS/windows.exe

2.21 MB
Binary file not shown.

src/main/java/com/github/kayjamlang/executor/cli/Main.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ public static void main(String[] args) throws Exception {
5353

5454
File executeFile = new File(Paths.get(System.getProperty("pathFile"),
5555
cmd.getOptionValue("file")).normalize().toString());
56-
executor.execute("{"+read(executeFile)+"}");
56+
57+
try {
58+
executor.execute("{"+read(executeFile)+"}");
59+
}catch (Throwable t){
60+
System.out.println("Error: "+t.getClass().getSimpleName()+": "+t.getMessage());
61+
}
5762
}
5863

5964
private static void loadJarLibrary(Executor executor, File file) throws IOException, ClassNotFoundException, IllegalAccessException, InstantiationException {

0 commit comments

Comments
 (0)