Skip to content

Commit de445ae

Browse files
hazeoneDigHuangvcfgvcursoragent
authored
Chore/build npm (#9)
Co-authored-by: DigHuang <114602213+DigHuang@users.noreply.github.com> Co-authored-by: Felix <24791380+vcfgv@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 0b7f1c7 commit de445ae

37 files changed

+7445
-1672
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ jobs:
2727

2828
- name: Setup pnpm
2929
uses: pnpm/action-setup@v4
30-
with:
31-
version: 10
3230

3331
- name: Install dependencies
3432
run: pnpm install --frozen-lockfile
@@ -49,8 +47,6 @@ jobs:
4947

5048
- name: Setup pnpm
5149
uses: pnpm/action-setup@v4
52-
with:
53-
version: 10
5450

5551
- name: Install dependencies
5652
run: pnpm install --frozen-lockfile
@@ -71,8 +67,6 @@ jobs:
7167

7268
- name: Setup pnpm
7369
uses: pnpm/action-setup@v4
74-
with:
75-
version: 10
7670

7771
- name: Install dependencies
7872
run: pnpm install --frozen-lockfile
@@ -97,8 +91,6 @@ jobs:
9791

9892
- name: Setup pnpm
9993
uses: pnpm/action-setup@v4
100-
with:
101-
version: 10
10294

10395
- name: Get pnpm store directory
10496
shell: bash

.github/workflows/release.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
name: Release
55

66
on:
7+
pull_request:
8+
branches:
9+
- main
710
push:
811
tags:
912
- 'v*'
@@ -43,8 +46,6 @@ jobs:
4346

4447
- name: Setup pnpm
4548
uses: pnpm/action-setup@v4
46-
with:
47-
version: 10
4849

4950
- name: Get pnpm store directory
5051
shell: bash
@@ -70,13 +71,13 @@ jobs:
7071
if: matrix.platform == 'mac'
7172
env:
7273
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73-
# For code signing (optional)
74-
# CSC_LINK: ${{ secrets.MAC_CERTS }}
75-
# CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTS_PASSWORD }}
76-
# For notarization (optional)
77-
# APPLE_ID: ${{ secrets.APPLE_ID }}
78-
# APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
79-
# APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
74+
# Code signing
75+
CSC_LINK: ${{ secrets.MAC_CERTS }}
76+
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTS_PASSWORD }}
77+
# Notarization
78+
APPLE_ID: ${{ secrets.APPLE_ID }}
79+
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
80+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
8081
run: pnpm run package:mac
8182

8283
# Windows specific steps

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,7 @@ resources/bin
5757
*.p12
5858
*.pem
5959
*.key
60+
61+
build/
62+
63+
.cursor/

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 ClawX Team
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

electron-builder.yml

Lines changed: 15 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,12 @@ extraResources:
2121
- "!icons/*.md"
2222
- "!icons/*.svg"
2323
- "!bin/**"
24-
# OpenClaw submodule - include only necessary files for runtime
25-
- from: openclaw/
24+
# OpenClaw package (node_modules copied separately by afterPack hook
25+
# because electron-builder respects .gitignore which excludes node_modules/)
26+
- from: build/openclaw/
2627
to: openclaw/
27-
filter:
28-
- "openclaw.mjs"
29-
- "package.json"
30-
- "dist/**/*"
31-
- "skills/**/*"
32-
- "extensions/**/*"
33-
- "scripts/run-node.mjs"
34-
- "!**/node_modules/**"
35-
- "!**/*.test.ts"
36-
- "!**/*.test.js"
37-
- "!**/test/**"
38-
- "!**/.git"
39-
- "!**/.github"
40-
- "!**/docs/**"
28+
29+
afterPack: ./scripts/after-pack.cjs
4130

4231
asar: true
4332
asarUnpack:
@@ -59,23 +48,19 @@ mac:
5948
icon: resources/icons/icon.icns
6049
target:
6150
- target: dmg
62-
arch:
63-
- universal
6451
- target: zip
65-
arch:
66-
- universal
6752
darkModeSupport: true
6853
hardenedRuntime: true
6954
gatekeeperAssess: false
7055
entitlements: entitlements.mac.plist
7156
entitlementsInherit: entitlements.mac.plist
72-
notarize: false # Set to true when you have Apple credentials
57+
notarize: true
7358
extendInfo:
7459
NSMicrophoneUsageDescription: ClawX requires microphone access for voice features
7560
NSCameraUsageDescription: ClawX requires camera access for video features
7661

7762
dmg:
78-
background: resources/dmg-background.png
63+
# background: resources/dmg-background.png
7964
icon: resources/icons/icon.icns
8065
iconSize: 100
8166
contents:
@@ -89,6 +74,9 @@ dmg:
8974

9075
# Windows Configuration
9176
win:
77+
forceCodeSigning: false
78+
verifyUpdateCodeSignature: false
79+
signAndEditExecutable: false
9280
extraResources:
9381
- from: resources/bin/win32-${arch}
9482
to: bin
@@ -97,11 +85,6 @@ win:
9785
- target: nsis
9886
arch:
9987
- x64
100-
- arm64
101-
publisherName: ClawX Inc.
102-
# For code signing, uncomment and configure:
103-
# certificateFile: path/to/certificate.pfx
104-
# certificatePassword: ${env.WIN_CSC_KEY_PASSWORD}
10588

10689
nsis:
10790
oneClick: false
@@ -141,10 +124,11 @@ linux:
141124
OpenClaw Gateway to provide intelligent automation and assistance
142125
across multiple messaging platforms.
143126
desktop:
144-
Name: ClawX
145-
Comment: AI Assistant powered by OpenClaw
146-
Categories: Utility;Network;
147-
Keywords: ai;assistant;automation;chat;
127+
entry:
128+
Name: ClawX
129+
Comment: AI Assistant powered by OpenClaw
130+
Categories: Utility;Network;
131+
Keywords: ai;assistant;automation;chat;
148132

149133
appImage:
150134
license: LICENSE

0 commit comments

Comments
 (0)