nuwax-deploy-installer 0.2.1 → 0.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuwax-deploy-installer",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Unified deployment CLI for nuwax services (document-parser, voice-cli)",
5
5
  "license": "MIT",
6
6
  "repository": {
Binary file
@@ -14,6 +14,10 @@
14
14
  <dict>
15
15
  <key>PATH</key>
16
16
  <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Python.framework/Versions/Current/bin</string>
17
+ <key>HOME</key>
18
+ <string>__HOME__</string>
19
+ <key>TMPDIR</key>
20
+ <string>/tmp</string>
17
21
  </dict>
18
22
  <key>RunAtLoad</key>
19
23
  <true/>
@@ -26,7 +30,5 @@
26
30
  <string>__INSTALL_DIR__/logs/launchd.stdout.log</string>
27
31
  <key>StandardErrorPath</key>
28
32
  <string>__INSTALL_DIR__/logs/launchd.stderr.log</string>
29
- <key>ProcessType</key>
30
- <string>Background</string>
31
33
  </dict>
32
34
  </plist>
@@ -2,6 +2,12 @@
2
2
  # LaunchAgent wrapper: load OSS secrets then start document-parser.
3
3
  set -euo pipefail
4
4
  export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH:-}"
5
+ # launchd may omit HOME; Python/HuggingFace caches and MPS need a real home
6
+ if [[ -z "${HOME:-}" ]]; then
7
+ HOME="$(cd ~ && pwd)"
8
+ export HOME
9
+ fi
10
+ export TMPDIR="${TMPDIR:-/tmp}"
5
11
  cd "$(dirname "$0")"
6
12
  set -a
7
13
  # shellcheck disable=SC1091
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.1",
2
+ "version": "0.2.2",
3
3
  "optionalAssets": {
4
4
  "venv": {
5
5
  "darwin-arm64": "https://nuwa-packages.oss-rg-china-mainland.aliyuncs.com/uploads/document-parser/venv-macos-arm64-{version}.tar.gz"