preparations for version 0.11.0
This commit is contained in:
parent
d40098ad82
commit
a4f8a89c85
8 changed files with 467 additions and 349 deletions
|
|
@ -593,8 +593,9 @@ proc targzDist(c: var ConfigData) =
|
|||
let oldDir = getCurrentDir()
|
||||
setCurrentDir(tmpDir)
|
||||
try:
|
||||
if execShellCmd("7z a -ttar $1.tar $1" % proj) != 0 or
|
||||
execShellCmd("7z a -tgzip $1.tar.gz $1.tar" % proj) != 0:
|
||||
#if execShellCmd("7z a -ttar $1.tar $1" % proj) != 0 or
|
||||
# execShellCmd("7z a -tgzip $1.tar.gz $1.tar" % proj) != 0 or
|
||||
if execShellCmd("7z a -tzip $1.zip $1" % proj) != 0:
|
||||
echo("External program failed")
|
||||
finally:
|
||||
setCurrentDir(oldDir)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#! stdtmpl(subsChar='?') | standard
|
||||
#proc generateNsisSetup(c: ConfigData): string =
|
||||
#proc generateNsisSetup(c: ConfigData): string =
|
||||
# result = "; NSIS script generated by niminst\n" &
|
||||
# "; To regenerate run ``niminst nsis`` or ``koch nsis``\n"
|
||||
|
||||
|
|
@ -35,8 +35,8 @@
|
|||
|
||||
; Default installation folder
|
||||
; This is changed later (in .onInit) to the root directory, if possible.
|
||||
InstallDir "$LOCALAPPDATA\?{c.name}"
|
||||
|
||||
InstallDir "$LOCALAPPDATA\?{c.name}-?{c.version}"
|
||||
|
||||
; Get installation folder from registry if available
|
||||
InstallDirRegKey HKCU "Software\c.name\c.version" ""
|
||||
|
||||
|
|
@ -86,14 +86,14 @@
|
|||
|
||||
!insertmacro MUI_PAGE_INSTFILES
|
||||
!insertmacro MUI_PAGE_FINISH
|
||||
|
||||
|
||||
; Setup the uninstaller pages
|
||||
!insertmacro MUI_UNPAGE_CONFIRM
|
||||
!insertmacro MUI_UNPAGE_INSTFILES
|
||||
|
||||
|
||||
;--------------------------------
|
||||
;Languages
|
||||
|
||||
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
|
||||
;--------------------------------
|
||||
|
|
@ -104,7 +104,7 @@
|
|||
; Nim binary.
|
||||
Section "Core Files" CoreSection
|
||||
; This is a mandotory section
|
||||
SectionIn RO
|
||||
SectionIn RO
|
||||
|
||||
; Output files to the base installation directory
|
||||
SetOutPath "$INSTDIR"
|
||||
|
|
@ -164,7 +164,7 @@
|
|||
|
||||
; The downloadable sections. These sections are automatically generated by
|
||||
; niminst and the template filters.
|
||||
#var i = 0
|
||||
#var i = 0
|
||||
#for download in c.downloads:
|
||||
# inc i
|
||||
# let d = download.split('|')
|
||||
|
|
@ -207,7 +207,7 @@
|
|||
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\?{e}.lnk" "$INSTDIR\?dir\?{startMenuEntry.toWin}"
|
||||
!insertmacro MUI_STARTMENU_WRITE_END
|
||||
# end if
|
||||
|
||||
|
||||
ignore:
|
||||
SectionEnd
|
||||
#end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue