diff --git a/hardcfiles.py b/hardcfiles.py new file mode 100644 index 0000000..82629a3 --- /dev/null +++ b/hardcfiles.py @@ -0,0 +1,21 @@ +import pickle +import base64 +import sys +import zlib + + +files = {} + +for name in sys.argv[1:]: + name = name.replace("\\", "/") + if name.startswith("./"): + name = name[2:] + + with open(name, "rb") as f: + data = f.read() + files[name] = data + +data = pickle.dumps(files) +compressed_data = zlib.compress(data, 9) + +print(base64.b85encode(compressed_data).decode("ascii"))