electron/tools/copy_binary.py
2014-09-12 21:48:45 +08:00

12 lines
189 B
Python
Executable file

#!/usr/bin/env python
import os
import shutil
import stat
import sys
src = sys.argv[1]
dist = sys.argv[2]
shutil.copyfile(src, dist)
os.chmod(dist, os.stat(dist).st_mode | stat.S_IEXEC)