Skip to content

Commit 6565e54

Browse files
eggflyclaude
andcommitted
Rename to CardputerZero AppBuilder and add Tauri CI/CD
- Update product name, identifier, and window title - Add build-tauri.yml: builds on Linux/macOS/Windows, creates GitHub release on tags - Update README, docs, package.json, index.html Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 0d6edec commit 6565e54

6 files changed

Lines changed: 92 additions & 9 deletions

File tree

.github/workflows/build-tauri.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Build Tauri App
2+
3+
on:
4+
push:
5+
branches: [main, dev]
6+
tags: ["v*"]
7+
pull_request:
8+
branches: [main]
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
build:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
include:
19+
- platform: ubuntu-22.04
20+
target: linux
21+
- platform: macos-latest
22+
target: macos
23+
- platform: windows-latest
24+
target: windows
25+
26+
runs-on: ${{ matrix.platform }}
27+
timeout-minutes: 30
28+
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
33+
- name: Install Rust stable
34+
uses: dtolnay/rust-toolchain@stable
35+
36+
- name: Rust cache
37+
uses: swatinem/rust-cache@v2
38+
with:
39+
workspaces: src-tauri -> target
40+
41+
- name: Install Linux dependencies
42+
if: matrix.target == 'linux'
43+
run: |
44+
sudo apt-get update
45+
sudo apt-get install -y \
46+
libwebkit2gtk-4.1-dev \
47+
libappindicator3-dev \
48+
librsvg2-dev \
49+
patchelf
50+
51+
- name: Setup Node
52+
uses: actions/setup-node@v4
53+
with:
54+
node-version: 22
55+
cache: npm
56+
57+
- name: Install frontend dependencies
58+
run: npm ci
59+
60+
- name: Build Tauri app
61+
uses: tauri-apps/tauri-action@v0
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
with:
65+
tagName: ${{ github.ref_type == 'tag' && github.ref_name || '' }}
66+
releaseName: ${{ github.ref_type == 'tag' && format('CardputerZero AppBuilder {0}', github.ref_name) || '' }}
67+
releaseBody: "See the assets below to download and install."
68+
releaseDraft: ${{ github.ref_type == 'tag' }}
69+
prerelease: false
70+
71+
- name: Upload artifacts
72+
if: github.ref_type != 'tag'
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: cardputerzero-appbuilder-${{ matrix.target }}
76+
path: |
77+
src-tauri/target/release/bundle/deb/*.deb
78+
src-tauri/target/release/bundle/appimage/*.AppImage
79+
src-tauri/target/release/bundle/dmg/*.dmg
80+
src-tauri/target/release/bundle/macos/*.app
81+
src-tauri/target/release/bundle/msi/*.msi
82+
src-tauri/target/release/bundle/nsis/*.exe
83+
retention-days: 30

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# M5Stack AppBuilder
1+
# CardputerZero AppBuilder
22

33
Online build system for [M5CardputerZero](https://docs.m5stack.com/) applications. Submit any public Git repository and get a ready-to-install `.deb` package — no local toolchain required.
44

@@ -77,7 +77,7 @@ Generated packages follow the [APPLaunch packaging conventions](https://github.c
7777

7878
## Future: Desktop IDE
7979

80-
M5Stack AppBuilder is planned to become a cross-platform desktop IDE (Windows, macOS, Linux) for building M5CardputerZero applications locally — a visual scaffold for beginners and hobbyists to create, build, and deploy apps to their devices.
80+
CardputerZero AppBuilder is planned to become a cross-platform desktop IDE (Windows, macOS, Linux) for building M5CardputerZero applications locally — a visual scaffold for beginners and hobbyists to create, build, and deploy apps to their devices.
8181

8282
## Related Projects
8383

docs/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# M5Stack AppBuilder — Desktop IDE Architecture
1+
# CardputerZero AppBuilder — Desktop IDE Architecture
22

33
## Overview
44

@@ -105,7 +105,7 @@ Tauri 2 desktop app (Rust backend + TypeScript/React frontend) for building, deb
105105
## Directory Structure
106106

107107
```
108-
M5Stack-AppBuilder/
108+
CardputerZero-AppBuilder/
109109
├── src-tauri/ # Rust backend
110110
│ ├── src/
111111
│ │ ├── main.rs # Tauri entry point

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>appbuilder-init</title>
7+
<title>CardputerZero AppBuilder</title>
88
</head>
99
<body>
1010
<div id="root"></div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "appbuilder-init",
2+
"name": "cardputerzero-appbuilder",
33
"private": true,
44
"version": "0.0.0",
55
"type": "module",

src-tauri/tauri.conf.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
3-
"productName": "M5Stack AppBuilder",
3+
"productName": "CardputerZero AppBuilder",
44
"version": "0.1.0",
5-
"identifier": "com.m5stack.appbuilder",
5+
"identifier": "com.m5stack.cardputerzero-appbuilder",
66
"build": {
77
"frontendDist": "../dist",
88
"devUrl": "http://localhost:5173",
@@ -12,7 +12,7 @@
1212
"app": {
1313
"windows": [
1414
{
15-
"title": "M5Stack AppBuilder",
15+
"title": "CardputerZero AppBuilder",
1616
"width": 1200,
1717
"height": 800,
1818
"resizable": true,

0 commit comments

Comments
 (0)