feat: upgrade to version 2.0.0-alpha with mainstream dependencies

- Update application version to 2.0.0-alpha
- Update application name to 'Ambient Light Control'
- Upgrade Node.js requirement to >=22.0.0 (current LTS)
- Upgrade pnpm requirement to >=10.0.0 (current stable)
- Update all GitHub Actions workflows to use Node.js 22 and pnpm 10
- Update README.md with current version requirements
- Add comprehensive project metadata to package.json
- Remove obsolete src-tauri/src-tauri directory structure
- Update Cargo.toml with proper project information
This commit is contained in:
2025-07-09 20:05:38 +08:00
parent a49306517e
commit ca8d4a3d36
30 changed files with 87 additions and 172 deletions

View File

@ -43,13 +43,13 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: 'npm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8
version: 10
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable

View File

@ -25,13 +25,13 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: 'npm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8
version: 10
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
@ -85,12 +85,12 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8
version: 10
- name: Install frontend dependencies
run: pnpm install

View File

@ -24,12 +24,12 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8
version: 10
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
@ -86,12 +86,12 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8
version: 10
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable

View File

@ -110,13 +110,13 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: 'npm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8
version: 10
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable

View File

@ -56,12 +56,13 @@ A desktop application built with Tauri 2.0 for ambient light control, supporting
2. **Install Node.js and pnpm**
```bash
# Install Node.js (recommended using nvm)
# Install Node.js 22 LTS (recommended using nvm)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install node
nvm install 22
nvm use 22
# Install pnpm
npm install -g pnpm
# Install pnpm 10+
npm install -g pnpm@latest
```
3. **Install Tauri CLI**

View File

@ -1,7 +1,26 @@
{
"name": "test-demo",
"version": "0.0.0",
"description": "",
"name": "display-ambient-light",
"version": "2.0.0-alpha",
"description": "A desktop application for controlling ambient lighting based on screen content, supporting WS2812B and SK6812 LED strips with real-time color synchronization.",
"author": "Ivan Li",
"homepage": "https://github.com/IvanLi-CN/display-ambient-light",
"repository": {
"type": "git",
"url": "https://github.com/IvanLi-CN/display-ambient-light.git"
},
"keywords": [
"ambient-light",
"led-control",
"screen-sync",
"ws2812b",
"sk6812",
"tauri",
"desktop-app"
],
"engines": {
"node": ">=22.0.0",
"pnpm": ">=10.0.0"
},
"scripts": {
"start": "vite",
"dev": "vite",

78
src-tauri/Cargo.lock generated
View File

@ -41,6 +41,45 @@ dependencies = [
"alloc-no-stdlib",
]
[[package]]
name = "ambient-light-control"
version = "2.0.0-alpha"
dependencies = [
"anyhow",
"color_space",
"core-foundation 0.9.4",
"core-graphics 0.22.3",
"coreaudio-rs",
"ddc-hi",
"dirs 5.0.1",
"display-info",
"env_logger",
"futures",
"futures-util",
"hex",
"image",
"itertools 0.10.5",
"log",
"mdns-sd",
"paris",
"percent-encoding",
"regex",
"screen-capture-kit",
"serde",
"serde_json",
"sha1",
"tauri",
"tauri-build",
"tauri-plugin-shell",
"time",
"tokio",
"tokio-stream",
"tokio-tungstenite",
"tokio-util",
"toml 0.7.8",
"url-build-parse",
]
[[package]]
name = "android-tzdata"
version = "0.1.1"
@ -4398,45 +4437,6 @@ dependencies = [
"winapi-util",
]
[[package]]
name = "test-demo"
version = "0.0.0"
dependencies = [
"anyhow",
"color_space",
"core-foundation 0.9.4",
"core-graphics 0.22.3",
"coreaudio-rs",
"ddc-hi",
"dirs 5.0.1",
"display-info",
"env_logger",
"futures",
"futures-util",
"hex",
"image",
"itertools 0.10.5",
"log",
"mdns-sd",
"paris",
"percent-encoding",
"regex",
"screen-capture-kit",
"serde",
"serde_json",
"sha1",
"tauri",
"tauri-build",
"tauri-plugin-shell",
"time",
"tokio",
"tokio-stream",
"tokio-tungstenite",
"tokio-util",
"toml 0.7.8",
"url-build-parse",
]
[[package]]
name = "thiserror"
version = "1.0.69"

View File

@ -1,10 +1,10 @@
[package]
name = "test-demo"
version = "0.0.0"
description = "A Tauri App"
authors = ["you"]
license = ""
repository = ""
name = "ambient-light-control"
version = "2.0.0-alpha"
description = "A desktop application for controlling ambient lighting based on screen content"
authors = ["Ivan Li"]
license = "MIT"
repository = "https://github.com/ivan/display-ambient-light"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,3 +0,0 @@
# Generated by Cargo
# will have compiled files and executables
/target/

View File

@ -1,26 +0,0 @@
[package]
name = "app"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
license = ""
repository = ""
default-run = "app"
edition = "2021"
rust-version = "1.60"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
tauri-build = { version = "1.5.6" }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.8.2" }
[features]
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes.
# DO NOT REMOVE!!
custom-protocol = [ "tauri/custom-protocol" ]

View File

@ -1,3 +0,0 @@
fn main() {
tauri_build::build()
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

View File

@ -1,8 +0,0 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
tauri::Builder::default()
.run(tauri::generate_context!())
.expect("error while running tauri application");
}

View File

@ -1,65 +0,0 @@
{
"build": {
"beforeBuildCommand": "npm run build",
"beforeDevCommand": "npm run dev",
"devPath": "http://localhost:4000",
"distDir": "../dist"
},
"package": {
"productName": "Tauri App",
"version": "0.1.0"
},
"tauri": {
"allowlist": {
"all": false
},
"bundle": {
"active": true,
"category": "DeveloperTool",
"copyright": "",
"deb": {
"depends": []
},
"externalBin": [],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "com.tauri.dev",
"longDescription": "",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": [],
"shortDescription": "",
"targets": "all",
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
}
},
"security": {
"csp": null
},
"updater": {
"active": false
},
"windows": [
{
"fullscreen": false,
"height": 600,
"resizable": true,
"title": "Tauri",
"width": 800
}
]
}
}

View File

@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2.0.0",
"productName": "test-demo",
"version": "0.0.1",
"productName": "Ambient Light Control",
"version": "2.0.0-alpha",
"identifier": "cc.ivanli.ambient-light.desktop",
"build": {
"beforeDevCommand": "pnpm dev",
@ -23,7 +23,7 @@
{
"fullscreen": false,
"resizable": true,
"title": "test-demo",
"title": "Ambient Light Control",
"width": 800,
"height": 600
}