New version 0.5.3

This commit is contained in:
Eduardo Bart 2012-08-29 19:00:08 -03:00
parent a6185e57aa
commit d98f6f7673
3 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 2.6) cmake_minimum_required(VERSION 2.6)
project(otclient) project(otclient)
set(VERSION "0.5.3")
set(FRAMEWORK_SOUND ON) set(FRAMEWORK_SOUND ON)
set(FRAMEWORK_GRAPHICS ON) set(FRAMEWORK_GRAPHICS ON)
set(FRAMEWORK_XML ON) set(FRAMEWORK_XML ON)
@ -28,6 +30,8 @@ if(WIN32)
set(executable_SOURCES ${executable_SOURCES} otcicon.o) set(executable_SOURCES ${executable_SOURCES} otcicon.o)
endif() endif()
add_definitions(-D"VERSION=\\"${VERSION}\\"")
# add otclient executable # add otclient executable
add_executable(otclient ${framework_SOURCES} ${otclient_SOURCES} ${executable_SOURCES}) add_executable(otclient ${framework_SOURCES} ${otclient_SOURCES} ${executable_SOURCES})

View File

@ -32,7 +32,7 @@ int main(int argc, const char* argv[])
// setup application name and version // setup application name and version
g_app.setName("OTClient"); g_app.setName("OTClient");
g_app.setCompactName("otclient"); g_app.setCompactName("otclient");
g_app.setVersion("0.5.2_dev"); g_app.setVersion(VERSION);
// initialize application framework and otclient // initialize application framework and otclient
g_app.init(args); g_app.init(args);

View File

@ -33,6 +33,7 @@ fi
cd $workdir/otclient cd $workdir/otclient
revision=`git rev-list --all | wc -l` revision=`git rev-list --all | wc -l`
commit=`git describe --dirty --always` commit=`git describe --dirty --always`
version=`cat CMakeLists.txt | grep "set(VERSION" | sed 's/.*"\([^"]*\)".*/\1/'`
# compile for win32 # compile for win32
rm -rf build.win32 rm -rf build.win32
@ -77,7 +78,7 @@ cd ..
################################################## ##################################################
# create win32 package # create win32 package
pkg_suffix="-snapshot-linux64-`date +%Y%m%d`" pkg_suffix="-linux64-$version"
pkgname="$name$pkg_suffix" pkgname="$name$pkg_suffix"
pkgzip="$pkgname.tgz" pkgzip="$pkgname.tgz"
cd $workdir cd $workdir
@ -125,7 +126,7 @@ cp $workdir/Tibia/*.dat $pkgname/modules/game_tibiafiles/860/
################################################## ##################################################
# create win32 package # create win32 package
pkg_suffix="-snapshot-win32-`date +%Y%m%d`" pkg_suffix="-win32-$version"
pkgname="$name$pkg_suffix" pkgname="$name$pkg_suffix"
pkgzip="$pkgname.zip" pkgzip="$pkgname.zip"
cd $workdir cd $workdir