From 181d0bbf435080ddd1878f4dd0b908d306d5fcdd Mon Sep 17 00:00:00 2001 From: Bowen Ding Date: Thu, 2 Apr 2020 00:12:02 +0800 Subject: [PATCH] Hardcode all JS files to copy --- sigal/plugins/encrypt/encrypt.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sigal/plugins/encrypt/encrypt.py b/sigal/plugins/encrypt/encrypt.py index 32ab0e3..bd94d47 100644 --- a/sigal/plugins/encrypt/encrypt.py +++ b/sigal/plugins/encrypt/encrypt.py @@ -242,9 +242,8 @@ def encrypt_files(settings, config, cache, albums, progressbar_target): def copy_assets(settings): theme_path = os.path.join(settings["destination"], 'static') - for root, dirs, files in os.walk(ASSETS_PATH): - for file in files: - copy(os.path.join(root, file), theme_path, symlink=False, rellink=False) + copy(ASSETS_PATH + "/decrypt.js", theme_path, symlink=False, rellink=False) + copy(ASSETS_PATH + "/decrypt-worker.js", theme_path, symlink=False, rellink=False) def inject_scripts(context): try: