mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
drop usage of threads in sound system
This commit is contained in:
@@ -1,12 +1,23 @@
|
||||
#!/bin/bash
|
||||
# generates a otclient zip package for win32
|
||||
# generates otclient zip package for win32
|
||||
# by edubart :)
|
||||
|
||||
protocol=860
|
||||
# TODO: the following options
|
||||
# --gitroot <giturl> - clone a different url, the default is git://github.com/edubart/otclient.git
|
||||
# --platform <platform> - compile for i486-mingw32, i586-msvc-mingw32 or linux
|
||||
# --branch <branch> - use sources from a specific branch, the default is master
|
||||
# --name <name> - change .exe and folder name, the default is otclient
|
||||
# --protocol <proto> - game protocol, the default is 860
|
||||
# --suffix <suffix> - override suffix, the default is the date
|
||||
# --copy-tibiafiles <folder> - copy Tibia.spr and Tibia.dat from folder
|
||||
# --github-upload <url> - upload the zip to github
|
||||
# --scp-upload <url> - upload the zip to a shell via scp
|
||||
|
||||
gitroot="git://github.com/edubart/otclient.git"
|
||||
gitname="otclient"
|
||||
mingw32="i486-mingw32"
|
||||
spr_folder="$HOME/projects/otclient/modules/game_tibiafiles"
|
||||
name="otclient"
|
||||
protocol=860
|
||||
platform="i486-mingw32"
|
||||
tibiafiles_folder="$HOME/projects/otclient/modules/game_tibiafiles"
|
||||
upload_to="root@myserver.com:/var/www/downloads/"
|
||||
pkg_suffix="-snapshot-`date +%Y%m%d`-protocol${protocol}-win32"
|
||||
use_spr=false
|
||||
@@ -14,12 +25,12 @@ upload=false
|
||||
make_jobs=8
|
||||
|
||||
srcdir=`pwd`
|
||||
if [ -d $gitname ]; then
|
||||
cd $gitname
|
||||
if [ -d $name ]; then
|
||||
cd $name
|
||||
git pull || exit
|
||||
else
|
||||
git clone $gitroot || exit
|
||||
cd $gitname
|
||||
git clone $gitroot $name || exit
|
||||
cd $name
|
||||
fi
|
||||
|
||||
gitdir=`pwd`
|
||||
@@ -32,17 +43,17 @@ else
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE=$gitdir/src/framework/cmake/${mingw32}_toolchain.cmake \
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE=$gitdir/src/framework/cmake/${platform}_toolchain.cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_REVISION=$revision \
|
||||
-DPROTOCOL=$protocol \
|
||||
.. || exit
|
||||
fi
|
||||
|
||||
make -j${make_jobs} || exit
|
||||
make "-j${make_jobs}" || exit
|
||||
|
||||
|
||||
pkgdir="$gitname$pkg_suffix"
|
||||
pkgdir="$name$pkg_suffix"
|
||||
pkgzip="$pkgdir.zip"
|
||||
|
||||
cd $srcdir
|
||||
@@ -51,8 +62,8 @@ mkdir $pkgdir
|
||||
cd $pkgdir
|
||||
|
||||
cp -R $gitdir/modules .
|
||||
cp $gitdir/build/$gitname.exe $gitname.exe
|
||||
cp $gitdir/build/$gitname.map $gitname.map
|
||||
cp $gitdir/build/*.exe .
|
||||
cp $gitdir/build/*.map .
|
||||
cp $gitdir/LICENSE .
|
||||
cp $gitdir/README.rdoc .
|
||||
|
||||
|
Reference in New Issue
Block a user