depository-deploy 1.3.5 → 1.4.1
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 +14 -1
- package/install/install-windows.ps1 +10 -1
- package/package.json +4 -4
package/install/install-unix.sh
CHANGED
|
@@ -191,7 +191,7 @@ fi
|
|
|
191
191
|
|
|
192
192
|
# ---- Create directories ----
|
|
193
193
|
info "Creating directories..."
|
|
194
|
-
mkdir -p "$INSTALL_DIR"/{api,auth,worker,gatherer,digestor,setup,ui,logs}
|
|
194
|
+
mkdir -p "$INSTALL_DIR"/{api,auth,worker,gatherer,digestor,pdfindexer,setup,ui,logs}
|
|
195
195
|
mkdir -p "$DATA_DIR"
|
|
196
196
|
chown -R depository:depository "$INSTALL_DIR" "$DATA_DIR"
|
|
197
197
|
|
|
@@ -223,6 +223,9 @@ cp -r "$RELEASE_DIR/auth/"* "$INSTALL_DIR/auth/"
|
|
|
223
223
|
cp -r "$RELEASE_DIR/worker/"* "$INSTALL_DIR/worker/"
|
|
224
224
|
cp -r "$RELEASE_DIR/gatherer/"* "$INSTALL_DIR/gatherer/"
|
|
225
225
|
cp -r "$RELEASE_DIR/digestor/"* "$INSTALL_DIR/digestor/"
|
|
226
|
+
if [ -d "$RELEASE_DIR/pdfindexer" ]; then
|
|
227
|
+
cp -r "$RELEASE_DIR/pdfindexer/"* "$INSTALL_DIR/pdfindexer/"
|
|
228
|
+
fi
|
|
226
229
|
if [ -d "$RELEASE_DIR/setup" ]; then
|
|
227
230
|
cp -r "$RELEASE_DIR/setup/"* "$INSTALL_DIR/setup/"
|
|
228
231
|
fi
|
|
@@ -248,6 +251,11 @@ chmod +x "$INSTALL_DIR/auth/DEPOSITORY.API.OATH"
|
|
|
248
251
|
chmod +x "$INSTALL_DIR/worker/DEPOSITORY.CORE.WORKER"
|
|
249
252
|
chmod +x "$INSTALL_DIR/gatherer/DEPOSITORY.CORE.GATHERER"
|
|
250
253
|
chmod +x "$INSTALL_DIR/digestor/DEPOSITORY.CORE.DIGESTOR"
|
|
254
|
+
if [ -f "$INSTALL_DIR/pdfindexer/pdfindexer" ]; then
|
|
255
|
+
chmod +x "$INSTALL_DIR/pdfindexer/pdfindexer"
|
|
256
|
+
# Global symlink so any user can run: pdfindexer --help
|
|
257
|
+
ln -sf "$INSTALL_DIR/pdfindexer/pdfindexer" /usr/local/bin/pdfindexer
|
|
258
|
+
fi
|
|
251
259
|
if [ -f "$INSTALL_DIR/setup/DEPOSITORY.TOOLS.SETUP" ]; then
|
|
252
260
|
chmod +x "$INSTALL_DIR/setup/DEPOSITORY.TOOLS.SETUP"
|
|
253
261
|
fi
|
|
@@ -454,3 +462,8 @@ echo " View logs: journalctl -u depository-api -f"
|
|
|
454
462
|
echo " Restart all: systemctl restart depository-auth depository-api depository-worker depository-gatherer depository-digestor"
|
|
455
463
|
echo " Status: systemctl status depository-auth depository-api depository-worker depository-gatherer depository-digestor"
|
|
456
464
|
echo ""
|
|
465
|
+
echo " PDF Indexer (CLI tool — not a service):"
|
|
466
|
+
echo " Location: $INSTALL_DIR/pdfindexer/"
|
|
467
|
+
echo " Run: pdfindexer --pdf <file.pdf> --def <def.json> --output <out> --mode direct|ai"
|
|
468
|
+
echo " License: place license.lic in $INSTALL_DIR/pdfindexer/"
|
|
469
|
+
echo ""
|
|
@@ -200,7 +200,7 @@ Start-Sleep -Seconds 2
|
|
|
200
200
|
|
|
201
201
|
# ---- Create directories ----
|
|
202
202
|
Write-Info "Creating directories..."
|
|
203
|
-
foreach ($sub in @("api","auth","worker","gatherer","digestor","setup","ui","logs")) {
|
|
203
|
+
foreach ($sub in @("api","auth","worker","gatherer","digestor","pdfindexer","setup","ui","logs")) {
|
|
204
204
|
$p = Join-Path $INSTALL_DIR $sub
|
|
205
205
|
if (-not (Test-Path $p)) { New-Item -ItemType Directory -Path $p -Force | Out-Null }
|
|
206
206
|
}
|
|
@@ -238,6 +238,10 @@ if (Test-Path $uiIndex) {
|
|
|
238
238
|
Write-OK "UI configured: API base → $SITE_URL"
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
+
$pdfIndexerSrc = Join-Path $ReleaseDir "pdfindexer"
|
|
242
|
+
if (Test-Path $pdfIndexerSrc) {
|
|
243
|
+
Copy-Item "$pdfIndexerSrc\*" (Join-Path $INSTALL_DIR "pdfindexer") -Recurse -Force
|
|
244
|
+
}
|
|
241
245
|
$setupSrc = Join-Path $ReleaseDir "setup"
|
|
242
246
|
if (Test-Path $setupSrc) {
|
|
243
247
|
Copy-Item "$setupSrc\*" (Join-Path $INSTALL_DIR "setup") -Recurse -Force
|
|
@@ -635,3 +639,8 @@ Write-Host " View status: Get-Service depository-*"
|
|
|
635
639
|
Write-Host " Restart all: .\install\restart-windows.ps1"
|
|
636
640
|
Write-Host " Uninstall: .\install\uninstall-windows.ps1"
|
|
637
641
|
Write-Host ""
|
|
642
|
+
Write-Host " PDF Indexer (CLI tool - not a service):"
|
|
643
|
+
Write-Host " Location: $INSTALL_DIR\pdfindexer\"
|
|
644
|
+
Write-Host " Run: cd `"$INSTALL_DIR\pdfindexer`" ; .\pdfindexer.exe --pdf <file.pdf> --def <def.json> --output <out> --mode direct|ai"
|
|
645
|
+
Write-Host " License: place license.lic in $INSTALL_DIR\pdfindexer\"
|
|
646
|
+
Write-Host ""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "depository-deploy",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
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.
|
|
29
|
-
"depository-deploy-macos": "1.
|
|
30
|
-
"depository-deploy-windows": "1.
|
|
28
|
+
"depository-deploy-linux": "1.4.1",
|
|
29
|
+
"depository-deploy-macos": "1.4.1",
|
|
30
|
+
"depository-deploy-windows": "1.4.1"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"start": "node wizard-server.mjs"
|