chore: move node headers generation to electron (#39589)

This commit is contained in:
Cheng Zhao 2023-08-22 18:13:49 +09:00 committed by GitHub
parent c1898c39bf
commit bfa58df7c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 123 additions and 146 deletions

12
script/tar.py Normal file
View 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()