Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 3 additions & 27 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,35 +42,11 @@ jobs:
mkdir -p dist/rocclaw/scripts
cp scripts/verify-native-runtime.mjs dist/rocclaw/scripts/

# Create startup script
cat > dist/rocclaw/start.sh << 'EOF'
#!/bin/bash
set -e

echo "Starting rocCLAW..."
echo "Make sure you have Node.js 20.9+ installed"

# Install production dependencies
npm ci --production

# Start the server
node server/index.js
EOF
# Copy startup scripts from the repo (not generated inline)
cp start.sh dist/rocclaw/
cp start.bat dist/rocclaw/
chmod +x dist/rocclaw/start.sh

# Create Windows startup script
cat > dist/rocclaw/start.bat << 'EOF'
@echo off
echo Starting rocCLAW...
echo Make sure you have Node.js 20.9+ installed

REM Install production dependencies
call npm ci --production

REM Start the server
node server/index.js
EOF

# Create tar.gz archive
cd dist
tar -czf rocclaw-linux-x64.tar.gz rocclaw
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Download ready-to-run packages from [GitHub Releases](https://github.com/simonca

**Linux/macOS:**
```bash
# Download and extract latest release
# Download and extract the latest release
curl -L -o rocclaw.tar.gz https://github.com/simoncatbot/rocclaw/releases/latest/download/rocclaw-linux-x64.tar.gz
tar -xzf rocclaw.tar.gz
cd rocclaw
Expand Down
11 changes: 11 additions & 0 deletions start.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo off
echo Starting rocCLAW...
echo Make sure you have Node.js 20.9+ installed

REM Install dependencies (--include=dev required so TypeScript is available to
REM transpile next.config.ts at startup; omitting dev deps causes a MODULE_NOT_FOUND
REM error for 'typescript' in the Next.js config transpiler)
call npm ci --include=dev

REM Start the server
node server/index.js
13 changes: 13 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
set -e

echo "Starting rocCLAW..."
echo "Make sure you have Node.js 20.9+ installed"

# Install dependencies (--include=dev required so TypeScript is available to
# transpile next.config.ts at startup; omitting dev deps causes a MODULE_NOT_FOUND
# error for 'typescript' in the Next.js config transpiler)
npm ci --include=dev

# Start the server
node server/index.js
Loading