-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·48 lines (43 loc) · 1.49 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·48 lines (43 loc) · 1.49 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
#!/bin/bash
echo "Installing mytunnel..."
OS=$(uname)
ARCH=$(uname -m)
if [ "$OS" = "Linux" ]; then
URL="https://github.com/DpkRn/devtunnel/releases/latest/download/mytunnel-linux"
elif [ "$OS" = "Darwin" ]; then
if [ "$ARCH" = "arm64" ]; then
URL="https://github.com/DpkRn/devtunnel/releases/latest/download/mytunnel-mac-arm64"
else
URL="https://github.com/DpkRn/devtunnel/releases/latest/download/mytunnel-mac"
fi
else
echo "Unsupported OS: $OS $ARCH"
exit 1
fi
curl -fSL --progress-bar "$URL" -o mytunnel </dev/tty
if file mytunnel | grep -qv 'text'; then
chmod +x mytunnel
sudo mv mytunnel /usr/local/bin/
else
echo "❌ Download failed — file is not a binary:"
cat mytunnel
rm -f mytunnel
exit 1
fi
echo ""
echo "✅ Installed successfully!"
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo " Quick Start"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo " 1. Start your local server (e.g. port 3000)"
echo ""
echo " 2. Run the tunnel:"
echo " mytunnel http 3000"
echo ""
echo " 3. You'll get a public URL like:"
echo " https://abc123.clickly.cv"
echo " Share it — all traffic is forwarded to your local server."
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"