Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated the nsis installer to make it working.

  • Loading branch information...
commit 11d040de2e67a1cd7e8f738a120dc7403652d98a 1 parent 156d3b5
Yohann Ferreira authored
Showing with 17 additions and 12 deletions.
  1. +17 −12 ValyriaTear.nsi
View
29 ValyriaTear.nsi
@@ -2,10 +2,10 @@
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Valyria Tear"
-!define PRODUCT_VERSION "Development Release"
+!define PRODUCT_VERSION "Half-Episode I Release Candidate 1"
!define PRODUCT_PUBLISHER "Bertram"
!define PRODUCT_WEB_SITE "https://github.com/Bertram25/ValyriaTear/wiki"
-!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\valyriatear.exe"
+!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\ValyriaTear.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
@@ -41,7 +41,7 @@
; MUI end ------
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
-; OutFile "valyriatear-test-win32-installer.exe" ; (commented out. will be set by make-release.sh)
+OutFile "valyriatear-win32-installer.exe"
InstallDir "$PROGRAMFILES\ValyriaTear"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
@@ -59,19 +59,26 @@ Section "MainSection" SEC01
File /r mus\*
SetOutPath "$INSTDIR\snd"
File /r snd\*
- SetOutPath "$INSTDIR\txt"
- File /r txt\*
+
+; TODO: Add proper support for translatable languages
+; SetOutPath "$INSTDIR\po"
+; File /r po\*
+; For now, we copy files by hand
+ SetOutPath "$INSTDIR\po\fr\LC_MESSAGES"
+ File /oname=valyriatear.mo po\fr.mo
+ SetOutPath "$INSTDIR\po\it\LC_MESSAGES"
+ File /oname=valyriatear.mo po\it.mo
+ SetOutPath "$INSTDIR\po\de\LC_MESSAGES"
+ File /oname=valyriatear.mo po\de.mo
+ SetOutPath "$INSTDIR\po\en@quot\LC_MESSAGES"
+ File /oname=valyriatear.mo po\en@quot.mo
SetOutPath "$INSTDIR"
- File valyriatear.exe
- File editor.exe
+ File valyriaTear.exe
File *.dll
- File Microsoft.VC80.CRT.manifest
CreateDirectory "$SMPROGRAMS\ValyriaTear"
CreateShortCut "$SMPROGRAMS\ValyriaTear\$0.lnk" "$INSTDIR\$0.exe"
- CreateShortCut "$SMPROGRAMS\ValyriaTear\editor.lnk" "$INSTDIR\editor.exe"
-; CreateShortCut "$DESKTOP\$0.lnk" "$INSTDIR\$0.exe"
SectionEnd
Section -AdditionalIcons
@@ -104,9 +111,7 @@ Section Uninstall
StrCpy $0 "ValyriaTear"
Delete "$SMPROGRAMS\ValyriaTear\Uninstall.lnk"
-; Delete "$DESKTOP\$0.lnk"
Delete "$SMPROGRAMS\ValyriaTear\$0.lnk"
- Delete "$SMPROGRAMS\ValyriaTear\editor.lnk"
RMDir "$SMPROGRAMS\ValyriaTear"
RMDir /r "$INSTDIR"
Please sign in to comment.
Something went wrong with that request. Please try again.