Skip to content

Commit 3f13fdf

Browse files
committed
Removed the stray cp from scripts/prepare-release.sh so **release/README.md is no longer recreated.
1 parent 843f69f commit 3f13fdf

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

.cursor/rules/project.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ alwaysApply: true
77
# Project layout
88

99
- **Repository root**: Plugin sources — `index.js`, `worker.mjs`, `worker-log.mjs`, `openclaw-resolve.mjs`, `package.json`, `openclaw.plugin.json`, `README.md`, `CHANGELOG.md`, `LICENSE`. **`node-edge-tts`** is a **dependency**; **`openclaw`** is an **optional** peer. Keep **`package.json`** and **`openclaw.plugin.json`** `version` fields identical; run **`npm run check-version`** or **`npm run release`** to verify.
10-
- **User docs**: Root **`README.md`** is the install and configuration guide; **`CHANGELOG.md`** is the release history. **`npm run release`** copies both (and other bundle files) into **`release/discord-tts-attacher/`** (gitignored) and mirrors **`README.md`** as **`release/README.md`**.
10+
- **User docs**: Root **`README.md`** is the install and configuration guide; **`CHANGELOG.md`** is the release history. **`npm run release`** copies both (and other bundle files) into **`release/discord-tts-attacher/`** (gitignored).
1111
- **Live OpenClaw plugin**: Typically **`~/.openclaw/extensions/discord-tts-attacher/`** with **`npm install`** there (**`node-edge-tts`** from `dependencies`; optional **`openclaw`** only if you need the npm SDK fallback). Shared maintainer workflow: **`npm run release`**, ClawHub / manual copy — see **`DEVELOPMENT.md`**.
1212
- **Owner-only (ignore for default assistant work)**: **`scripts/sync-to-live-plugin.sh`** is not part of the shared workflow and is not referenced in **README** or **DEVELOPMENT**. It exists only for this repo owner’s local machine (run with **`bash`** if needed). **Do not** open, edit, or refactor it unless the user explicitly asks. Listed in **`.cursorignore`** so Cursor downweights it.

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Here **`synthTimeoutMs`** is the synthesis estimate above. So **`pickupTimeoutMs
6161
Optional: **`npm install`** in the root for **`node-edge-tts`** and maintainer scripts. **`openclaw-resolve.mjs`** loads **`definePluginEntry`** from **`dist/plugin-sdk/plugin-entry.js`** and picks **`sendMessageDiscord`** from **`dist/extensions/discord/runtime-api.js`** (OpenClaw **2026.4+**) or **`dist/plugin-sdk/discord.js`** (legacy). Optional **`npm install openclaw`** if you need the **`openclaw/package.json`** fallback outside a gateway. The **gateway** still uses **`node_modules`** inside **`~/.openclaw/extensions/discord-tts-attacher/`**.
6262

6363
2. **`npm run release`**
64-
Refreshes the minimal plugin bundle (plugin sources only, no `node_modules`, no `scripts/`). Copies the root **`README.md`** into that bundle **and** mirrors it one level up as **`release/README.md`**. **`CHANGELOG.md`** is included in the bundle via rsync. The command prints the bundle output directory when it finishes. That output tree is **not committed to git** and is **omitted from ClawHub “publish whole repo” uploads**; generate it whenever you need a zip or a **`clawhub package publish .`** target.
64+
Refreshes the minimal plugin bundle (plugin sources only, no `node_modules`, no `scripts/`). Copies the root **`README.md`** into that bundle. **`CHANGELOG.md`** is included in the bundle via rsync. The command prints the bundle output directory when it finishes. That output tree is **not committed to git** and is **omitted from ClawHub “publish whole repo” uploads**; generate it whenever you need a zip or a **`clawhub package publish .`** target.
6565

6666
3. **ClawHub (`clawhub package publish`)**
6767
Code plugins need **`openclaw.compat.pluginApi`** and **`openclaw.build.openclawVersion`** in **`package.json`** (ClawHub rejects uploads without them). Bump **`openclaw.build.openclawVersion`** / **`pluginSdkVersion`** when you verify against a newer OpenClaw release.

scripts/prepare-release.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ delete pkg.scripts;
3333
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');
3434
"
3535
cp -f "$ROOT/README.md" "$OUT/README.md"
36-
cp -f "$ROOT/README.md" "$ROOT/release/README.md"
3736
cp -f "$ROOT/index.js" "$OUT/index.js"
3837
cp -f "$ROOT/worker.mjs" "$OUT/worker.mjs"
3938
cp -f "$ROOT/worker-log.mjs" "$OUT/worker-log.mjs"

0 commit comments

Comments
 (0)