Skip to content

Commit

Permalink
Edited Salt-Minion-Setup.nsi, Added BuildSalt.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
twangboy committed Mar 19, 2015
1 parent cccb24d commit 3af3366
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 22 deletions.
54 changes: 54 additions & 0 deletions pkg/windows/BuildSalt.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
@ echo off
:: Define Variables
@ echo Defining Variables...
Set "CurrDir=%cd%"
Set "BinDir=%cd%\buildenv\bin"
Set "InsDir=%cd%\installer"
Set "PyDir=C:\Python27"

:: Find the NSIS Installer
If Exist "C:\Program Files\NSIS\" (
Set NSIS="C:\Program Files\NSIS\"
) Else (
Set NSIS="C:\Program Files (x86)\NSIS\"
)
Set "PATH=%NSIS%;%PATH%"

@ echo Copying C:\Python27 to bin...
:: Check for existing bin directory and remove
If Exist "%BinDir%\" rd "%BinDir%" /S /Q

:: Copy the Python27 directory to bin
xcopy /S /E %PyDir% %CurrDir%\buildenv\bin\

@ echo Cleaning up unused files and directories...
:: Remove all Compiled Python files (.pyc)
del /S /Q %BinDir%\*.pyc

:: Delete Unused Docs and Modules
rd /S /Q %BinDir%\Doc
rd /S /Q %BinDir%\share
rd /S /Q %BinDir%\tcl
rd /S /Q %BinDir%\Lib\idlelib
rd /S /Q %BinDir%\Lib\lib-tk
rd /S /Q %BinDir%\Lib\test
rd /S /Q %BinDir%\Lib\unit-test

:: Delete Unused .dll files
del /S /Q %BinDir%\DLLs\tcl85.dll
del /S /Q %BinDir%\DLLs\tclpip85.dll
del /S /Q %BinDir%\DLLs\tk85.dll

:: Delete .txt files
del /q %BinDir%\NEWS.txt
del /q %BinDir%\README.txt

@ echo Building the installer...
makensis.exe "%InsDir%\Salt-Minion-Setup.nsi

@ echo.
@ echo Script completed...
@ echo Installation file can be found in the following directory:
@ echo %InsDir%
pause
cls
4 changes: 2 additions & 2 deletions pkg/windows/installer/Salt-Minion-Setup.nsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!define PRODUCT_NAME "Salt Minion"
!define PRODUCT_VERSION "2015.2.0rc1"
!define PRODUCT_VERSION "{{ salt_version }}"
!define PRODUCT_PUBLISHER "SaltStack, Inc"
!define PRODUCT_WEB_SITE "http://saltstack.org"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\salt-minion.exe"
Expand Down Expand Up @@ -158,7 +158,7 @@ Section -Prerequisites
; ${EndIf}

; Push $VcRedistGuid
; Call MsiQueryProductState
Call MsiQueryProductState
; ${If} $NeedVcRedist == "True"
; NSISdl::download /TIMEOUT=30000 $VcRedistUri $TEMP\vcredist.exe
; Pop $R0
Expand Down
20 changes: 0 additions & 20 deletions pkg/windows/installer/SlimPython.bat

This file was deleted.

0 comments on commit 3af3366

Please sign in to comment.