Skip to content

Commit bc77503

Browse files
authored
use zip exclude
1 parent 3879565 commit bc77503

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

release_zips/release_zips.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,11 @@ def main():
4444
print("Zipping github files into source-{}...".format(zipfile))
4545
subprocess.run(["/usr/bin/7z", "a", "-mx=9", "-tzip", "source-" + zipfile, directory], check=True)
4646

47-
# remove all github and other not needed files for using IDF
48-
shutil.rmtree(directory + "/.git", ignore_errors=True)
49-
shutil.rmtree(directory + "/.github", ignore_errors=True)
50-
shutil.rmtree(directory + "/.gitlab", ignore_errors=True)
47+
# remove docs
5148
shutil.rmtree(directory + "/docs", ignore_errors=True)
5249

53-
fileList = glob.glob(directory + "/.*")
54-
for filePath in fileList:
55-
try:
56-
os.remove(filePath)
57-
except:
58-
print("Error while deleting file : ", filePath)
59-
6050
print("Zipping only needed files into {}...".format(zipfile))
61-
subprocess.run(["/usr/bin/7z", "a", "-mx=9", "-tzip", zipfile, directory], check=True)
51+
subprocess.run(["/usr/bin/7z", "a", "-mx=9", "-tzip", "-xr'!.*'", zipfile, directory], check=True)
6252

6353
try:
6454
release = repo.get_release(tag)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy