depository-deploy 1.0.6 → 1.0.8
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.
package/install/install-unix.sh
CHANGED
|
@@ -197,7 +197,15 @@ cp -r "$RELEASE_DIR/auth/"* "$INSTALL_DIR/auth/"
|
|
|
197
197
|
cp -r "$RELEASE_DIR/worker/"* "$INSTALL_DIR/worker/"
|
|
198
198
|
cp -r "$RELEASE_DIR/gatherer/"* "$INSTALL_DIR/gatherer/"
|
|
199
199
|
cp -r "$RELEASE_DIR/digestor/"* "$INSTALL_DIR/digestor/"
|
|
200
|
-
|
|
200
|
+
# UI is platform-independent — may be at $RELEASE_DIR/ui or one level up (release/ui)
|
|
201
|
+
UI_SRC="$RELEASE_DIR/ui"
|
|
202
|
+
if [ ! -d "$UI_SRC" ]; then
|
|
203
|
+
UI_SRC="$(dirname "$RELEASE_DIR")/ui"
|
|
204
|
+
fi
|
|
205
|
+
if [ ! -d "$UI_SRC" ]; then
|
|
206
|
+
error "UI folder not found at $RELEASE_DIR/ui or $(dirname "$RELEASE_DIR")/ui"
|
|
207
|
+
fi
|
|
208
|
+
cp -r "$UI_SRC/"* "$INSTALL_DIR/ui/"
|
|
201
209
|
|
|
202
210
|
chmod +x "$INSTALL_DIR/api/DEPOSITORY.API.REST"
|
|
203
211
|
chmod +x "$INSTALL_DIR/auth/DEPOSITORY.API.OATH"
|
|
@@ -198,7 +198,13 @@ foreach ($sub in $svcMap.Keys) {
|
|
|
198
198
|
$dst = Join-Path $INSTALL_DIR $sub
|
|
199
199
|
Copy-Item "$src\*" $dst -Recurse -Force
|
|
200
200
|
}
|
|
201
|
-
|
|
201
|
+
# UI is platform-independent — may be at $ReleaseDir\ui or one level up (release\ui)
|
|
202
|
+
$uiSrc = Join-Path $ReleaseDir "ui"
|
|
203
|
+
if (-not (Test-Path $uiSrc)) {
|
|
204
|
+
$uiSrc = Join-Path (Split-Path -Parent $ReleaseDir) "ui"
|
|
205
|
+
}
|
|
206
|
+
if (-not (Test-Path $uiSrc)) { Write-Fail "UI folder not found at $ReleaseDir\ui or $(Split-Path -Parent $ReleaseDir)\ui" }
|
|
207
|
+
Copy-Item "$uiSrc\*" (Join-Path $INSTALL_DIR "ui") -Recurse -Force
|
|
202
208
|
|
|
203
209
|
# ---- Generate appsettings.json ----
|
|
204
210
|
Write-Info "Generating configuration files..."
|
package/package.json
CHANGED
package/wizard-server.mjs
CHANGED
|
@@ -343,7 +343,8 @@ const server = createServer((req, res) => {
|
|
|
343
343
|
}
|
|
344
344
|
|
|
345
345
|
// Detect if running via npx/global install and pick the right update command
|
|
346
|
-
const
|
|
346
|
+
const scriptPath = process.argv[1] || '';
|
|
347
|
+
const isGlobal = scriptPath.includes('node_modules') ||
|
|
347
348
|
process.env.npm_config_global === 'true';
|
|
348
349
|
const cmd = isGlobal
|
|
349
350
|
? ['npm', ['install', '-g', `${PKG_NAME}@latest`]]
|