From 9380361b14197f6653d1aacacbda066f127f3c57 Mon Sep 17 00:00:00 2001 From: Kapu Date: Mon, 6 Apr 2026 22:35:23 -0700 Subject: [PATCH 1/4] fix: add start.sh and start.bat scripts Fix npm ci --production so TypeScript devDependency is included when installing dependencies. Next.js requires TypeScript to transpile next.config.ts at startup, so skipping dev deps causes a MODULE_NOT_FOUND error for 'typescript'. Linux/macOS: use `npm ci --include=dev` Windows: use `call npm ci --include=dev` --- start.bat | 11 +++++++++++ start.sh | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 start.bat create mode 100755 start.sh diff --git a/start.bat b/start.bat new file mode 100644 index 0000000..bd11a3c --- /dev/null +++ b/start.bat @@ -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 diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..cb54d49 --- /dev/null +++ b/start.sh @@ -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 From 3de0569b531d744069b2d14e33fcaaa21dd2d0dc Mon Sep 17 00:00:00 2001 From: Kapu Date: Mon, 6 Apr 2026 22:41:59 -0700 Subject: [PATCH 2/4] docs: fix release download URLs to point to V0.01 instead of /latest The 'Latest Build' prerelease has no binary assets. The actual rocclaw-linux-x64.tar.gz and rocclaw-windows-x64.zip are attached to the V0.01 release tag. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index efab007..9277e15 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,8 @@ Download ready-to-run packages from [GitHub Releases](https://github.com/simonca **Linux/macOS:** ```bash -# Download and extract latest release -curl -L -o rocclaw.tar.gz https://github.com/simoncatbot/rocclaw/releases/latest/download/rocclaw-linux-x64.tar.gz +# Download and extract the latest release +curl -L -o rocclaw.tar.gz https://github.com/simoncatbot/rocclaw/releases/download/V0.01/rocclaw-linux-x64.tar.gz tar -xzf rocclaw.tar.gz cd rocclaw @@ -98,7 +98,7 @@ cd rocclaw ``` **Windows:** -1. Download `rocclaw-windows-x64.zip` from [GitHub Releases](https://github.com/simoncatbot/rocclaw/releases/latest) +1. Download `rocclaw-windows-x64.zip` from [GitHub Releases](https://github.com/simoncatbot/rocclaw/releases/download/V0.01/rocclaw-windows-x64.zip) 2. Extract the zip file 3. Run `start.bat` From 2b1f11ccb3a096757953cbf35d4abf9206252ee1 Mon Sep 17 00:00:00 2001 From: Kapu Date: Mon, 6 Apr 2026 22:44:35 -0700 Subject: [PATCH 3/4] fix: build workflow copies start.sh/start.bat from repo instead of generating inline Also fixes the start scripts in the packaged archive to use npm ci --include=dev (instead of --production) so TypeScript is available to transpile next.config.ts at startup. --- .github/workflows/build-and-release.yml | 30 +++---------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 7c90e4c..ef0204c 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -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 From 193998cfb15f97b0b379eef7483265f56e8f8391 Mon Sep 17 00:00:00 2001 From: Kapu Date: Mon, 6 Apr 2026 22:47:07 -0700 Subject: [PATCH 4/4] docs: restore README download URLs to /latest --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9277e15..d385fbc 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ Download ready-to-run packages from [GitHub Releases](https://github.com/simonca **Linux/macOS:** ```bash # Download and extract the latest release -curl -L -o rocclaw.tar.gz https://github.com/simoncatbot/rocclaw/releases/download/V0.01/rocclaw-linux-x64.tar.gz +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 @@ -98,7 +98,7 @@ cd rocclaw ``` **Windows:** -1. Download `rocclaw-windows-x64.zip` from [GitHub Releases](https://github.com/simoncatbot/rocclaw/releases/download/V0.01/rocclaw-windows-x64.zip) +1. Download `rocclaw-windows-x64.zip` from [GitHub Releases](https://github.com/simoncatbot/rocclaw/releases/latest) 2. Extract the zip file 3. Run `start.bat`