@apocaliss92/scrypted-reolink-native 0.1.42 → 0.2.0

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/build-lib.sh ADDED
@@ -0,0 +1,31 @@
1
+ #!/bin/bash
2
+
3
+ # Script per buildare la libreria reolink-baichuan-js e poi fare npm install
4
+ # nel repository principale
5
+
6
+ set -e # Exit on error
7
+
8
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
9
+ LIB_DIR="${SCRIPT_DIR}/reolink-baichuan-js"
10
+
11
+ echo "📦 Building reolink-baichuan-js library..."
12
+ cd "${LIB_DIR}"
13
+ npm run build
14
+
15
+ if [ $? -ne 0 ]; then
16
+ echo "❌ Build della libreria fallito!"
17
+ exit 1
18
+ fi
19
+
20
+ echo "✅ Libreria buildata con successo!"
21
+ echo ""
22
+ echo "📦 Installing dependencies in main repository..."
23
+ cd "${SCRIPT_DIR}"
24
+ npm install
25
+
26
+ if [ $? -ne 0 ]; then
27
+ echo "❌ npm install fallito!"
28
+ exit 1
29
+ fi
30
+
31
+ echo "✅ Tutto completato con successo!"