diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..1c99d38 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +name: Publish to Comfy registry +on: + workflow_dispatch: + push: + branches: + - master + paths: + - "pyproject.toml" + +permissions: + issues: write + +jobs: + publish-node: + name: Publish Custom Node to registry + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'alexopus' }} + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Publish Custom Node + uses: Comfy-Org/publish-node-action@v1 + with: + ## Add your own personal access token to your Github Repository secrets and reference it here. + personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7753ff2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Girish Gopaul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/__init__.py b/__init__.py index 1f9cf43..03f28c1 100644 --- a/__init__.py +++ b/__init__.py @@ -3,7 +3,7 @@ from aiohttp import web from server import PromptServer import folder_paths -WEB_DIRECTORY = "./js" +WEB_DIRECTORY = "js" # Required for ComfyUI to recognize this as a valid extension NODE_CLASS_MAPPINGS = {} diff --git a/js/extension.js b/js/extension.js index a2030a4..c471b74 100644 --- a/js/extension.js +++ b/js/extension.js @@ -694,7 +694,7 @@ app.registerExtension({ app.extensionManager.registerSidebarTab({ id: "notes", - icon: "pi pi-book", + icon: "pi pi-pen-to-square", title: "Notes", tooltip: "Notes", type: "custom", diff --git a/pyproject.toml b/pyproject.toml index 6701f0d..f5db0cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,17 +1,14 @@ [project] name = "comfyui-notes-sidebar" +description = "A ComfyUI extension that adds a notes sidebar for managing notes" version = "1.0.0" -description = "A ComfyUI extension that adds a notes sidebar for managing markdown notes" -authors = [ - {name = "ComfyUI Notes Extension", email = "example@email.com"} -] -readme = "README.md" -license = {text = "MIT"} -requires-python = ">=3.7" +license = { file = "LICENSE" } +dependencies = ["aiohttp"] [project.urls] -Repository = "https://github.com/your-username/comfyui-notes-sidebar" +Repository = "https://github.com/alexopus/ComfyUI-Notes-Sidebar" -[build-system] -requires = ["setuptools>=45", "wheel"] -build-backend = "setuptools.build_meta" \ No newline at end of file +[tool.comfy] +PublisherId = "alexopus" +DisplayName = "ComfyUI Notes Sidebar" +Icon = "" diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..576af3a Binary files /dev/null and b/screenshot.png differ