app-builder-lib 22.11.11 → 22.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/out/binDownload.d.ts +1 -0
  3. package/out/binDownload.js +6 -1
  4. package/out/binDownload.js.map +1 -1
  5. package/out/configuration.d.ts +8 -1
  6. package/out/configuration.js.map +1 -1
  7. package/out/core.d.ts +1 -2
  8. package/out/core.js.map +1 -1
  9. package/out/index.d.ts +0 -1
  10. package/out/index.js.map +1 -1
  11. package/out/platformPackager.js +11 -0
  12. package/out/platformPackager.js.map +1 -1
  13. package/out/publish/BintrayPublisher.d.ts +1 -1
  14. package/out/publish/BintrayPublisher.js +3 -11
  15. package/out/publish/BintrayPublisher.js.map +1 -1
  16. package/out/publish/KeygenPublisher.d.ts +19 -0
  17. package/out/publish/KeygenPublisher.js +101 -0
  18. package/out/publish/KeygenPublisher.js.map +1 -0
  19. package/out/publish/PublishManager.js +14 -0
  20. package/out/publish/PublishManager.js.map +1 -1
  21. package/out/publish/SnapStorePublisher.d.ts +1 -11
  22. package/out/publish/SnapStorePublisher.js.map +1 -1
  23. package/out/targets/nsis/NsisTarget.js +12 -5
  24. package/out/targets/nsis/NsisTarget.js.map +1 -1
  25. package/out/targets/nsis/nsisOptions.d.ts +35 -2
  26. package/out/targets/nsis/nsisOptions.js.map +1 -1
  27. package/out/targets/nsis/nsisUtil.d.ts +5 -0
  28. package/out/targets/nsis/nsisUtil.js +20 -3
  29. package/out/targets/nsis/nsisUtil.js.map +1 -1
  30. package/out/util/yarn.js +1 -1
  31. package/out/util/yarn.js.map +1 -1
  32. package/out/version.d.ts +1 -1
  33. package/out/version.js +1 -1
  34. package/out/version.js.map +1 -1
  35. package/out/vm/ParallelsVm.d.ts +1 -1
  36. package/out/vm/ParallelsVm.js.map +1 -1
  37. package/out/vm/vm.js +1 -1
  38. package/out/vm/vm.js.map +1 -1
  39. package/package.json +6 -6
  40. package/scheme.json +339 -42
  41. package/templates/nsis/common.nsh +14 -0
  42. package/templates/nsis/installer.nsi +3 -0
  43. package/templates/nsis/portable.nsi +6 -2
  44. package/templates/nsis/uninstaller.nsh +15 -4
@@ -99,3 +99,17 @@ Name "${PRODUCT_NAME}"
99
99
 
100
100
  ${StdUtils.ExecShellAsUser} $0 "$launchLink" "open" "$startAppArgs"
101
101
  !macroend
102
+
103
+ !define LogSet "!insertmacro LogSetMacro"
104
+ !macro LogSetMacro SETTING
105
+ !ifdef ENABLE_LOGGING
106
+ LogSet ${SETTING}
107
+ !endif
108
+ !macroend
109
+
110
+ !define LogText "!insertmacro LogTextMacro"
111
+ !macro LogTextMacro INPUT_TEXT
112
+ !ifdef ENABLE_LOGGING
113
+ LogText ${INPUT_TEXT}
114
+ !endif
115
+ !macroend
@@ -40,6 +40,9 @@ Var oldMenuDirectory
40
40
  !endif
41
41
 
42
42
  Function .onInit
43
+ SetOutPath $INSTDIR
44
+ ${LogSet} on
45
+
43
46
  !ifmacrodef preInit
44
47
  !insertmacro preInit
45
48
  !endif
@@ -30,7 +30,11 @@ Section
30
30
  HideWindow
31
31
  !endif
32
32
 
33
- StrCpy $INSTDIR "$TEMP\${UNPACK_DIR_NAME}"
33
+ StrCpy $INSTDIR "$PLUGINSDIR\app"
34
+ !ifdef UNPACK_DIR_NAME
35
+ StrCpy $INSTDIR "$TEMP\${UNPACK_DIR_NAME}"
36
+ !endif
37
+
34
38
  RMDir /r $INSTDIR
35
39
  SetOutPath $INSTDIR
36
40
 
@@ -82,6 +86,6 @@ Section
82
86
  ExecWait "$INSTDIR\${APP_EXECUTABLE_FILENAME} $R0" $0
83
87
  SetErrorLevel $0
84
88
 
85
- SetOutPath $PLUGINSDIR
89
+ SetOutPath $EXEDIR
86
90
  RMDir /r $INSTDIR
87
91
  SectionEnd
@@ -1,13 +1,22 @@
1
+ Function un.checkAppRunning
2
+ !insertmacro CHECK_APP_RUNNING
3
+ FunctionEnd
4
+
1
5
  Function un.onInit
6
+ SetOutPath $INSTDIR
7
+ ${LogSet} on
8
+
2
9
  !insertmacro check64BitAndSetRegView
3
10
 
4
- ${IfNot} ${Silent}
11
+ ${If} ${Silent}
12
+ call un.checkAppRunning
13
+ ${else}
5
14
  !ifdef ONE_CLICK
6
15
  MessageBox MB_OKCANCEL "$(areYouSureToUninstall)" IDOK +2
7
16
  Quit
8
17
 
9
18
  # one-click installer executes uninstall section in the silent mode, but we must show message dialog if silent mode was not explicitly set by user (using /S flag)
10
- !insertmacro CHECK_APP_RUNNING
19
+ call un.checkAppRunning
11
20
  SetSilent silent
12
21
  !endif
13
22
  ${endIf}
@@ -20,9 +29,11 @@ Function un.onInit
20
29
  FunctionEnd
21
30
 
22
31
  Section "un.install"
32
+ # for assisted installer we check it here to show progress
23
33
  !ifndef ONE_CLICK
24
- # for assisted installer we check it here to show progress
25
- !insertmacro CHECK_APP_RUNNING
34
+ ${IfNot} ${Silent}
35
+ call un.checkAppRunning
36
+ ${endIf}
26
37
  !endif
27
38
 
28
39
  !insertmacro setLinkVars