windows portable loading ui (#8490)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2024-06-27 11:04:55 +08:00
committed by GitHub
parent ef06b7d5d0
commit 12d3c59172
6 changed files with 303 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ use std::{
use bin_reader::BinaryReader;
pub mod bin_reader;
#[cfg(windows)]
mod ui;
#[cfg(windows)]
const APP_METADATA: &[u8] = include_bytes!("../app_metadata.toml");
@@ -119,6 +121,11 @@ fn main() {
let click_setup = args.is_empty() && arg_exe.to_lowercase().ends_with("install.exe");
let quick_support = args.is_empty() && arg_exe.to_lowercase().ends_with("qs.exe");
#[cfg(windows)]
if args.is_empty() {
ui::setup();
}
let reader = BinaryReader::default();
if let Some(exe) = setup(
reader,