From eaa357a65f01f94aa3b05e67da80ad3f6b64728a Mon Sep 17 00:00:00 2001 From: Mathieu PATUREL Date: Sat, 16 Nov 2019 08:28:08 +1100 Subject: [PATCH] don't export png's and compilers to the final users Though they are still available to the devs, as they are just `export-ignore`d in the .gitattributes. I've done a little bit of research, and this attribute prevents the files from being archived by git. So, I'm assuming that package control fetches archives of the packages, and not the actual ones. But I haven't found any documentation on packagecontrol.io stating that. I quickly browsed its source code on GitHub, and couldn't really find anything. So, I'm going to contact @jfcherng, who showed me this trick on FileManager. --- .gitattributes | 3 +++ resources/convertresources.py | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dcc40d8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +docs/ export-ignore +resources/*.png export-ignore +resources/*.py export-ignore \ No newline at end of file diff --git a/resources/convertresources.py b/resources/convertresources.py index eb78792..fdcd878 100644 --- a/resources/convertresources.py +++ b/resources/convertresources.py @@ -1,8 +1,5 @@ """ A small script to convert the images into base64 data """ -# FIXME: ignore this script and the original images in .gitignore so that it pushes to -# the GitHub repository but not package control - from base64 import b64encode with open('404.png', 'rb') as png, open('404.base64', 'wb') as base64: