Skip to content

Commit 068d6bf

Browse files
authored
Merge pull request #354 from dwall-rs/main
0.1.20
2 parents 9394cf2 + 022f5e4 commit 068d6bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1328
-633
lines changed

Cargo.lock

Lines changed: 36 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[workspace]
22
resolver = "2"
3-
members = ["src-tauri", "daemon"]
3+
members = ["daemon", "src-tauri"]
44

55
[workspace.package]
66
authors = ["thep0y"]
7-
version = "0.1.19"
7+
version = "0.1.20"
88
# homepage = ""
99
repository = "https://github.com/dwall-rs/dwall"
1010
license = "AGPL-3.0"

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<p align="center">
22
<img height="64" width="64" src="./src-tauri/icons/128x128.png" />
33
<br/>
4-
<a href="https://github.com/dwall-rs/dwall/releases/latest"><img src="https://img.shields.io/github/downloads/dwall-rs/dwall/total.svg?style=flat-square" alt="GitHub releases"></a>
4+
<a href="https://github.com/dwall-rs/dwall/releases/latest"><img src="https://img.shields.io/github/downloads/dwall-rs/dwall/total.svg?style=flat-square" alt="GitHub releases"/></a>
5+
<img src="https://img.shields.io/badge/Windows%2010-%230079d5.svg?style=for-the-badge&logo=Windows%2010&logoColor=white)" alt="Windows 10" height="20" />
6+
<img src="https://img.shields.io/badge/Windows%2011-%230079d5.svg?style=for-the-badge&logo=Windows%2011&logoColor=white)" alt="Windows 11" height="20" />
7+
<br/>
8+
English | <a href="./README.zh-CN.md">简体中文</a>
59
</p>
610

711
# DWALL
@@ -24,6 +28,9 @@ Recognizing this gap, DWALL was developed to provide an efficient alternative. I
2428

2529
This project is still in the development stage and may have some issues. If you encounter any problems during use, please feel free to raise an issue on the GitHub page.
2630

31+
> [!WARNING]
32+
> This program may not run on lightweight operating systems. If you are using a lightweight version of Windows and encounter errors, please do not submit an issue. Try running the program after installing the official Windows operating system.
33+
2734
## Usage Steps
2835

2936
1. Download the [latest DWALL executable](https://github.com/dwall-rs/dwall/releases/latest).

README.zh-CN.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<p align="center">
22
<img height="64" width="64" src="./src-tauri/icons/128x128.png" />
33
<br/>
4-
<a href="https://github.com/dwall-rs/dwall/releases/latest"><img src="https://img.shields.io/github/downloads/dwall-rs/dwall/total.svg?style=flat-square" alt="GitHub releases"></a>
4+
<a href="https://github.com/dwall-rs/dwall/releases/latest"><img src="https://img.shields.io/github/downloads/dwall-rs/dwall/total.svg?style=flat-square" alt="GitHub releases"/></a>
5+
<img src="https://img.shields.io/badge/Windows%2010-%230079d5.svg?style=for-the-badge&logo=Windows%2010&logoColor=white)" alt="Windows 10" height="20" />
6+
<img src="https://img.shields.io/badge/Windows%2011-%230079d5.svg?style=for-the-badge&logo=Windows%2011&logoColor=white)" alt="Windows 11" height="20" />
7+
<br/>
8+
<a href='./README.md'>English</a> | 简体中文
59
</p>
610

711
# DWALL
@@ -24,6 +28,9 @@ DWALL 是一款轻量级应用程序,旨在模拟 macOS 壁纸切换行为,
2428

2529
本项目仍然处于开发阶段,可能存在一些问题。如果您在使用过程中遇到任何问题,请随时在 GitHub 页面上提出问题。
2630

31+
> [!WARNING]
32+
> 本程序可能无法在精简版操作系统上运行,如果你使用的是精简版 Windows 操作系统,遇到错误时不需要提交 issue,安装官方 Windows 操作系统后再尝试运行本程序。
33+
2734
## 使用步骤
2835

2936
1.[releases](https://github.com/dwall-rs/dwall/releases/latest) 中下载最新的 DWALL 可执行文件。

bun.lockb

-2.99 KB
Binary file not shown.

daemon/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ edition.workspace = true
1010
repository.workspace = true
1111
license.workspace = true
1212

13+
[build-dependencies]
14+
winresource = { version = "0", optional = true }
15+
1316
[dependencies]
1417
serde_valid = "1"
1518
time = { version = "0", default-features = false, features = [
@@ -55,3 +58,4 @@ windows-result = { version = '0.3.1', features = ['std'] }
5558
[features]
5659
default = []
5760
log-color = ["tracing-subscriber/ansi"]
61+
build-script = ["winresource"]

daemon/build.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
use std::io;
2+
3+
fn main() -> io::Result<()> {
4+
#[cfg(feature = "build-script")]
5+
{
6+
use {std::env, winresource::WindowsResource};
7+
8+
if env::var_os("CARGO_CFG_WINDOWS").is_some() {
9+
WindowsResource::new()
10+
.set_icon("../src-tauri/icons/icon.ico")
11+
.set(
12+
"LegalCopyright",
13+
"Copyright (C) 2025 thep0y. All rights reserved.",
14+
)
15+
.compile()?;
16+
}
17+
}
18+
Ok(())
19+
}

package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,43 @@
11
{
22
"name": "dwall-settings",
3-
"version": "0.1.19",
3+
"version": "0.1.20",
44
"description": "",
55
"type": "module",
66
"scripts": {
77
"start": "vite",
8-
"build:vite": "cargo build -p dwall -r && vite build",
8+
"build:daemon": "cargo build -p dwall --release --features build-script",
9+
"build:daemon-debug": "cargo build -p dwall --features log-color,build-script",
10+
"build:daemon-stage": "cargo build -p dwall --release --features log-color,build-script",
11+
"build:vite": "bun run build:daemon && vite build",
912
"build": "tauri build",
1013
"serve": "vite preview",
1114
"tauri": "tauri",
12-
"start:dev": "cargo build -p dwall --features log-color && cross-env RUST_BACKTRACE=1 tauri dev --features log-color",
15+
"start:dev": "bun run build:daemon-debug && cross-env RUST_BACKTRACE=1 tauri dev --features log-color",
1316
"check": "biome check --write src",
1417
"dev": "bun run start:dev",
15-
"stage": "cargo build -r -p dwall --features log-color && cross-env RUST_BACKTRACE=1 tauri dev --features log-color devtools --release",
18+
"stage": "bun run build:daemon-stage && cross-env RUST_BACKTRACE=1 tauri dev --features log-color devtools --release",
1619
"test": "vitest"
1720
},
1821
"license": "MIT",
1922
"dependencies": {
2023
"@tauri-apps/api": "^2.4.1",
2124
"@tauri-apps/plugin-dialog": "^2.2.1",
22-
"@tauri-apps/plugin-process": "~2.0.0",
25+
"@tauri-apps/plugin-process": "~2.2.1",
2326
"@tauri-apps/plugin-shell": "~2.2.1",
2427
"@tauri-apps/plugin-updater": "^2.7.0",
25-
"alley-components": "^0.3.11",
26-
"fluent-solid": "^0.1.18",
28+
"fluent-solid": "^0.1.19",
2729
"solid-icons": "^1.1.0",
2830
"solid-js": "^1.9.5"
2931
},
3032
"devDependencies": {
3133
"@biomejs/biome": "^1.9.4",
3234
"@tauri-apps/cli": "^2.4.1",
33-
"@types/node": "^22.14.0",
35+
"@types/node": "^22.14.1",
3436
"cross-env": "^7.0.3",
35-
"jsdom": "^26.0.0",
37+
"jsdom": "^26.1.0",
3638
"sass": "^1.86.3",
3739
"typescript": "^5.8.3",
38-
"vite": "^6.2.5",
40+
"vite": "^6.2.6",
3941
"vite-plugin-solid": "^2.11.6",
4042
"vitest": "^3.1.1"
4143
}

src-tauri/Cargo.toml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dwall-settings"
3-
description = "A Tauri App"
3+
description = "Dwall settings"
44
edition.workspace = true
55
version.workspace = true
66
authors.workspace = true
@@ -9,13 +9,6 @@ license.workspace = true
99

1010
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1111

12-
[lib]
13-
# The `_lib` suffix may seem redundant but it is necessary
14-
# to make the lib name unique and wouldn't conflict with the bin name.
15-
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
16-
name = "dwall_settings_lib"
17-
crate-type = ["staticlib", "cdylib", "rlib"]
18-
1912
[build-dependencies]
2013
tauri-build = { version = "2", features = [] }
2114

@@ -46,7 +39,7 @@ windows = { workspace = true, features = [
4639
"Win32_Globalization",
4740
"Win32_System_Threading",
4841
] }
49-
rand = { version = "0", default-features = false, features = ["std"] }
42+
rand = { version = "0", default-features = false, features = ["thread_rng"] }
5043
tauri-plugin-shell = "2"
5144

5245
[target.'cfg(target_os = "windows")'.dependencies]

src-tauri/src/i18n/keys.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pub(super) const BUTTON_SELECT_FOLDER: &str = "button-select-folder";
77
pub(super) const BUTTON_STOP: &str = "button-stop";
88

99
// ---------------- help ----------------
10+
pub(super) const HELP_LAUNCH_AT_STARTUP: &str = "help-launch-at-startup";
1011
pub(super) const HELP_MANUALLY_SET_COORDINATES: &str = "help-manually-set-coordinates";
1112

1213
// ---------------- labels ----------------
@@ -37,6 +38,8 @@ pub(super) const MESSAGE_DISABLE_STARTUP_FAILED: &str = "message-disable-startup
3738
pub(super) const MESSAGE_DOWNLOAD_CANCELLED: &str = "message-download-cancelled";
3839
pub(super) const MESSAGE_DOWNLOAD_FAILED: &str = "message-download-faild";
3940
pub(super) const MESSAGE_FILE_SIZE_WARNING: &str = "message-file-size-warning";
41+
pub(super) const MESSAGE_GITHUB_MIRROR_TEMPLATE_UPDATED: &str =
42+
"message-github-mirror-template-updated";
4043
pub(super) const MESSAGE_GITHUB_STAR: &str = "message-github-star";
4144
pub(super) const MESSAGE_INVALID_NUMBER_INPUT: &str = "message-invalid-number-input";
4245
pub(super) const MESSAGE_LOCATION_PERMISSION: &str = "message-location-permission";
@@ -50,6 +53,7 @@ pub(super) const MESSAGE_SWITCH_AUTO_LIGHT_DARK_MODE_FAILED: &str =
5053
pub(super) const MESSAGE_SWITCHING_TO_MANUAL_COORDINATE_CONFIG: &str =
5154
"message-switching-to-manual-coordinate-config";
5255
pub(super) const MESSAGE_THEMES_DIRECTORY_MOVED: &str = "message-themes-directory-moved";
56+
pub(super) const MESSAGE_UPDATE_AVAILABLE: &str = "message-update-available";
5357
pub(super) const MESSAGE_UPDATE_FAILED: &str = "message-update-failed";
5458
pub(super) const MESSAGE_VERSION_IS_THE_LATEST: &str = "message-version-is-the-latest";
5559

0 commit comments

Comments
 (0)