mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-26 09:44:06 +00:00
## Summary - add a desktop-specific frontend release artifact (`dist-desktop.zip`) in release draft creation - build `dist-desktop.zip` with `DISTRIBUTION=desktop` - keep existing `dist.zip` behavior for core/PyPI consumers - extend `scripts/zipdist.js` to support custom source and output paths ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9206-fix-publish-desktop-specific-frontend-release-artifact-3126d73d3650812495cdf6e9ad2ac280) by [Unito](https://www.unito.io)
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`
|
|
)
|
|
}
|
|
})
|