-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
50 lines (41 loc) · 1.12 KB
/
Copy pathbuild.sh
File metadata and controls
50 lines (41 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# Sonance — Build Script
# Packages the app into Sonance.wgt for Samsung Tizen TV deployment
set -e
cd "$(dirname "$0")"
OUTPUT="Sonance.wgt"
echo "============================================"
echo " Sonance — Build .wgt Package"
echo "============================================"
echo ""
# Remove old build
rm -f "$OUTPUT"
# Create .wgt (zip archive) with only app files
zip -r "$OUTPUT" \
config.xml \
icon.png \
index.html \
css/ \
js/ \
-x "*.DS_Store" \
-x "__MACOSX/*" \
-x "*.git*"
echo ""
echo "Built: $OUTPUT ($(du -h "$OUTPUT" | cut -f1))"
echo ""
# Verify contents
echo "Contents:"
unzip -l "$OUTPUT" | grep -v "^Archive\|^ Length\|^ ---\|^$" | grep -v " files$" | awk '{print " " $4}'
echo ""
# Count files
FILE_COUNT=$(unzip -l "$OUTPUT" | grep -c "\.")
echo "Total files: $FILE_COUNT"
echo ""
echo "Deploy with Jellyfin2Samsung:"
echo " 1. Enable Developer Mode on TV"
echo " 2. Open Jellyfin2Samsung"
echo " 3. Go to Settings → select custom .wgt"
echo " 4. Select Sonance.wgt"
echo " 5. Install to TV"
echo ""
echo "============================================"