Aegisub/tools/apply-manifest.py

9 lines
284 B
Python
Raw Normal View History

2021-01-30 18:02:34 +01:00
#!/usr/bin/env python3
import sys, subprocess, pathlib, os
mt_exe, executable = sys.argv[1:]
subprocess.run([mt_exe, '-manifest', executable + '.manifest', '-outputresource:' + executable + ';1'])
pathlib.Path(os.path.join(os.path.dirname(executable), 'applied_manifest')).touch()