diff --git a/scripts/todesktop/afterPack.js b/scripts/todesktop/afterPack.js index b6c7405c..f8636130 100644 --- a/scripts/todesktop/afterPack.js +++ b/scripts/todesktop/afterPack.js @@ -29,6 +29,7 @@ module.exports = async ({ appOutDir, packager,outDir }) => { const mainPath = path.dirname(outDir); const assetPath = path.join(mainPath,'app-wrapper','app','assets'); const resourcePath = path.join(path.dirname(appPath),"resources"); + await fs.rm(path.join(assetPath,"ComfyUI",".git"),{recursive:true,force:true}); await fs.cp(assetPath, resourcePath, {recursive: true}); } } \ No newline at end of file