1
0
mirror of https://github.com/odrling/Aegisub synced 2025-04-11 22:56:02 +02:00
Aegisub/tools/apply-manifest.py
2021-01-30 12:02:34 -05:00

9 lines
284 B
Python

#!/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()