diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rwxr-xr-x | comp.py | 10 |
2 files changed, 5 insertions, 7 deletions
@@ -14,3 +14,5 @@ live *.dev** tba/* x* +*.xcf +*.psd @@ -18,12 +18,11 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ######################################################################################## # This builds live/ folder for Update Server -import subprocess, json, sys, os, traceback +import subprocess, os, traceback PATH="/var/www/html/assets" # Delete previous deployment subprocess.call("rm --recursive %s/*" % PATH, shell=True) -f=open("resources.json", "w") rc=[] @@ -46,17 +45,14 @@ for path, subdir, files in os.walk("raw/"): if EXT in ["png", "jpg", "jpeg"]: subprocess.call("convert %s %s/%s" % (fn, PATH, NAME), shell=True) EXT="webp" + elif EXT in ["xcf", "psd"]: + pass else: subprocess.call("cp %s %s/%s.%s" % (fn, PATH, NAME, EXT), shell=True) - rc.append([NAME, EXT]) except: traceback.print_exc() pass -# Save new summary -json.dump(rc, f) -f.close() - # Create blank index page to disable dir listing subprocess.call("touch %s/index.html" % PATH, shell=True) |