@@ -421,7 +421,7 @@ ifeq ($(DARWIN_FRAMEWORK),1)
421
421
endif
422
422
423
423
distclean :
424
- -rm -fr $(BUILDROOT ) /julia-* .tar.gz $(BUILDROOT ) /julia* .exe $(BUILDROOT ) /julia-$(JULIA_COMMIT )
424
+ -rm -fr $(BUILDROOT ) /julia-* .tar.gz $(BUILDROOT ) /julia* .exe $(BUILDROOT ) /julia-* .7z $( BUILDROOT ) /julia- $(JULIA_COMMIT )
425
425
426
426
binary-dist : distclean
427
427
ifeq ($(USE_SYSTEM_BLAS ) ,0)
@@ -463,8 +463,13 @@ ifeq ($(OS), WINNT)
463
463
464
464
# build nsis package
465
465
cd $(BUILDROOT) && $(call spawn,$(JULIAHOME)/dist-extras/nsis/makensis.exe) -NOCD -DVersion=$(JULIA_VERSION) -DArch=$(ARCH) -DCommit=$(JULIA_COMMIT) -DMUI_ICON="$(call cygpath_w,$(JULIAHOME)/contrib/windows/julia.ico)" $(call cygpath_w,$(JULIAHOME)/contrib/windows/build-installer.nsi) | iconv -f latin1
466
- mv "$(BUILDROOT)/julia-installer.exe" "$(BUILDROOT)/$(JULIA_BINARYDIST_FILENAME).exe"
466
+
467
+ # compress nsis installer and combine with 7zip self-extracting header
468
+ cd $(BUILDROOT) && $(JULIAHOME)/dist-extras/7z a -mx9 "julia-install-$(JULIA_COMMIT)-$(ARCH).7z" julia-installer.exe
469
+ cd $(BUILDROOT) && cat $(JULIAHOME)/contrib/windows/7zS.sfx $(JULIAHOME)/contrib/windows/7zSFX-config.txt "julia-install-$(JULIA_COMMIT)-$(ARCH).7z" > "$(JULIA_BINARYDIST_FILENAME).exe"
467
470
chmod a+x "$(BUILDROOT)/$(JULIA_BINARYDIST_FILENAME).exe"
471
+ -rm -f $(BUILDROOT)/julia-install-$(JULIA_COMMIT)-$(ARCH).7z
472
+ -rm -f $(BUILDROOT)/julia-installer.exe
468
473
else
469
474
cd $(BUILDROOT) && $(TAR) zcvf $(JULIA_BINARYDIST_FILENAME).tar.gz julia-$(JULIA_COMMIT)
470
475
endif
@@ -607,10 +612,10 @@ else
607
612
endif
608
613
cd $(JULIAHOME)/dist-extras && \
609
614
$(JLDOWNLOAD) http://downloads.sourceforge.net/sevenzip/7z1900-extra.7z && \
610
- $(JLDOWNLOAD) https://sourceforge.net/projects/nsis/files/NSIS%203/3.04/ nsis-3.04 -setup.exe && \
615
+ $(JLDOWNLOAD) https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/unsis/ nsis-2.46.5-Unicode -setup.exe && \
611
616
chmod a+x 7z.exe && \
612
617
chmod a+x 7z.dll && \
613
- $(call spawn,./7z.exe) x -y -onsis nsis-3.04 -setup.exe && \
618
+ $(call spawn,./7z.exe) x -y -onsis nsis-2.46.5-Unicode -setup.exe && \
614
619
chmod a+x ./nsis/makensis.exe
615
620
616
621
# various statistics about the build that may interest the user
0 commit comments