From b655942224f346ce2b09acd5ee9e3e826dd7c606 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 8 Nov 2012 12:49:18 +0100 Subject: [PATCH] Generate portable dist first. --- windows/dist.bat | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/windows/dist.bat b/windows/dist.bat index c4f7ee60..b2c472ef 100644 --- a/windows/dist.bat +++ b/windows/dist.bat @@ -1,4 +1,4 @@ -:: Gnerating the LinkChecker Windows .exe installer +:: Generating the LinkChecker Windows .exe installer :: Copyright (C) 2010-2011 Bastian Kleineidam :: This program is free software; you can redistribute it and/or modify :: it under the terms of the GNU General Public License as published by @@ -19,14 +19,9 @@ set UPX_EXE="C:\Software\upx308w\upx.exe" set SZ_EXE="C:\Programme\7-Zip\7z.exe" for /f "usebackq tokens=*" %%a in (`%PYDIR%\python.exe setup.py --version`) do set VERSION="%%a" set PORTDIR=LinkChecker-%VERSION% -set LINKCHECKER_PORTABLE=0 -rd /s /q build > nul -call %~dp0\build.bat -rd /s /q dist > nul -%PYDIR%\python.exe setup.py py2exe -:: uncomment for skipping portable dist creation -::goto :finish +:: uncomment for skipping portable dist creation +::goto :dist echo Building portable distribution set LINKCHECKER_PORTABLE=1 rd /s /q dist > nul @@ -41,4 +36,11 @@ echo Generating portable distribution file %SZ_EXE% a -mx=9 LinkChecker-%VERSION%-portable.zip %PORTDIR% rd /s /q %PORTDIR% +:dist +set LINKCHECKER_PORTABLE=0 +rd /s /q build > nul +call %~dp0\build.bat +rd /s /q dist > nul +%PYDIR%\python.exe setup.py py2exe + :finish