mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
Backport of #9206 to `core/1.39` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9207-backport-core-1-39-fix-publish-desktop-specific-frontend-release-artifact-3126d73d3650818a9886c89ac83ee293) by [Unito](https://www.unito.io) Co-authored-by: Benjamin Lu <benjaminlu1107@gmail.com>
15 lines
399 B
JavaScript
15 lines
399 B
JavaScript
import zipdir from 'zip-dir'
|
|
|
|
const sourceDir = process.argv[2] || './dist'
|
|
const outputPath = process.argv[3] || './dist.zip'
|
|
|
|
zipdir(sourceDir, { saveTo: outputPath }, function (err, buffer) {
|
|
if (err) {
|
|
console.error(`Error zipping "${sourceDir}" directory:`, err)
|
|
} else {
|
|
process.stdout.write(
|
|
`Successfully zipped "${sourceDir}" directory to "${outputPath}".\n`
|
|
)
|
|
}
|
|
})
|