Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Jan 12, 2022
1 parent b35f580 commit b147d16
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/unzip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ import { createMultiBar } from '../lib/cli-progress';
const multibar = createMultiBar();

export default unzipLang('zh')
.finally(() => multibar.stop())
.then(() => multibar.stop())
;

function unzipLang(lang: string | 'zh')
{
console.cyan.log(`unzip ${lang}.zip`);

let bar: SingleBar = multibar.create(200, 0);
const bar: SingleBar = multibar.create(200, 0);

console.log(bar);

return Bluebird.resolve(readFile(join(__plugin_downloaded_dir, `${lang}.zip`)))
.then<JSZip>(JSZip.loadAsync)
Expand Down

0 comments on commit b147d16

Please sign in to comment.