From 1fb7b72cedeb17fa947e4c2a74800cfbb2360cb4 Mon Sep 17 00:00:00 2001 From: 6Morpheus6 Date: Sun, 27 Apr 2025 17:31:09 +0200 Subject: [PATCH 1/3] remove fs.link --- install.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/install.js b/install.js index abdb310..e23c7e5 100644 --- a/install.js +++ b/install.js @@ -26,12 +26,6 @@ module.exports = { venv: "env", message: "uv pip install litellm[proxy]==1.57.4" } - }, - { - method: "fs.link", - params: { - venv: "env" - } } ] } From 8cb140565104c5ca58305f2f30e8eb01ac1819bd Mon Sep 17 00:00:00 2001 From: 6Morpheus6 Date: Sun, 27 Apr 2025 17:31:16 +0200 Subject: [PATCH 2/3] add --- link.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 link.js diff --git a/link.js b/link.js new file mode 100644 index 0000000..57be461 --- /dev/null +++ b/link.js @@ -0,0 +1,10 @@ +module.exports = { + run: [ + { + method: "fs.link", + params: { + venv: "env" + } + } + ] +} From 249661ad79c838f9e9f775f81a0e15fca1e1651f Mon Sep 17 00:00:00 2001 From: 6Morpheus6 Date: Sun, 27 Apr 2025 17:31:49 +0200 Subject: [PATCH 3/3] save disk space, script version 3.7 --- pinokio.js | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pinokio.js b/pinokio.js index 7bc4aae..2da0921 100644 --- a/pinokio.js +++ b/pinokio.js @@ -1,6 +1,6 @@ const path = require('path') module.exports = { - version: "3.4.0", + version: "3.7", title: "bolt.diy", description: "Prompt, run, edit, and deploy full-stack web apps. https://github.com/stackblitz-labs/bolt.diy", icon: "icon.png", @@ -10,7 +10,8 @@ module.exports = { install: info.running("install.js"), start: info.running("start.js"), update: info.running("update.js"), - reset: info.running("reset.js") + reset: info.running("reset.js"), + link: info.running("link.js") } if (running.install) { return [{ @@ -56,6 +57,13 @@ module.exports = { text: "Resetting", href: "reset.js", }] + } else if (running.link) { + return [{ + default: true, + icon: 'fa-solid fa-terminal', + text: "Deduplicating", + href: "link.js", + }] } else { return [{ icon: "fa-solid fa-power-off", @@ -77,10 +85,16 @@ module.exports = { icon: "fa-solid fa-download", text: "Download Ollama Model", href: "custom_download.json" + }, { + icon: "fa-solid fa-file-zipper", + text: "
Save Disk Space
Deduplicates redundant library files
", + href: "link.js", }, { icon: "fa-regular fa-circle-xmark", - text: "Reset", + text: "
Reset
Revert to pre-install state
", href: "reset.js", + confirm: "Are you sure you wish to reset the app?" + }] } } else {