Remove unused Windows identifier stuff (removed from cdist).
authorCarl Hetherington <cth@carlh.net>
Sat, 6 Apr 2024 19:16:41 +0000 (21:16 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 22 Apr 2024 11:03:04 +0000 (13:03 +0200)
cscript

diff --git a/cscript b/cscript
index b971ff2ea5ef806148b2b335c727ae63f751e8b3..5c3e5e2b159ff2377874636fb1bba785eb5bad6a 100644 (file)
--- a/cscript
+++ b/cscript
@@ -717,10 +717,7 @@ def build(target, options, for_package):
         target.command('./waf install')
 
 def package_windows(target):
-    identifier = ''
-    if target.version is not None:
-        identifier = '%s.' % target.version
-    identifier += '%d' % target.bits
+    identifier = '%d' % target.bits
     shutil.copyfile('build/platform/windows/installer.%s.nsi' % identifier, 'build/platform/windows/installer2.%s.nsi' % identifier)
     target.command('sed -i "s~%%resources%%~%s/platform/windows~g" build/platform/windows/installer2.%s.nsi' % (os.getcwd(), identifier))
     target.command('sed -i "s~%%graphics%%~%s/graphics~g" build/platform/windows/installer2.%s.nsi' % (os.getcwd(), identifier))