Skip to content

Commit 120dd2d

Browse files
committed
Use download-then-run installer command
1 parent 72941a6 commit 120dd2d

8 files changed

Lines changed: 30 additions & 14 deletions

File tree

INSTALL.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ ShipNode offers two installation workflows:
1414
Download and run the self-extracting installer:
1515

1616
```bash
17-
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh | bash
17+
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh -o shipnode-installer.sh
18+
chmod +x shipnode-installer.sh
19+
./shipnode-installer.sh
1820
```
1921

2022
Or download manually:
@@ -216,7 +218,9 @@ cd /path/to/shipnode
216218
To update to the latest version, simply download and run the installer again:
217219

218220
```bash
219-
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh | bash
221+
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh -o shipnode-installer.sh
222+
chmod +x shipnode-installer.sh
223+
./shipnode-installer.sh
220224
```
221225

222226
### For Developers (Cloned from Source)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ shipnode deploy ───rsync──▶ /var/www/myapp/
3434
### 1. Install
3535

3636
```bash
37-
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh | bash
37+
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh -o shipnode-installer.sh
38+
chmod +x shipnode-installer.sh
39+
./shipnode-installer.sh
3840
```
3941

4042
Or clone and run directly:

build-dist.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GREEN='\033[0;32m'
77
BLUE='\033[0;34m'
88
NC='\033[0m'
99

10-
VERSION="1.3.4"
10+
VERSION="1.3.5"
1111
DIST_DIR="dist"
1212
ARCHIVE_NAME="shipnode-payload.tar.gz"
1313
INSTALLER_NAME="shipnode-installer.sh"
@@ -90,7 +90,7 @@ YELLOW='\033[1;33m'
9090
BLUE='\033[0;34m'
9191
NC='\033[0m'
9292
93-
VERSION="1.3.4"
93+
VERSION="1.3.5"
9494
INSTALL_DIR="$HOME/.shipnode"
9595
9696
# Parse flags
@@ -246,5 +246,7 @@ echo "Usage:"
246246
echo -e " ${BLUE}bash $DIST_DIR/$INSTALLER_NAME${NC}"
247247
echo
248248
echo "Or upload to GitHub releases for users to download:"
249-
echo -e " ${BLUE}curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh | bash${NC}"
249+
echo -e " ${BLUE}curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh -o shipnode-installer.sh${NC}"
250+
echo -e " ${BLUE}chmod +x shipnode-installer.sh${NC}"
251+
echo -e " ${BLUE}./shipnode-installer.sh${NC}"
250252
echo

docs/advanced/distribution.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ This document explains the distribution system for ShipNode, allowing users to i
77
The distribution system packages ShipNode into a single self-extracting installer that users can download and run. This makes installation as simple as:
88

99
```bash
10-
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh | bash
10+
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh -o shipnode-installer.sh
11+
chmod +x shipnode-installer.sh
12+
./shipnode-installer.sh
1113
```
1214

1315
## How It Works
@@ -94,7 +96,9 @@ Creates `dist/shipnode-installer.sh` (~21KB)
9496

9597
Users install with:
9698
```bash
97-
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh | bash
99+
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh -o shipnode-installer.sh
100+
chmod +x shipnode-installer.sh
101+
./shipnode-installer.sh
98102
```
99103

100104
### 2. Direct Download

docs/getting-started/installation.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ Install ShipNode on your local machine to deploy apps to your server.
1313
Download and run the self-extracting installer:
1414

1515
```bash
16-
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh | bash
16+
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh -o shipnode-installer.sh
17+
chmod +x shipnode-installer.sh
18+
./shipnode-installer.sh
1719
```
1820

1921
Or download manually:
@@ -64,7 +66,9 @@ To update to the latest version:
6466

6567
```bash
6668
# Installed via installer
67-
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh | bash
69+
curl -fsSL https://github.com/devalade/shipnode/releases/latest/download/shipnode-installer.sh -o shipnode-installer.sh
70+
chmod +x shipnode-installer.sh
71+
./shipnode-installer.sh
6872

6973
# From source
7074
cd shipnode

lib/core.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BLUE='\033[0;34m'
1010
NC='\033[0m' # No Color
1111

1212
# ShipNode version
13-
VERSION="1.3.4"
13+
VERSION="1.3.5"
1414

1515
# SSH multiplexing for connection reuse
1616
SSH_CONTROL_PATH="/tmp/shipnode-ssh-%r@%h:%p"

website/src/components/GetStarted.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<h2 class="section-title">Install once. Deploy from the project folder.</h2>
99
</div>
1010
<div class="cta-panel">
11-
<code>curl -fsSL https://shipnode.dev/install | bash</code>
11+
<code>curl -fsSL https://shipnode.dev/install -o shipnode-installer.sh && bash shipnode-installer.sh</code>
1212
<div class="cta-links">
1313
<a href="https://github.com/devalade/shipnode" target="_blank" rel="noopener" class="primary">View source</a>
1414
<a href="https://github.com/devalade/shipnode#getting-started" target="_blank" rel="noopener">Read docs</a>

website/src/components/Hero.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</p>
1313
<div class="hero-actions">
1414
<div class="install-cmd" id="install-cmd">
15-
<code>curl -fsSL https://shipnode.dev/install | bash</code>
15+
<code>curl -fsSL https://shipnode.dev/install -o shipnode-installer.sh && bash shipnode-installer.sh</code>
1616
<button class="copy-btn" id="copy-btn" aria-label="Copy install command">
1717
<svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
1818
<rect x="9" y="9" width="12" height="12" rx="2"></rect>
@@ -355,7 +355,7 @@
355355
</style>
356356

357357
<script>
358-
const installCommand = "curl -fsSL https://shipnode.dev/install | bash";
358+
const installCommand = "curl -fsSL https://shipnode.dev/install -o shipnode-installer.sh && bash shipnode-installer.sh";
359359
const copyBtn = document.getElementById("copy-btn");
360360
const toast = document.getElementById("copy-toast");
361361
let toastTimer: number | undefined;

0 commit comments

Comments
 (0)