depository-deploy 1.0.5 → 1.0.7

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.
@@ -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
- cp -r "$RELEASE_DIR/ui/"* "$INSTALL_DIR/ui/"
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
- Copy-Item "$ReleaseDir\ui\*" (Join-Path $INSTALL_DIR "ui") -Recurse -Force
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "depository-deploy",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Depository document management system – deployment wizard and installers",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
@@ -25,9 +25,9 @@
25
25
  "scripts/publish.mjs"
26
26
  ],
27
27
  "optionalDependencies": {
28
- "depository-deploy-linux": "1.0.5",
29
- "depository-deploy-macos": "1.0.5",
30
- "depository-deploy-windows": "1.0.5"
28
+ "depository-deploy-linux": ">=1.0.0",
29
+ "depository-deploy-macos": ">=1.0.0",
30
+ "depository-deploy-windows": ">=1.0.0"
31
31
  },
32
32
  "scripts": {
33
33
  "start": "node wizard-server.mjs"
@@ -199,8 +199,8 @@ async function main() {
199
199
  if (newVersion !== currentVersion) {
200
200
  pkg.version = newVersion;
201
201
  }
202
- // Sync optionalDependencies versions
203
- if (pkg.optionalDependencies) {
202
+ // Sync optionalDependencies versions (only when platform packages are also published)
203
+ if (!wizardOnly && pkg.optionalDependencies) {
204
204
  for (const plat of PLATFORMS) {
205
205
  if (pkg.optionalDependencies[plat.pkgName]) {
206
206
  pkg.optionalDependencies[plat.pkgName] = newVersion;