Support --cached-only and deno compile for export zip

This commit is contained in:
2023-06-07 08:42:18 +08:00
parent 09899953c6
commit e182ebff90
3 changed files with 18 additions and 2 deletions

View File

@@ -1,7 +1,12 @@
import { join } from "std/path/mod.ts";
import { Uint8ArrayReader, ZipWriter } from "zipjs/index.js";
import { EhDb } from "../db.ts";
import { addZero, asyncForEach, filterFilename } from "../utils.ts";
import {
addZero,
asyncForEach,
configureZipJs,
filterFilename,
} from "../utils.ts";
import { Config } from "../config.ts";
import { Task, TaskExportZipProgress, TaskType } from "../task.ts";
import { TaskManager } from "../task_manager.ts";
@@ -44,6 +49,7 @@ export async function export_zip(
truncate: true,
});
try {
configureZipJs();
const z = new ZipWriter(f.writable, {
signal,
level: 0,