# HtmlRunner
**Repository Path**: 9658065/html-runner
## Basic Information
- **Project Name**: HtmlRunner
- **Description**: 让Html文件EXE一样运行,将HTML应用打包为原生可执行程序的跨平台解决方案,基于Rust的wry框架实现。
- **Primary Language**: Rust
- **License**: GPL-3.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2025-01-08
- **Last Updated**: 2025-03-26
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Colt Html Runner
#### 项目简介
将HTML应用打包为原生可执行程序的跨平台解决方案,基于Rust的wry框架实现。
#### 主要特性
- 🚀 基于Web技术构建原生GUI应用
- 🔒 内置安全的自定义协议处理
- 🖥️ 支持Windows/macOS/Linux多平台
- ⚡ 高性能资源加载与缓存机制
- 🛠️ 可配置窗口参数(尺寸、图标、标题)
#### 快速开始
```bash
# 克隆仓库
git clone https://gitee.com/your-repo/html-runner.git
cd html-runner
# 运行示例
cargo run --release
# 打包应用
cargo build --release
# 打包32位应用
cargo build --release --target i686-pc-windows-msvc
```
#### 配置文件
在项目根目录创建 config/app.toml :
```toml
[window]
width = 1280
height = 720
title = "我的应用"
[option]
entry = "public" # 静态资源目录
```
#### 发布应用
```bash
# 编译生产版本
cargo build --release
# 生成安装包 (Windows)
cargo install cargo-wix
cargo wix init
cargo wix
```
#### 开发指南
1. 将HTML/CSS/JS文件放入 public 目录
#### 贡献协议
欢迎提交Issue和PR!请遵循:
1. 新功能开发请创建特性分支
2. 提交前运行 cargo fmt 和 cargo clippy
3. 更新相关文档说明
```plaintext
修改说明:
1. 突出项目技术特点和使用场景
2. 添加可执行的配置示例
3. 明确构建和打包流程
4. 提供实际开发指引
5. 保持Gitee平台要求的文档结构
```