Skip to content

Commit

Permalink
fix: remove build zip
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Jan 10, 2022
1 parent eddf02b commit 916b721
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Binary file removed plugin-dev-out/zh.zip
Binary file not shown.
14 changes: 2 additions & 12 deletions scripts/puglin-build-install-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default FastGlob<string>([
const cwd = join(__plugin_downloaded_dir_unzip, lang);
const cacheList: string[] = await readJSON(join(__plugin_downloaded_dir_unzip, lang + '.list.json'));

const zip = new JSZip();
const jar = new JSZip();

const bar = multibar.create(cacheList.length, 0);
Expand Down Expand Up @@ -66,22 +65,13 @@ export default FastGlob<string>([
mimeType: 'application/java-archive',
});

zip.file('lib/zh.jar', buf);

return Promise.all([
zip.generateAsync({
type: "nodebuffer",
mimeType: 'application/java-archive',
}),
buf,
outputJSON(join(__plugin_dev_output_dir, lang + '.list.json'), ls, {
spaces: 2,
}),
outputFile(join(__plugin_dev_output_dir, lang + '.jar'), buf)
]).then(ls => ls[0] as Buffer);
})
.tap((buf) =>
{
return outputFile(join(__plugin_dev_output_dir, lang + '.zip'), buf)
] as const).then(ls => ls[0] as Buffer);
})
.finally(() =>
{
Expand Down

0 comments on commit 916b721

Please sign in to comment.