mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-28 16:41:52 +08:00
refactor: 升级依赖版本并优化构建系统
- 升级核心依赖 (axum 0.8, tower-http 0.6, alsa 0.11 等) - 简化交叉编译配置,切换至 Debian 11 提高兼容性 - 新增 Debian 包打包支持 (debuerreotype 模板) - 移除独立的 mjpeg 解码器,简化视频模块 - 静态链接 libx264/libx265/libopus 到二进制
This commit is contained in:
@@ -113,9 +113,9 @@ mod ffmpeg {
|
||||
path
|
||||
} else {
|
||||
match target_arch.as_str() {
|
||||
"x86_64" => "/opt/one-kvm-libs/x86_64-linux-gnu",
|
||||
"aarch64" => "/opt/one-kvm-libs/aarch64-linux-gnu",
|
||||
"arm" => "/opt/one-kvm-libs/armv7-linux-gnueabihf",
|
||||
"x86_64" => "/usr/local",
|
||||
"aarch64" => "/usr/aarch64-linux-gnu",
|
||||
"arm" => "/usr/arm-linux-gnueabihf",
|
||||
_ => "",
|
||||
}
|
||||
.to_string()
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "ventoy-img"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
description = "Create and manage Ventoy bootable IMG files without root or loop devices"
|
||||
license = "GPL-3.0"
|
||||
license = "GPL-2.0"
|
||||
|
||||
[dependencies]
|
||||
# CLI
|
||||
@@ -12,12 +12,6 @@ clap = { version = "4", features = ["derive"] }
|
||||
# Error handling
|
||||
thiserror = "1"
|
||||
|
||||
# Time handling
|
||||
chrono = "0.4"
|
||||
|
||||
# CRC32 for exFAT checksum
|
||||
crc32fast = "1"
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = "3"
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ fn main() -> Result<()> {
|
||||
|
||||
## 许可证
|
||||
|
||||
GPL-3.0
|
||||
GPL-2.0
|
||||
|
||||
## 致谢
|
||||
|
||||
|
||||
Reference in New Issue
Block a user