initial commit -- v1 code

This commit is contained in:
2026-08-10 14:21:07 +02:00
commit 1ecb7f777e
25 changed files with 2472 additions and 0 deletions

23
PackageScript Normal file
View File

@@ -0,0 +1,23 @@
# vim: set ts=2 sw=2 tw=99 et ft=python:
import os
builder.SetBuildFolder('package')
metamod_folder = builder.AddFolder(os.path.join('addons', 'metamod'))
bin_folder = builder.AddFolder(os.path.join('addons', MMSPlugin.plugin_name, 'bin', 'linuxsteamrt64'))
gamedata_folder = builder.AddFolder(os.path.join('addons', MMSPlugin.plugin_name, 'gamedata'))
config_folder = builder.AddFolder(os.path.join('addons', MMSPlugin.plugin_name, 'configs'))
for task in MMSPlugin.binaries:
vdf_path = os.path.join(builder.buildPath, MMSPlugin.plugin_name + '.vdf')
with open(vdf_path, 'w') as fp:
fp.write('"Metamod Plugin"\n{\n')
fp.write('\t"alias"\t"{}"\n'.format(MMSPlugin.plugin_alias))
fp.write('\t"file"\t"addons/{}/bin/linuxsteamrt64/{}"\n'.format(MMSPlugin.plugin_name, MMSPlugin.plugin_name))
fp.write('}\n')
builder.AddCopy(task.binary, bin_folder)
builder.AddCopy(vdf_path, metamod_folder)
builder.AddCopy(os.path.join('gamedata', 'sendproxy.games.txt'), gamedata_folder)
builder.AddCopy(os.path.join('configs', 'sendproxy.cfg'), config_folder)