Subversion Repository Public Repository

fonline_sdk

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 808 vs 809 for /Modules/BuildSystem/PyBuild.py

Diff revisions: vs.
  @@ -81,10 +81,11 @@
81 81 patchConfig(gameOutputPath + '/' + gameName + '.exe')
82 82
83 83 # Patch icon
84 - icoPath = outputPath + '/Client.ico'
85 - resHackPath = os.path.dirname(os.path.realpath(__file__)) + '/_other/ReplaceVistaIcon.exe'
86 - r = subprocess.call([resHackPath, gameOutputPath + '/' + gameName + '.exe', icoPath], shell = True)
87 - assert r == 0
84 + if os.name == 'nt':
85 + icoPath = outputPath + '/Client.ico'
86 + resHackPath = os.path.dirname(os.path.realpath(__file__)) + '/_other/ReplaceVistaIcon.exe'
87 + r = subprocess.call([resHackPath, gameOutputPath + '/' + gameName + '.exe', icoPath], shell = True)
88 + assert r == 0
88 89
89 90 # Zip
90 91 makeZip(targetOutputPath + '/' + gameName + '.zip', gameOutputPath)