mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
* update * win10 uninstall * add notes about root * format * modify * update * Update FAQ.md * Update navbar * Update docs * Update Gacha-system-and-export-principal.md * correct * update * disambig * update * add warning for auto-start (need re-update) * update * add a tabular for showing differences in each way for sync * center tabular * switch to md format * update vs * add some * RE-update tabualr * update * correct * update * move web login to the end * Update game-launcher.md * Update docs * Update character-data.md --------- Co-authored-by: LinkChou <linkchou@yandex.com> Co-authored-by: Masterain <i@irain.in>
3.3 KiB
3.3 KiB
category, tag, icon, order, description, banner
| category | tag | icon | order | description | banner | ||||
|---|---|---|---|---|---|---|---|---|---|
|
|
iconfont icon-code | 3 | 胡桃工具箱使用 C# 和 .NET 框架开发桌面客户端和服务端。我们广泛地接受来自开源社区的反馈,如果你愿意贡献你的代码,请阅读本页的指导文档。 | https://opengraph.snapgenshin.cn/generate?url=https://hut.ao/zh/development/contribute.html |
贡献你的代码
胡桃工具箱使用 C# 和 .NET 框架 开发桌面客户端和服务端。我们广泛地接受来自开源社区的反馈,如果你愿意贡献你的代码,请阅读本页的指导文档。
你可以在 GitHub 上查看所有当前仍然未解决的问题。
设置 Snap.Hutao 项目
- 下载并安装 Visual Studio
- 你需要安装
.NET desktop development、Desktop development with C++和Windows application development组件 - 它们的中文名分别是
.NET 桌面开发、使用 C++ 的桌面开发和Windows 应用程序开发
- 你需要安装
- 安装 Visual Studio 商店中由 Microsoft 提供的
Single-project MSIX Packaging Tools for VS 2022插件 - 使用 Git clone
https://github.com/DGP-Studio/Snap.Hutao.git到你的本地设备 - 将分支切换为
develop - 使用你的 Visual Studio 打开项目 Solution,接下来你就可以开始编辑代码了
开启 Debug
- 从 微软商店 或 微软官网 下载并安装
Sysinternals Suite - 从开始菜单或解压后的文件中找到
DebugView并启动 - 启动 Snap Hutao 主程序
- 观察
DebugView的输出
发起 Pull Request
- 所有不是从项目其它分支发起的 Pull Request 都只被允许合并进
develop分支 - 如果你提交的代码与已有的 issue 相关,请使用关键词将你的 PR 与相关的 issue 关联起来。这样当你的 PR 最终被合并进
main主分支时,这些 issue 将被自动关闭。
测试打包程序
::: warning 如果你希望试用最新的 Alpha 版本,请先安装 DGP_Studio_CA.crt 到 受信任的根证书颁发机构 以安装测试版安装包 :::
一旦你进行了 push 操作,一个 GitHub Actions 脚本将自动运行以构建所在分支的最新解决方案。如果分支名称是 main、develop 或 feat 类分支,脚本还将自动上传其构建的 Snap Hutao Alpha 压缩包以供测试;其他分支仅验证可构建性而不提供上传。
你可以在 Alpha 流水线 中找到全部的编译记录。