-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux.sh
More file actions
43 lines (33 loc) · 1.42 KB
/
Copy pathlinux.sh
File metadata and controls
43 lines (33 loc) · 1.42 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
#!/usr/bin/env bash
set -euo pipefail
printf '\033[36m»\033[0m Ensuring project repository dependencies are fully installed...\n'
bun install
printf '\033[36m»\033[0m Validating scrapers...\n'
bun run validate:scrapers
printf '\033[36m»\033[0m Running core engine tests...\n'
bun run test:engine
printf '\033[36m»\033[0m Running sync configuration tests...\n'
bun run test:sync
printf '\033[36m»\033[0m Compiling and bundling Chrome extension...\n'
bun run build:chrome
printf '\033[36m»\033[0m Compiling and bundling Firefox XPI extension...\n'
bun run build:xpi
printf '\033[36m»\033[0m Cleaning build artifacts to prevent self-overwrite conflicts...\n'
if [ -d "launcher/dist" ]; then
rm -rf launcher/dist/*
fi
if [ -d "dist/linux-unpacked" ]; then
rm -rf dist/linux-unpacked
fi
printf '\033[36m»\033[0m Injecting and routing native messaging hosts via installer...\n'
if [ -f "./install-linux.sh" ]; then
./install-linux.sh
elif [ -f "./scripts/install-linux.sh" ]; then
./scripts/install-linux.sh
else
printf '\033[31m✗\033[0m install-linux.sh not found. Skipping native messaging layer.\n' >&2
fi
printf '\n\033[32m✓\033[0m Local development environment successfully compiled!\n'
printf 'Next Steps:\n'
printf ' • Chrome/Brave/Edge/Opera: Load unpacked extension from \033[34m%s\033[0m\n' "dist/chrome/"
printf ' • Firefox/LibreWolf: Load temporary add-on from \033[34m%s\033[0m\n' "dist/syncr.xpi"