diff options
| author | Phillip Lord | 2017-11-16 22:08:35 +0000 |
|---|---|---|
| committer | Phillip Lord | 2017-11-17 23:03:03 +0000 |
| commit | d20eab9831c920a1d0807bdc833a74185c4637b1 (patch) | |
| tree | 6a3beb6d446662b04f8b13d918de0cc409acf2f3 /admin | |
| parent | 345c7d9c7b84c0c03ef1d0f32e9e0f39029be44a (diff) | |
| download | emacs-d20eab9831c920a1d0807bdc833a74185c4637b1.tar.gz emacs-d20eab9831c920a1d0807bdc833a74185c4637b1.zip | |
Fix install location for windows installer
Diffstat (limited to 'admin')
| -rwxr-xr-x | admin/nt/dist-build/build-zips.sh | 7 | ||||
| -rw-r--r-- | admin/nt/dist-build/emacs.nsi | 25 |
2 files changed, 26 insertions, 6 deletions
diff --git a/admin/nt/dist-build/build-zips.sh b/admin/nt/dist-build/build-zips.sh index 138ef4d4699..ce4a11dc1e7 100755 --- a/admin/nt/dist-build/build-zips.sh +++ b/admin/nt/dist-build/build-zips.sh | |||
| @@ -69,7 +69,9 @@ function build_installer { | |||
| 69 | cd $HOME/emacs-build/install/emacs-$VERSION | 69 | cd $HOME/emacs-build/install/emacs-$VERSION |
| 70 | echo Calling makensis in `pwd` | 70 | echo Calling makensis in `pwd` |
| 71 | cp ../../git/$BRANCH/admin/nt/dist-build/emacs.nsi . | 71 | cp ../../git/$BRANCH/admin/nt/dist-build/emacs.nsi . |
| 72 | makensis -DARCH=$ARCH -DEMACS_VERSION=$ACTUAL_VERSION \ | 72 | |
| 73 | makensis -v4 \ | ||
| 74 | -DARCH=$ARCH -DEMACS_VERSION=$ACTUAL_VERSION \ | ||
| 73 | -DOUT_VERSION=$VERSION emacs.nsi | 75 | -DOUT_VERSION=$VERSION emacs.nsi |
| 74 | rm emacs.nsi | 76 | rm emacs.nsi |
| 75 | mv Emacs-$ARCH-$VERSION-installer.exe ~/emacs-upload | 77 | mv Emacs-$ARCH-$VERSION-installer.exe ~/emacs-upload |
| @@ -104,7 +106,7 @@ while getopts "36ghsiV:" opt; do | |||
| 104 | GIT_UP=1 | 106 | GIT_UP=1 |
| 105 | ;; | 107 | ;; |
| 106 | i) | 108 | i) |
| 107 | BUILD=1 | 109 | BUILD=0 |
| 108 | ;; | 110 | ;; |
| 109 | V) | 111 | V) |
| 110 | VERSION=$OPTARG | 112 | VERSION=$OPTARG |
| @@ -117,6 +119,7 @@ while getopts "36ghsiV:" opt; do | |||
| 117 | echo " -3 32 bit build only" | 119 | echo " -3 32 bit build only" |
| 118 | echo " -6 64 bit build only" | 120 | echo " -6 64 bit build only" |
| 119 | echo " -g git update and worktree only" | 121 | echo " -g git update and worktree only" |
| 122 | echo " -i build installer only" | ||
| 120 | exit 0 | 123 | exit 0 |
| 121 | ;; | 124 | ;; |
| 122 | \?) | 125 | \?) |
diff --git a/admin/nt/dist-build/emacs.nsi b/admin/nt/dist-build/emacs.nsi index ec33dc03da6..492e4cd97d8 100644 --- a/admin/nt/dist-build/emacs.nsi +++ b/admin/nt/dist-build/emacs.nsi | |||
| @@ -1,14 +1,12 @@ | |||
| 1 | !include MUI2.nsh | 1 | !include MUI2.nsh |
| 2 | 2 | !include LogicLib.nsh | |
| 3 | !include x64.nsh | ||
| 3 | 4 | ||
| 4 | Outfile "Emacs-${ARCH}-${OUT_VERSION}-installer.exe" | 5 | Outfile "Emacs-${ARCH}-${OUT_VERSION}-installer.exe" |
| 5 | 6 | ||
| 6 | 7 | ||
| 7 | |||
| 8 | InstallDir "$DESKTOP\Emacs-${EMACS_VERSION}" | ||
| 9 | SetCompressor /solid lzma | 8 | SetCompressor /solid lzma |
| 10 | 9 | ||
| 11 | |||
| 12 | Var StartMenuFolder | 10 | Var StartMenuFolder |
| 13 | 11 | ||
| 14 | 12 | ||
| @@ -36,6 +34,25 @@ Var StartMenuFolder | |||
| 36 | !insertmacro MUI_LANGUAGE "English" | 34 | !insertmacro MUI_LANGUAGE "English" |
| 37 | Name Emacs-${EMACS_VERSION} | 35 | Name Emacs-${EMACS_VERSION} |
| 38 | 36 | ||
| 37 | function .onInit | ||
| 38 | ${If} ${RunningX64} | ||
| 39 | ${If} ${ARCH} == "x86_64" | ||
| 40 | StrCpy $INSTDIR "$PROGRAMFILES64\Emacs" | ||
| 41 | ${Else} | ||
| 42 | StrCpy $INSTDIR "$PROGRAMFILES32\Emacs" | ||
| 43 | ${Endif} | ||
| 44 | ${Else} | ||
| 45 | ${If} ${ARCH} == "x86_64" | ||
| 46 | Quit | ||
| 47 | ${Else} | ||
| 48 | StrCpy $INSTDIR "$PROGRAMFILES\Emacs" | ||
| 49 | ${Endif} | ||
| 50 | ${EndIf} | ||
| 51 | |||
| 52 | MessageBox MB_OK "Installdir is $INSTDIR" | ||
| 53 | functionend | ||
| 54 | |||
| 55 | |||
| 39 | Section | 56 | Section |
| 40 | 57 | ||
| 41 | SetOutPath $INSTDIR | 58 | SetOutPath $INSTDIR |