-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·40 lines (34 loc) · 1.15 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·40 lines (34 loc) · 1.15 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
#!/bin/bash
# Setup script for JS-rendering proxy
set -e
INSTALL_DIR="${1:-$HOME/.local/bin}"
mkdir -p "$INSTALL_DIR"
echo "Installing Lightpanda to $INSTALL_DIR..."
# Detect platform
case "$(uname -s)-$(uname -m)" in
Darwin-arm64)
URL="https://github.com/lightpanda-io/browser/releases/download/nightly/lightpanda-aarch64-macos"
;;
Darwin-x86_64)
URL="https://github.com/lightpanda-io/browser/releases/download/nightly/lightpanda-x86_64-macos"
;;
Linux-x86_64)
URL="https://github.com/lightpanda-io/browser/releases/download/nightly/lightpanda-x86_64-linux"
;;
Linux-aarch64)
URL="https://github.com/lightpanda-io/browser/releases/download/nightly/lightpanda-aarch64-linux"
;;
*)
echo "Unsupported platform: $(uname -s)-$(uname -m)"
exit 1
;;
esac
curl -L -o "$INSTALL_DIR/lightpanda" "$URL"
chmod +x "$INSTALL_DIR/lightpanda"
echo "Lightpanda installed to $INSTALL_DIR/lightpanda"
echo ""
echo "Make sure $INSTALL_DIR is in your PATH:"
echo " export PATH=\"$INSTALL_DIR:\$PATH\""
echo ""
echo "Test with:"
echo " lightpanda fetch --dump https://example.com"