From c1f8f1d9d0ea30a517ed41695c2cedcebd37c350 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 12 Jan 2026 10:14:24 +0000 Subject: [PATCH] chore: release 2026.1.11-2 --- CHANGELOG.md | 6 ++++++ apps/android/app/build.gradle.kts | 4 ++-- apps/ios/Sources/Info.plist | 4 ++-- apps/ios/Tests/Info.plist | 4 ++-- apps/macos/Sources/Clawdbot/Resources/Info.plist | 4 ++-- docs/platforms/mac/release.md | 14 +++++++------- package.json | 3 ++- scripts/postinstall.js | 14 ++++++++++++++ 8 files changed, 37 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1de6d39a2..579c623bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 2026.1.11-2 + +### Fixes +- Installer: ensure the CLI entrypoint is executable after npm installs. +- Packaging: include `dist/plugins/` in the npm package to avoid missing module errors. + ## 2026.1.11-1 ### Fixes diff --git a/apps/android/app/build.gradle.kts b/apps/android/app/build.gradle.kts index ef49b00f7..14e1e563a 100644 --- a/apps/android/app/build.gradle.kts +++ b/apps/android/app/build.gradle.kts @@ -21,8 +21,8 @@ android { applicationId = "com.clawdbot.android" minSdk = 31 targetSdk = 36 - versionCode = 202601111 - versionName = "2026.1.11-1" + versionCode = 202601112 + versionName = "2026.1.11-2" } buildTypes { diff --git a/apps/ios/Sources/Info.plist b/apps/ios/Sources/Info.plist index 9ff3c0537..33aa35afd 100644 --- a/apps/ios/Sources/Info.plist +++ b/apps/ios/Sources/Info.plist @@ -19,9 +19,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2026.1.11-1 + 2026.1.11-2 CFBundleVersion - 202601111 + 202601112 NSAppTransportSecurity NSAllowsArbitraryLoadsInWebContent diff --git a/apps/ios/Tests/Info.plist b/apps/ios/Tests/Info.plist index 22c08b7ff..b6aa2acf4 100644 --- a/apps/ios/Tests/Info.plist +++ b/apps/ios/Tests/Info.plist @@ -17,8 +17,8 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 2026.1.11-1 + 2026.1.11-2 CFBundleVersion - 202601111 + 202601112 diff --git a/apps/macos/Sources/Clawdbot/Resources/Info.plist b/apps/macos/Sources/Clawdbot/Resources/Info.plist index ceade8ae7..f1e8ae32c 100644 --- a/apps/macos/Sources/Clawdbot/Resources/Info.plist +++ b/apps/macos/Sources/Clawdbot/Resources/Info.plist @@ -15,9 +15,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2026.1.11-1 + 2026.1.11-2 CFBundleVersion - 202601111 + 202601112 CFBundleIconFile Clawdbot CFBundleURLTypes diff --git a/docs/platforms/mac/release.md b/docs/platforms/mac/release.md index 510fd9ef3..52d98fd3b 100644 --- a/docs/platforms/mac/release.md +++ b/docs/platforms/mac/release.md @@ -29,17 +29,17 @@ Notes: # From repo root; set release IDs so Sparkle feed is enabled. # APP_BUILD must be numeric + monotonic for Sparkle compare. BUNDLE_ID=com.clawdbot.mac \ -APP_VERSION=2026.1.11-1 \ +APP_VERSION=2026.1.11-2 \ APP_BUILD="$(git rev-list --count HEAD)" \ BUILD_CONFIG=release \ SIGN_IDENTITY="Developer ID Application: Peter Steinberger (Y5PE65HELJ)" \ scripts/package-mac-app.sh # Zip for distribution (includes resource forks for Sparkle delta support) -ditto -c -k --sequesterRsrc --keepParent dist/Clawdbot.app dist/Clawdbot-2026.1.11-1.zip +ditto -c -k --sequesterRsrc --keepParent dist/Clawdbot.app dist/Clawdbot-2026.1.11-2.zip # Optional: also build a styled DMG for humans (drag to /Applications) -scripts/create-dmg.sh dist/Clawdbot.app dist/Clawdbot-2026.1.11-1.dmg +scripts/create-dmg.sh dist/Clawdbot.app dist/Clawdbot-2026.1.11-2.dmg # Recommended: build + notarize/staple zip + DMG # First, create a keychain profile once: @@ -47,26 +47,26 @@ scripts/create-dmg.sh dist/Clawdbot.app dist/Clawdbot-2026.1.11-1.dmg # --apple-id "" --team-id "" --password "" NOTARIZE=1 NOTARYTOOL_PROFILE=clawdbot-notary \ BUNDLE_ID=com.clawdbot.mac \ -APP_VERSION=2026.1.11-1 \ +APP_VERSION=2026.1.11-2 \ APP_BUILD="$(git rev-list --count HEAD)" \ BUILD_CONFIG=release \ SIGN_IDENTITY="Developer ID Application: Peter Steinberger (Y5PE65HELJ)" \ scripts/package-mac-dist.sh # Optional: ship dSYM alongside the release -ditto -c -k --keepParent apps/macos/.build/release/Clawdbot.app.dSYM dist/Clawdbot-2026.1.11-1.dSYM.zip +ditto -c -k --keepParent apps/macos/.build/release/Clawdbot.app.dSYM dist/Clawdbot-2026.1.11-2.dSYM.zip ``` ## Appcast entry Use the release note generator so Sparkle renders formatted HTML notes: ```bash -SPARKLE_PRIVATE_KEY_FILE=/Users/steipete/Library/CloudStorage/Dropbox/Backup/Sparkle/ed25519-private-key scripts/make_appcast.sh dist/Clawdbot-2026.1.11-1.zip https://raw.githubusercontent.com/clawdbot/clawdbot/main/appcast.xml +SPARKLE_PRIVATE_KEY_FILE=/Users/steipete/Library/CloudStorage/Dropbox/Backup/Sparkle/ed25519-private-key scripts/make_appcast.sh dist/Clawdbot-2026.1.11-2.zip https://raw.githubusercontent.com/clawdbot/clawdbot/main/appcast.xml ``` Generates HTML release notes from `CHANGELOG.md` (via [`scripts/changelog-to-html.sh`](https://github.com/clawdbot/clawdbot/blob/main/scripts/changelog-to-html.sh)) and embeds them in the appcast entry. Commit the updated `appcast.xml` alongside the release assets (zip + dSYM) when publishing. ## Publish & verify -- Upload `Clawdbot-2026.1.11-1.zip` (and `Clawdbot-2026.1.11-1.dSYM.zip`) to the GitHub release for tag `v2026.1.11-1`. +- Upload `Clawdbot-2026.1.11-2.zip` (and `Clawdbot-2026.1.11-2.dSYM.zip`) to the GitHub release for tag `v2026.1.11-2`. - Ensure the raw appcast URL matches the baked feed: `https://raw.githubusercontent.com/clawdbot/clawdbot/main/appcast.xml`. - Sanity checks: - `curl -I https://raw.githubusercontent.com/clawdbot/clawdbot/main/appcast.xml` returns 200. diff --git a/package.json b/package.json index 3e938a870..3c9fee8d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clawdbot", - "version": "2026.1.11-1", + "version": "2026.1.11-2", "description": "WhatsApp gateway CLI (Baileys web) with Pi RPC agent", "type": "module", "main": "dist/index.js", @@ -27,6 +27,7 @@ "dist/media/**", "dist/msteams/**", "dist/process/**", + "dist/plugins/**", "dist/sessions/**", "dist/providers/**", "dist/signal/**", diff --git a/scripts/postinstall.js b/scripts/postinstall.js index 6e3abb25f..4627b6dc1 100644 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -25,6 +25,18 @@ function getRepoRoot() { return path.resolve(here, ".."); } +function ensureExecutable(targetPath) { + if (process.platform === "win32") return; + if (!fs.existsSync(targetPath)) return; + try { + const mode = fs.statSync(targetPath).mode & 0o777; + if (mode & 0o100) return; + fs.chmodSync(targetPath, 0o755); + } catch (err) { + console.warn(`[postinstall] chmod failed: ${err}`); + } +} + function extractPackageName(key) { if (key.startsWith("@")) { const idx = key.indexOf("@", 1); @@ -213,6 +225,8 @@ function main() { const repoRoot = getRepoRoot(); process.chdir(repoRoot); + ensureExecutable(path.join(repoRoot, "dist", "entry.js")); + if (!shouldApplyPnpmPatchedDependenciesFallback()) { return; }