mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
updated the setup functionality on windows, new deps file, bumped version up
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@344 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
parent
dc4e125df2
commit
fa657d36f6
4 changed files with 28 additions and 29 deletions
49
config.py
49
config.py
|
@ -273,25 +273,19 @@ class Config:
|
||||||
self.FetchGamePaks( self.install_directory )
|
self.FetchGamePaks( self.install_directory )
|
||||||
# NOTE: unrelated to self.setup_platforms - grab support files and binaries and install them
|
# NOTE: unrelated to self.setup_platforms - grab support files and binaries and install them
|
||||||
if ( self.platform == 'Windows' ):
|
if ( self.platform == 'Windows' ):
|
||||||
depsfile = 'GtkR-deps-1.6-3.zip'
|
depsfile = 'GtkR-deps-1.6-4.zip'
|
||||||
# TMP
|
if ( not os.path.exists( depsfile ) ):
|
||||||
#if ( not os.path.exists( depsfile ) ):
|
cmd = [ 'wget', '-N', 'http://zerowing.idsoftware.com/files/radiant/developer/1.6.1/%s' % depsfile ]
|
||||||
if ( True ):
|
print( repr( cmd ) )
|
||||||
cmd = 'wget http://zerowing.idsoftware.com/files/radiant/developer/1.6.1/%s' % depsfile
|
subprocess.check_call( cmd )
|
||||||
print cmd
|
|
||||||
ret = os.system( cmd )
|
|
||||||
if ( ret != 0 ):
|
|
||||||
raise Exception( 'Failed to download dependencies file' )
|
|
||||||
|
|
||||||
# extract one directoy above
|
# extract one directoy above
|
||||||
f = os.path.abspath( depsfile )
|
f = os.path.abspath( depsfile )
|
||||||
backup_cwd = os.getcwd()
|
backup_cwd = os.getcwd()
|
||||||
os.chdir( os.path.dirname( backup_cwd ) )
|
os.chdir( os.path.dirname( backup_cwd ) )
|
||||||
cmd = 'unzip %s' % f
|
cmd = [ 'unzip', '-o', f ]
|
||||||
print cmd
|
print( repr( cmd ) )
|
||||||
ret = os.system( cmd )
|
subprocess.check_call( cmd )
|
||||||
if ( ret != 0 ):
|
|
||||||
raise Exception( 'unzip dependencies file failed' )
|
|
||||||
os.chdir( backup_cwd )
|
os.chdir( backup_cwd )
|
||||||
|
|
||||||
# copy all the dependent runtime data to the install directory
|
# copy all the dependent runtime data to the install directory
|
||||||
|
@ -309,25 +303,30 @@ class Config:
|
||||||
'gtk2/bin/libgmodule-2.0-0.dll',
|
'gtk2/bin/libgmodule-2.0-0.dll',
|
||||||
'gtk2/bin/libpng13.dll',
|
'gtk2/bin/libpng13.dll',
|
||||||
'gtk2/bin/libpango-1.0-0.dll',
|
'gtk2/bin/libpango-1.0-0.dll',
|
||||||
|
'gtk2/bin/libpangoft2-1.0-0.dll',
|
||||||
'gtk2/bin/libpangocairo-1.0-0.dll',
|
'gtk2/bin/libpangocairo-1.0-0.dll',
|
||||||
'gtk2/bin/libpangowin32-1.0-0.dll',
|
'gtk2/bin/libpangowin32-1.0-0.dll',
|
||||||
'gtk2/lib/libgtkglext-win32-1.0-0.dll',
|
'gtk2/lib/libgtkglext-win32-1.0-0.dll',
|
||||||
'gtk2/lib/libgdkglext-win32-1.0-0.dll',
|
'gtk2/lib/libgdkglext-win32-1.0-0.dll',
|
||||||
'gtk2/lib/iconv.dll', ]:
|
'gtk2/lib/iconv.dll',
|
||||||
cmd = 'cp -v "%s" installs' % os.path.join( srcdir, f )
|
'gtk2/zlib1.dll',
|
||||||
print cmd
|
'freetype-dev_2.4.2-1_win32/bin/freetype6.dll',
|
||||||
ret = os.system( cmd )
|
'fontconfig-dev_2.8.0-2_win32/bin/libfontconfig-1.dll',
|
||||||
if ( ret != 0 ):
|
'expat_2.0.1-1_win32/bin/libexpat-1.dll',
|
||||||
raise Exception( 'runtime file copy failed' )
|
]:
|
||||||
|
cmd = [ 'cp', '-v', os.path.join( srcdir, f ), 'install' ]
|
||||||
|
print( repr( cmd ) )
|
||||||
|
subprocess.check_call( cmd )
|
||||||
for d in [
|
for d in [
|
||||||
'gtk2/etc',
|
'gtk2/etc',
|
||||||
'gtk2/share',
|
'gtk2/share',
|
||||||
|
'fontconfig-dev_2.8.0-2_win32/etc',
|
||||||
|
'fontconfig-dev_2.8.0-2_win32/share',
|
||||||
|
'freetype-dev_2.4.2-1_win32/share',
|
||||||
]:
|
]:
|
||||||
cmd = 'cp -r -v "%s" install' % os.path.join( srcdir, d )
|
cmd = [ 'cp', '-r', '-v', os.path.join( srcdir, d ), 'install' ]
|
||||||
print cmd
|
print( repr( cmd ) )
|
||||||
ret = os.system( cmd )
|
subprocess.check_call( cmd )
|
||||||
if ( ret != 0 ):
|
|
||||||
raise Exception( 'runtime directory copy failed' )
|
|
||||||
|
|
||||||
# parse the config statement line to produce/update an existing config list
|
# parse the config statement line to produce/update an existing config list
|
||||||
# the configs expose a list of keywords and accepted values, which the engine parses out
|
# the configs expose a list of keywords and accepted values, which the engine parses out
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
// generated header, see makeversion.py
|
// generated header, see makeversion.py
|
||||||
#define RADIANT_ABOUTMSG "ZeroRadiant build"
|
#define RADIANT_ABOUTMSG "Experimental Build - Official"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1.4.0
|
1.6.2
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// generated header, see makeversion.py
|
// generated header, see makeversion.py
|
||||||
#define RADIANT_VERSION "1.6.0"
|
#define RADIANT_VERSION "1.6.2"
|
||||||
#define RADIANT_MINOR_VERSION "0"
|
#define RADIANT_MINOR_VERSION "2"
|
||||||
#define RADIANT_MAJOR_VERSION "6"
|
#define RADIANT_MAJOR_VERSION "6"
|
||||||
|
|
Loading…
Reference in a new issue