@kandiforge/spectacle 0.45.20 → 0.45.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/install.js +13 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kandiforge/spectacle",
3
- "version": "0.45.20",
3
+ "version": "0.45.25",
4
4
  "description": "Spectacle server and CLI tools for KandiForge ecosystem",
5
5
  "author": "Abstract Class Consulting Inc.",
6
6
  "license": "PROPRIETARY",
@@ -6,7 +6,7 @@ const https = require('https');
6
6
  const { execSync } = require('child_process');
7
7
 
8
8
  // This version MUST match package.json
9
- const RELEASE_VERSION = '0.45.20';
9
+ const RELEASE_VERSION = '0.45.25';
10
10
  const GITHUB_REPO = 'KandiForge/distribution';
11
11
  const PACKAGE_NAME = '@kandiforge/spectacle';
12
12
 
@@ -223,6 +223,18 @@ async function install() {
223
223
  }
224
224
  }
225
225
 
226
+ // Move gui-web assets to bin directory (for /app web UI)
227
+ const guiWebSrc = path.join(extractedDir, 'gui-web');
228
+ const guiWebDest = path.join(binDir, 'gui-web');
229
+ if (fs.existsSync(guiWebSrc)) {
230
+ // Remove existing gui-web if present
231
+ if (fs.existsSync(guiWebDest)) {
232
+ fs.rmSync(guiWebDest, { recursive: true });
233
+ }
234
+ fs.renameSync(guiWebSrc, guiWebDest);
235
+ logInfo('Installed gui-web assets for /app web UI');
236
+ }
237
+
226
238
  // Clean up the extracted directory
227
239
  if (fs.existsSync(extractedDir)) {
228
240
  fs.rmSync(extractedDir, { recursive: true });