Fixed package version
This commit is contained in:
parent
253b1e0731
commit
e1887696c0
|
@ -16,11 +16,14 @@ conf = env.CBConfigure()
|
||||||
# Version
|
# Version
|
||||||
try:
|
try:
|
||||||
version = env.FAHClientVersion()
|
version = env.FAHClientVersion()
|
||||||
except:
|
except Exception, e:
|
||||||
|
print e
|
||||||
version = '0.0.0'
|
version = '0.0.0'
|
||||||
|
env.Replace(PACKAGE_VERSION = version)
|
||||||
|
|
||||||
# Config vars
|
f = open('version.txt', 'w')
|
||||||
env.Replace(PACKAGE_VERSION = version)
|
f.write(version)
|
||||||
|
f.close()
|
||||||
|
|
||||||
if env['PLATFORM'] != 'darwin': env['package_arch'] = 'noarch'
|
if env['PLATFORM'] != 'darwin': env['package_arch'] = 'noarch'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue