Deploying to gh-pages from @ DGP-Studio/Snap.Hutao.Docs@d32a43e96f 🚀

This commit is contained in:
Masterain98
2023-10-17 23:32:49 +00:00
parent 5b317a41f6
commit bbf726460c
182 changed files with 329 additions and 275 deletions

View File

@@ -0,0 +1 @@
import{_ as l}from"./plugin-vue_export-helper-c27b6911.js";import{r as i,o as r,c as a,a as e,b as o,d as t,e as c}from"./app-77df1e3e.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=c("<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></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=e("h2",{id:"开启-debug",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#开启-debug","aria-hidden":"true"},"#"),o(" 开启 Debug")],-1),S={href:"https://www.microsoft.com/store/productid/9P7KNL5RWT25",target:"_blank",rel:"noopener noreferrer"},k={href:"https://learn.microsoft.com/zh-cn/sysinternals/downloads/sysinternals-suite",target:"_blank",rel:"noopener noreferrer"},w=e("code",null,"Sysinternals Suite",-1),v=e("li",null,[o("从开始菜单或解压后的文件中找到 "),e("code",null,"DebugView"),o(" 并启动")],-1),H=e("li",null,"启动 Snap Hutao 主程序",-1),P=e("li",null,"观察 DebugView 的输出",-1),V={id:"发起-pull-request",tabindex:"-1"},x=e("a",{class:"header-anchor",href:"#发起-pull-request","aria-hidden":"true"},"#",-1),D=e("li",null,[o("所有不是从项目其它分支发起的 Pull Request 都只被允许合并进 "),e("code",null,"develop"),o(" 分支")],-1),E={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"},I=e("code",null,"main",-1),q={id:"测试打包程序",tabindex:"-1"},A=e("a",{class:"header-anchor",href:"#测试打包程序","aria-hidden":"true"},"#",-1),C=e("code",null,"develop",-1),G=e("code",null,"main",-1),N=e("code",null,"Snap Hutao Alpha",-1),B=e("code",null,"pre-release",-1),y={href:"https://github.com/DGP-Studio/Snap.Hutao/releases",target:"_blank",rel:"noopener noreferrer"},z={href:"https://github.com/DGP-Studio/Snap.Hutao/releases/download/2023.10.3.1/Snap.Hutao.CI.cer",target:"_blank",rel:"noopener noreferrer"},R=e("p",null,"*如果在最新的发布中没有包含程序安装包附件,则意味着它仍然处于上传过程中。",-1);function T(L,M){const n=i("ExternalLinkIcon"),s=i("HopeIcon");return r(),a("div",null,[u,h,e("p",null,[o("你可以在 GitHub 上查看所有当前仍然"),e("a",_,[o("未解决的问题"),t(n)])]),e("h2",p,[f,o(),t(s,{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]),g,e("ol",null,[e("li",null,[o("从"),e("a",S,[o("微软商店"),t(n)]),o("或"),e("a",k,[o("微软官网"),t(n)]),o("下载并安装 "),w]),v,H,P]),e("h2",V,[x,o(),t(s,{icon:"iconfont icon-pull-request",size:"1.5rem"}),o(" 发起 Pull Request")]),e("ul",null,[D,e("li",null,[o("如果你提交的代码与已有的 issue 相关,请使用请使用"),e("a",E,[o("关键词"),t(n)]),o(" 将你的 PR 与相关的 issue 关联起来。这样当你的 PR 最终被合并进 "),I,o(" 主分支时,这些 issue 将被自动关闭。")])]),e("h2",q,[A,o(),t(s,{icon:"iconfont icon-build-package",size:"1.5rem"}),o(" 测试打包程序")]),e("p",null,[o("一旦你的代码被合并进 "),C,o(" 和 "),G,o(" 分支,一个 Azure Pipeline CI 流水线脚本将运行起来以构建所在分支的最新代码,并以 "),N,o(" 命名。 当该测试包打包完成后,它将被以 "),B,o(" 的形式发布在 "),e("a",y,[o("GitHub 发布页面"),t(n)]),o("上。")]),e("p",null,[o("你需要安装 "),e("a",z,[o("Snap.Hutao.CI.cer"),t(n)]),o(" 证书到你的本地设备上以允许你安装测试版安装包。")]),R])}const F=l(d,[["render",T],["__file","contribute.html.vue"]]);export{F as default};