chore: move node headers generation to electron (#39589)
This commit is contained in:
parent
c1898c39bf
commit
bfa58df7c9
9 changed files with 123 additions and 146 deletions
12
script/tar.py
Normal file
12
script/tar.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
import os
|
||||
import sys
|
||||
import tarfile
|
||||
|
||||
source = sys.argv[1]
|
||||
target = sys.argv[2]
|
||||
|
||||
os.chdir(os.path.dirname(source))
|
||||
|
||||
tarball = tarfile.open(name=os.path.basename(target), mode='w:gz')
|
||||
tarball.add(os.path.relpath(source))
|
||||
tarball.close()
|
Loading…
Add table
Add a link
Reference in a new issue