Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Build scripts refactoring
- Inject version and build number into Host exe - Updated project info in RC file
- Loading branch information
1 parent
9db4ad4
commit 3a32843
Showing
7 changed files
with
100 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
:: This file is part of Pandion instant messenger | |||
:: Copyright (c) 2009-2010 Sebastiaan Deckers | |||
:: License: GNU General Public License version 3 or later | |||
|
|||
@ECHO OFF | |||
IF NOT DEFINED BUILD_CONFIG CALL "..\build_config.bat" | |||
|
|||
ECHO #define FILEVER %VERSION_MAJOR%,%VERSION_MINOR%,%BUILD_NUMBER%,0 > ".\Source\VersionNo.h" | |||
ECHO #define PRODUCTVER %VERSION_MAJOR%,%VERSION_MINOR%,%BUILD_NUMBER%,0 >> ".\Source\VersionNo.h" | |||
ECHO #define FILEVERSTR "%VERSION_MAJOR%,%VERSION_MINOR%,%BUILD_NUMBER%,0\0" >> ".\Source\VersionNo.h" | |||
ECHO #define PRODUCTVERSTR "%VERSION_MAJOR%,%VERSION_MINOR%,%BUILD_NUMBER%,0\0" >> ".\Source\VersionNo.h" | |||
|
|||
CALL "%VS90COMNTOOLS%\vsvars32.bat" | |||
IF %ERRORLEVEL% NEQ 0 ECHO Error: Cannot set environment build variables && EXIT /B 1 | |||
|
|||
VCBUILD /useenv /rebuild "host.sln" "Release|Win32" | |||
IF %ERRORLEVEL% NEQ 0 ECHO Error: Failed to compile Host && EXIT /B 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
:: This file is part of Pandion instant messenger | |||
:: Copyright (c) 2010 Sebastiaan Deckers | |||
:: License: GNU General Public License version 3 or later | |||
|
|||
@ECHO OFF | |||
IF NOT DEFINED BUILD_CONFIG CALL "build_config.bat" | |||
|
|||
:: Compile Host | |||
ECHO Compiling Host... | |||
CD ".\Host" | |||
CALL "build_host.bat" | |||
IF %ERRORLEVEL% NEQ 0 ECHO Error: Cannot compile Host && EXIT /B 1 | |||
CD .. | |||
|
|||
:: Build MSI package | |||
ECHO Building MSI package... | |||
CD ".\Installer\WiX" | |||
DEL "*.msi" /Q | |||
CALL "build_msi.bat" | |||
IF %ERRORLEVEL% NEQ 0 ECHO Error: Cannot build MSI package && EXIT /B 1 | |||
CD "..\.." | |||
|
|||
:: Generating appcasting feed | |||
ECHO Generate appcasting feed... | |||
CD ".\Installer\Appcaster" | |||
CALL "build_feed.bat" | |||
IF %ERRORLEVEL% NEQ 0 ECHO Error: Cannot generate appcasting feed && EXIT /B 1 | |||
CD "..\.." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,25 @@ | |||
:: This file is part of Pandion instant messenger | |||
:: Copyright (c) 2010 Sebastiaan Deckers | |||
:: License: GNU General Public License version 3 or later | |||
|
|||
@ECHO OFF | |||
SET BUILD_CONFIG=1 | |||
|
|||
:: Versioning settings | |||
SET VERSION_MAJOR=2 | |||
SET VERSION_MINOR=6 | |||
|
|||
:: Hudson sets its environment variables but defaults are provided for manual builds. | |||
IF NOT DEFINED BUILD_NUMBER SET BUILD_NUMBER=0 | |||
IF NOT DEFINED HUDSON_URL SET HUDSON_URL=http://build.pandion.im/ | |||
IF NOT DEFINED JOB_NAME SET JOB_NAME=Pandion | |||
|
|||
:: WiX settings | |||
SET VERSION=%VERSION_MAJOR%.%VERSION_MINOR%.%BUILD_NUMBER% | |||
SET PACKAGE=%JOB_NAME%_%VERSION%.msi | |||
|
|||
:: Appcast settings | |||
SET APPCAST_LOCAL_FILE=../WiX/%PACKAGE% | |||
SET APPCAST_DOWNLOAD_URL=http://downloads.sourceforge.net/project/pandion/builds/%PACKAGE% | |||
SET APPCAST_INFO_URL=%HUDSON_URL%job/%JOB_NAME%/%BUILD_NUMBER%/changes | |||
SET APPCAST_FEED_URL=http://feeds.feedburner.com/pandionupdates |