Hardcode all JS files to copy

This commit is contained in:
Bowen Ding
2020-04-02 00:12:02 +08:00
parent 015a48ac01
commit 181d0bbf43

View File

@@ -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: