Message Boards

Topic: Windows builds  (Read 7257 times)

Offline exp(x)

  • Posts: 10
    • View Profile
Windows builds
« on: May 07, 2008, 00:01:12 »
I've added an article in the wiki on compiling Windows binaries on linux:
http://odamex.net/wiki/Cross_compiling_for_Windows_using_MinGW

And by popular demand, I'm making regular subversion builds again:
http://nescientia.dyndns.org/odamex-win32/

Don't bitch about the slow download speed.

Offline exp(x)

  • Posts: 10
    • View Profile
Re: Windows builds
« Reply #1 on: May 28, 2008, 19:59:20 »
For those who are interested, here is the script I use:

Code: (update-odamex-win32) [Select]
#!/bin/bash
(
PATH="/usr/i586-mingw32msvc/bin:$PATH"
cd /opt/odamex-win32

make -f Makefile.win clean
svn cleanup

let REVISION=`svn info | grep 'Revision: ' | sed 's/Revision: //'`+1
if [ -n "`svn update -r $REVISION | grep "Updated to revision"`" ]; then
        make -f Makefile.win client server
        i586-mingw32msvc-strip bin/*.exe
        zip -j odamex-win32-r$REVISION.zip bin/odamex.exe bin/odasrv.exe \
                odamex.wad odasrv.cfg /usr/i586-mingw32msvc/lib/SDL.dll \
                /usr/i586-mingw32msvc/lib/SDL_mixer.dll README
        curlftpfs ftp.onid.oregonstate.edu /media/onid
        mv odamex-win32-r*.zip /media/onid/public_html/odamex-win32/
        rm `ls -tr /media/onid/public_html/odamex-win32/* | head -n-20`
        fusermount -u /media/onid
        make -f Makefile.win clean
fi
) > /opt/update-odamex-win32.log 2>&1

Curlftpfs will read ~/.netrc for the ftp server username and address.

Code: (.netrc) [Select]
machine ftp.onid.oregonstate.edu
login xxxxxx
password xxxxxx

I have cron run this every 10 minutes.

Code: (crontab) [Select]
# m    h  dom mon dow   command
  */10 *  *   *   *     /opt/update-odamex-win32
« Last Edit: November 24, 2008, 20:19:02 by exp(x) »

Offline exp(x)

  • Posts: 10
    • View Profile
Re: Windows builds
« Reply #2 on: June 17, 2008, 19:14:55 »
As long as I can keep stealing wifi, builds are going to be here: http://oregonstate.edu/~delbelb/odamex-win32/