Update version to v0.1.3-rc.5.2.2

This commit is contained in:
wisdgod
2025-03-15 13:47:28 +08:00
parent 6e00911d7c
commit 6c184cdba3
51 changed files with 3338 additions and 1297 deletions

View File

@@ -5,9 +5,11 @@ use std::collections::HashMap;
#[cfg(not(any(feature = "use-minified")))]
use std::fs;
#[cfg(not(debug_assertions))]
#[cfg(feature = "__preview")]
use std::fs::File;
use std::io::Result;
#[cfg(not(debug_assertions))]
#[cfg(feature = "__preview")]
use std::io::{Read, Write};
#[cfg(not(any(feature = "use-minified")))]
use std::path::Path;
@@ -175,6 +177,7 @@ fn minify_assets() -> Result<()> {
* 只在 release 模式下执行debug/dev 模式下完全跳过
*/
#[cfg(not(debug_assertions))]
#[cfg(feature = "__preview")]
fn update_version() -> Result<()> {
let version_path = "VERSION";
// VERSION文件的监控已经在main函数中添加此处无需重复
@@ -222,6 +225,7 @@ fn update_version() -> Result<()> {
fn main() -> Result<()> {
// 更新版本号 - 只在 release 构建时执行
#[cfg(not(debug_assertions))]
#[cfg(feature = "__preview")]
update_version()?;
// Proto 文件处理