mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{_ as l}from"./plugin-vue_export-helper-x3n3nnut.js";import{r as s,o as r,c,a as e,b as o,d as t,e as a}from"./app-lN74vCyq.js";const d={},u=e("h1",{id:"贡献你的代码",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#贡献你的代码","aria-hidden":"true"},"#"),o(" 贡献你的代码")],-1),h=e("p",null,"胡桃工具箱使用 C# 和 .NET 框架开发桌面客户端和服务端。如果你愿意贡献你的代码,请阅读以下指导文档。",-1),_={href:"https://github.com/DGP-Studio/Snap.Hutao/issues?q=is%3Aissue+is%3Aopen+-label%3A%E5%B7%B2%E4%BF%AE%E5%A4%8D+",target:"_blank",rel:"noopener noreferrer"},p={id:"设置-snap-hutao-项目",tabindex:"-1"},f=e("a",{class:"header-anchor",href:"#设置-snap-hutao-项目","aria-hidden":"true"},"#",-1),m={href:"https://visualstudio.microsoft.com/downloads/",target:"_blank",rel:"noopener noreferrer"},b=a("<li>启动 Visual Studio Installer 以完成 Visual Studio 的安装流程 <ul><li>你需要安装 <code>.NET desktop development</code>、 <code>Desktop development with C++</code> 和 <code>Universal Windows Platform development</code> 组件</li><li>它们的中文名分别是 <code>.NET 桌面开发</code>、<code>使用 C++ 的桌面开发</code>和<code>通用 Windows 平台开发</code></li></ul></li><li>安装 Visual Studio 商店中由 Microsoft 提供的 <code>Single-project MSIX Packaging Tools for VS 2022</code> 插件</li><li>使用 Git clone <code>https://github.com/DGP-Studio/Snap.Hutao.git</code> 到你的本地设备</li><li>将分支切换为 <code>develop</code></li><li>使用你的 Visual Studio 打开项目 solution,接下来你就可以开始编辑代码了</li>",5),g={id:"开启-debug",tabindex:"-1"},S=e("a",{class:"header-anchor",href:"#开启-debug","aria-hidden":"true"},"#",-1),k={href:"https://www.microsoft.com/store/productid/9P7KNL5RWT25",target:"_blank",rel:"noopener noreferrer"},w={href:"https://learn.microsoft.com/zh-cn/sysinternals/downloads/sysinternals-suite",target:"_blank",rel:"noopener noreferrer"},v=e("code",null,"Sysinternals Suite",-1),P=e("li",null,[o("从开始菜单或解压后的文件中找到 "),e("code",null,"DebugView"),o(" 并启动")],-1),V=e("li",null,"启动 Snap Hutao 主程序",-1),x=e("li",null,"观察 DebugView 的输出",-1),A={id:"发起-pull-request",tabindex:"-1"},D=e("a",{class:"header-anchor",href:"#发起-pull-request","aria-hidden":"true"},"#",-1),E=e("li",null,[o("所有不是从项目其它分支发起的 Pull Request 都只被允许合并进 "),e("code",null,"develop"),o(" 分支")],-1),H={href:"https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests",target:"_blank",rel:"noopener noreferrer"},G=e("code",null,"main",-1),N={id:"测试打包程序",tabindex:"-1"},q=e("a",{class:"header-anchor",href:"#测试打包程序","aria-hidden":"true"},"#",-1),C=e("p",null,[o("一旦你的代码被合并进 "),e("code",null,"develop"),o(" 和 "),e("code",null,"main"),o(" 分支,一个 GitHub Actions 脚本将运行起来以构建所在分支的最新代码,并以 "),e("code",null,"Snap Hutao Alpha"),o(" 命名。 你可以在 alpha 流水线中找到全部的编译记录。")],-1),B=e("code",null,"受信任的根证书颁发机构",-1),I={href:"https://github.com/DGP-Automation/Hutao-Auto-Release/releases/download/certificate-ca/DGP_Studio_CA.crt",target:"_blank",rel:"noopener noreferrer"};function R(T,y){const n=s("ExternalLinkIcon"),i=s("HopeIcon");return r(),c("div",null,[u,h,e("p",null,[o("你可以在 GitHub 上查看所有当前仍然"),e("a",_,[o("未解决的问题"),t(n)])]),e("h2",p,[f,o(),t(i,{icon:"iconfont icon-visual-studio",size:"1.5rem",color:"rgb(193,142,241)"}),o(" 设置 Snap.Hutao 项目")]),e("ol",null,[e("li",null,[o("下载并安装 "),e("a",m,[o("Visual Studio 2022 Community"),t(n)])]),b]),e("h2",g,[S,o(),t(i,{icon:"iconfont icon-debug",size:"1.5rem",color:"rgb(73,156,84)"}),o(" 开启 Debug")]),e("ol",null,[e("li",null,[o("从"),e("a",k,[o("微软商店"),t(n)]),o("或"),e("a",w,[o("微软官网"),t(n)]),o("下载并安装 "),v]),P,V,x]),e("h2",A,[D,o(),t(i,{icon:"iconfont icon-pull-request",size:"1.5rem",color:"rgb(130,80,223)"}),o(" 发起 Pull Request")]),e("ul",null,[E,e("li",null,[o("如果你提交的代码与已有的 issue 相关,请使用请使用"),e("a",H,[o("关键词"),t(n)]),o(" 将你的 PR 与相关的 issue 关联起来。这样当你的 PR 最终被合并进 "),G,o(" 主分支时,这些 issue 将被自动关闭。")])]),e("h2",N,[q,o(),t(i,{icon:"iconfont icon-build-package",size:"1.5rem",color:"rgb(254,189,105)"}),o(" 测试打包程序")]),C,e("p",null,[o("你需要以"),B,o("添加"),e("a",I,[o("DGP Studio CA 证书"),t(n)]),o("到你的本地设备上以允许操作系统安装测试版安装包。")])])}const W=l(d,[["render",R],["__file","contribute.html.vue"]]);export{W as default};
|