From 38ee8b72a1e98a7614b0775039e0a844ebbd2b05 Mon Sep 17 00:00:00 2001 From: Emmanuel Engelhart Date: Sun, 10 Jul 2022 11:19:23 +0200 Subject: [PATCH] Remove --zstd option (always using zstd) --- src/mwoffliner.lib.ts | 5 ++--- src/parameterList.ts | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mwoffliner.lib.ts b/src/mwoffliner.lib.ts index 1c585faf7..bfebbf5c5 100644 --- a/src/mwoffliner.lib.ts +++ b/src/mwoffliner.lib.ts @@ -113,8 +113,7 @@ async function execute(argv: any) { optimisationCacheUrl, noLocalParserFallback, forceLocalParser, - customFlavour, - zstd, + customFlavour } = argv; (process as any).verbose = !!verbose; @@ -403,7 +402,7 @@ async function execute(argv: any) { fileName: outZim, fullTextIndexLanguage: dump.opts.withoutZimFullTextIndex ? '' : dump.mwMetaData.langIso3, welcome: (dump.opts.mainPage ? dump.opts.mainPage : 'index'), - compression: zstd ? 'zstd' : 'lzma', + compression: 'zstd', }, { Tags: dump.computeZimTags(), Language: dump.mwMetaData.langIso3, diff --git a/src/parameterList.ts b/src/parameterList.ts index fe4cdf2f9..931c30f0a 100644 --- a/src/parameterList.ts +++ b/src/parameterList.ts @@ -36,5 +36,4 @@ export const parameterDescriptions = { osTmpDir: 'Override default operating system temporary directory path environment variable', customFlavour: 'A custom processor that can filter and process articles (see extensions/*.js)', optimisationCacheUrl: 'S3 url, including credentials and bucket name', - zstd: 'Use Zstandard as ZIM compression (Lzma otherwise)', };