abtars 0.2.1-alpha.4 → 0.2.1-alpha.5
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-manifest.json +1 -1
- package/package.json +1 -1
- package/scripts/abtars.sh +3 -5
- package/scripts/watchdog.sh +2 -3
package/install-manifest.json
CHANGED
package/package.json
CHANGED
package/scripts/abtars.sh
CHANGED
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
set -euo pipefail
|
|
4
4
|
|
|
5
5
|
ABTARS_HOME="${ABTARS_HOME:-$HOME/.abtars}"
|
|
6
|
-
CURRENT="$ABTARS_HOME/current/bundle"
|
|
7
6
|
|
|
8
|
-
# Make
|
|
9
|
-
GLOBAL_MODULES="$(npm root -g 2>/dev/null || true)"
|
|
7
|
+
# Make native addons (better-sqlite3) resolvable
|
|
10
8
|
ABMIND_LIB="${ABMIND_HOME:-$HOME/.abmind}/lib/node_modules"
|
|
11
|
-
NODE_PATH="${
|
|
9
|
+
NODE_PATH="${ABMIND_LIB:+$ABMIND_LIB:}${NODE_PATH:-}"
|
|
12
10
|
export NODE_PATH
|
|
13
11
|
|
|
14
|
-
exec node "$
|
|
12
|
+
exec node "$ABTARS_HOME/app/bundle/abtars.js" "$@"
|
package/scripts/watchdog.sh
CHANGED
|
@@ -158,10 +158,9 @@ spawn_bridge() {
|
|
|
158
158
|
|
|
159
159
|
# Source .env so platform ENABLED vars reach the node process
|
|
160
160
|
if [ -f "$AB/config/.env" ]; then set -a; source "$AB/config/.env"; set +a; fi
|
|
161
|
-
|
|
162
|
-
log "Starting bridge: node current/main.js $*"
|
|
161
|
+
log "Starting bridge: node app/bundle/abtars.js $*"
|
|
163
162
|
cd "$AB"
|
|
164
|
-
NODE_PATH="
|
|
163
|
+
NODE_PATH="${ABMIND_HOME:-$HOME/.abmind}/lib/node_modules:${NODE_PATH:-}" node app/bundle/abtars.js "$@" >> "$AB/logs/launchd.log" 2>&1 &
|
|
165
164
|
SPAWNED_AT=$(date +%s)
|
|
166
165
|
|
|
167
166
|
# Wait for bridge.lock with PID
|