From 0cc0ec95dddf4d09f9d62d6d68a94bf9787d7864 Mon Sep 17 00:00:00 2001 From: telamonian Date: Fri, 30 Aug 2024 10:45:48 -0400 Subject: [PATCH] add scripts to create and clean assets to package.json --- .gitignore | 1 + package.json | 5 ++++- scripts/assets.sh | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index da3df729..bd673cd2 100644 --- a/.gitignore +++ b/.gitignore @@ -106,6 +106,7 @@ comfyui # built assets assets/ComfyUI +assets/cpython*.tar.gz assets/override.txt assets/python assets/requirements.* diff --git a/package.json b/package.json index 590c2ed4..edeeb4d9 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,13 @@ "type": "commonjs", "scripts": { "clean": "rimraf .vite dist out", - "clean:slate": "yarn run clean && rimraf node_modules", + "clean:assets": "rimraf assets/ComfyUI assets/cpython*.tar.gz assets/python assets/override.txt assets/python.tgz assets/requirements.*", + "clean:slate": "yarn run clean && && yarn run clean:assets && rimraf node_modules", "lint": "eslint --ext .ts,.tsx .", "lint:fix": "eslint --fix --ext .ts,.tsx .", "make": "electron-forge make", + "make:assets:amd": "cd assets && comfy-cli --skip-prompt --here install --fast-deps --amd && comfy-cli --here standalone", + "make:assets:nvidia": "cd assets && comfy-cli --skip-prompt --here install --fast-deps --nvidia && comfy-cli --here standalone", "notarize": "node debug/notarize.js", "package": "electron-forge package", "publish": "electron-forge publish", diff --git a/scripts/assets.sh b/scripts/assets.sh index 0a25abbf..1c972644 100755 --- a/scripts/assets.sh +++ b/scripts/assets.sh @@ -3,4 +3,3 @@ set -e comfy-cli --skip-prompt --workspace ./ComfyUI install --fast-deps --amd comfy-cli --workspace ./ComfyUI standalone -rm -rf python cpython*.tar.gz