Skip to content

Commit 0ba8cc3

Browse files
committed
chore: bump version to v2.1.1, add macOS DMG build support
1 parent 8c6772b commit 0ba8cc3

3 files changed

Lines changed: 51 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,36 @@ jobs:
2929
- name: Build Vite (renderer)
3030
run: npx vite build
3131

32-
- name: Build & Publish Electron app
32+
- name: Build & Publish Electron app (Windows)
3333
env:
3434
GH_TOKEN: ${{ secrets.GH_TOKEN }}
3535
run: npx electron-builder --win --publish always
36+
37+
build-macos:
38+
name: Build macOS Release
39+
runs-on: macos-latest
40+
41+
steps:
42+
- name: Checkout code
43+
uses: actions/checkout@v4
44+
45+
- name: Setup Node.js
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: '20'
49+
cache: 'npm'
50+
51+
- name: Install dependencies
52+
run: npm ci
53+
54+
- name: Build TypeScript
55+
run: npx tsc -b
56+
57+
- name: Build Vite (renderer)
58+
run: npx vite build
59+
60+
- name: Build & Publish Electron app (macOS)
61+
env:
62+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
63+
CSC_IDENTITY_AUTO_DISCOVERY: false
64+
run: npx electron-builder --mac --publish always

package.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "lifemanager",
33
"private": true,
4-
"version": "2.1.0",
4+
"version": "2.1.1",
55
"main": "dist-electron/main.js",
66
"type": "module",
77
"author": "Claude Code",
@@ -92,6 +92,25 @@
9292
}
9393
]
9494
},
95+
"mac": {
96+
"identity": null,
97+
"target": [
98+
{
99+
"target": "dmg",
100+
"arch": [
101+
"x64",
102+
"arm64"
103+
]
104+
}
105+
],
106+
"publish": [
107+
{
108+
"provider": "github",
109+
"owner": "sjsjysfj",
110+
"repo": "LifeManager"
111+
}
112+
]
113+
},
95114
"nsis": {
96115
"oneClick": false,
97116
"perMachine": false,

src/components/UserOptionsModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const UserOptionsModal: React.FC<UserOptionsModalProps> = ({ visible, onClose, i
3838
const [form] = Form.useForm();
3939
const coreSpirit = useCoreSpirit();
4040
const [avatarUrl, setAvatarUrl] = useState<string | undefined>(undefined);
41-
const [appVersion, setAppVersion] = useState<string>('2.1.0');
41+
const [appVersion, setAppVersion] = useState<string>('2.1.1');
4242

4343
// Auto update states
4444
type UpdateStatus = 'idle' | 'checking' | 'available' | 'not-available' | 'downloading' | 'downloaded' | 'error';

0 commit comments

Comments
 (0)