Fix spcomp64 filename for Windows #1368

This commit is contained in:
Erik Minekus 2020-10-19 19:02:20 +02:00 committed by GitHub
parent 6a4364d404
commit 90b68f095f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,8 @@ if builder.host.platform == 'mac' and len(SM.target_archs) > 1:
else: else:
for bin_task in SM.spcomp_bins: for bin_task in SM.spcomp_bins:
if bin_task.target.arch == 'x86_64': if bin_task.target.arch == 'x86_64':
file = os.path.basename(bin_task.binary.path) + '64' root, ext = os.path.splitext(os.path.basename(bin_task.binary.path))
file = root + '64' + ext
builder.AddCopy(bin_task.binary, os.path.normpath('addons/sourcemod/scripting/' + file)) builder.AddCopy(bin_task.binary, os.path.normpath('addons/sourcemod/scripting/' + file))
else: else:
builder.AddCopy(bin_task.binary, folder_map['addons/sourcemod/scripting']) builder.AddCopy(bin_task.binary, folder_map['addons/sourcemod/scripting'])