Track download progress
Publish Library / Build NPM Project (push) Successful in 1m50s
Publish Library / Tag Version (push) Successful in 7s

This commit is contained in:
2026-10-05 15:08:09 -04:00
parent ba4bdceab1
commit 3c80bfae93
3 changed files with 13 additions and 10 deletions
+3
View File
@@ -146,6 +146,9 @@ function resolveArchiveName() {
}
async function install() {
if (fs.existsSync(BIN_DIR) && (await fs.promises.readdir(BIN_DIR)).some(f => f.startsWith('kiwix-')))
return console.log(`Already installed: ${BIN_DIR}`);
const {archiveName, ext} = resolveArchiveName();
const url = `${BASE_URL}/${archiveName}`;
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'kiwix-install-'));