mirror of
https://github.com/m5stack/CardputerZero-AppBuilder.git
synced 2026-05-20 11:51:57 -07:00
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) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
0d6edec3e7
commit
6565e542ee
@@ -0,0 +1,83 @@
|
||||
name: Build Tauri App
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, dev]
|
||||
tags: ["v*"]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- platform: ubuntu-22.04
|
||||
target: linux
|
||||
- platform: macos-latest
|
||||
target: macos
|
||||
- platform: windows-latest
|
||||
target: windows
|
||||
|
||||
runs-on: ${{ matrix.platform }}
|
||||
timeout-minutes: 30
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Rust stable
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Rust cache
|
||||
uses: swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: src-tauri -> target
|
||||
|
||||
- name: Install Linux dependencies
|
||||
if: matrix.target == 'linux'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
libwebkit2gtk-4.1-dev \
|
||||
libappindicator3-dev \
|
||||
librsvg2-dev \
|
||||
patchelf
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
|
||||
- name: Install frontend dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build Tauri app
|
||||
uses: tauri-apps/tauri-action@v0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tagName: ${{ github.ref_type == 'tag' && github.ref_name || '' }}
|
||||
releaseName: ${{ github.ref_type == 'tag' && format('CardputerZero AppBuilder {0}', github.ref_name) || '' }}
|
||||
releaseBody: "See the assets below to download and install."
|
||||
releaseDraft: ${{ github.ref_type == 'tag' }}
|
||||
prerelease: false
|
||||
|
||||
- name: Upload artifacts
|
||||
if: github.ref_type != 'tag'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: cardputerzero-appbuilder-${{ matrix.target }}
|
||||
path: |
|
||||
src-tauri/target/release/bundle/deb/*.deb
|
||||
src-tauri/target/release/bundle/appimage/*.AppImage
|
||||
src-tauri/target/release/bundle/dmg/*.dmg
|
||||
src-tauri/target/release/bundle/macos/*.app
|
||||
src-tauri/target/release/bundle/msi/*.msi
|
||||
src-tauri/target/release/bundle/nsis/*.exe
|
||||
retention-days: 30
|
||||
@@ -1,4 +1,4 @@
|
||||
# M5Stack AppBuilder
|
||||
# CardputerZero AppBuilder
|
||||
|
||||
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.
|
||||
|
||||
@@ -77,7 +77,7 @@ Generated packages follow the [APPLaunch packaging conventions](https://github.c
|
||||
|
||||
## Future: Desktop IDE
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
## Related Projects
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# M5Stack AppBuilder — Desktop IDE Architecture
|
||||
# CardputerZero AppBuilder — Desktop IDE Architecture
|
||||
|
||||
## Overview
|
||||
|
||||
@@ -105,7 +105,7 @@ Tauri 2 desktop app (Rust backend + TypeScript/React frontend) for building, deb
|
||||
## Directory Structure
|
||||
|
||||
```
|
||||
M5Stack-AppBuilder/
|
||||
CardputerZero-AppBuilder/
|
||||
├── src-tauri/ # Rust backend
|
||||
│ ├── src/
|
||||
│ │ ├── main.rs # Tauri entry point
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>appbuilder-init</title>
|
||||
<title>CardputerZero AppBuilder</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "appbuilder-init",
|
||||
"name": "cardputerzero-appbuilder",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
||||
"productName": "M5Stack AppBuilder",
|
||||
"productName": "CardputerZero AppBuilder",
|
||||
"version": "0.1.0",
|
||||
"identifier": "com.m5stack.appbuilder",
|
||||
"identifier": "com.m5stack.cardputerzero-appbuilder",
|
||||
"build": {
|
||||
"frontendDist": "../dist",
|
||||
"devUrl": "http://localhost:5173",
|
||||
@@ -12,7 +12,7 @@
|
||||
"app": {
|
||||
"windows": [
|
||||
{
|
||||
"title": "M5Stack AppBuilder",
|
||||
"title": "CardputerZero AppBuilder",
|
||||
"width": 1200,
|
||||
"height": 800,
|
||||
"resizable": true,
|
||||
|
||||
Reference in New Issue
Block a user