mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
2 lines
8.2 KiB
JavaScript
2 lines
8.2 KiB
JavaScript
import{_ as a,r as i,o as r,c as s,a as e,b as t,d as o,e as c}from"./app-S0Cbzm8W.js";const u={},d=e("h1",{id:"贡献你的代码",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#贡献你的代码"},[e("span",null,"贡献你的代码")])],-1),h=e("p",null,"胡桃工具箱使用 C# 和 .NET 框架开发桌面客户端和服务端。如果你愿意贡献你的代码,请阅读以下指导文档。",-1),p={href:"https://github.com/DGP-Studio/Snap.Hutao/issues?q=is%3Aissue+is%3Aopen+-label%3A%E5%B7%B2%E5%AE%8C%E6%88%90",target:"_blank",rel:"noopener noreferrer"},m={id:"设置-snap-hutao-项目",tabindex:"-1"},_={class:"header-anchor",href:"#设置-snap-hutao-项目"},g={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><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),f={id:"开启-debug",tabindex:"-1"},S={class:"header-anchor",href:"#开启-debug"},k={href:"https://www.microsoft.com/store/productid/9P7KNL5RWT25",target:"_blank",rel:"noopener noreferrer"},y={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,[t("从开始菜单或解压后的文件中找到 "),e("code",null,"DebugView"),t(" 并启动")],-1),D=e("li",null,"启动 Snap Hutao 主程序",-1),V=e("li",null,"观察 DebugView 的输出",-1),w={id:"发起-pull-request",tabindex:"-1"},G={class:"header-anchor",href:"#发起-pull-request"},H=e("li",null,[t("所有不是从项目其它分支发起的 Pull Request 都只被允许合并进 "),e("code",null,"develop"),t(" 分支")],-1),x={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"},C=e("code",null,"main",-1),T={id:"测试打包程序",tabindex:"-1"},z={class:"header-anchor",href:"#测试打包程序"},N=e("p",null,[t("一旦你的代码被合并进 "),e("code",null,"develop"),t(" 和 "),e("code",null,"main"),t(" 分支,一个 GitHub Actions 脚本将运行起来以构建所在分支的最新代码,并以 "),e("code",null,"Snap Hutao Alpha"),t(" 命名。")],-1),E={href:"https://github.com/DGP-Studio/Snap.Hutao.Docs/actions",target:"_blank",rel:"noopener noreferrer"},A=e("code",null,"受信任的根证书颁发机构",-1),q={href:"https://github.com/DGP-Automation/Hutao-Auto-Release/releases/download/certificate-ca/DGP_Studio_CA.crt",target:"_blank",rel:"noopener noreferrer"};function R(I,B){const n=i("ExternalLinkIcon"),l=i("HopeIcon");return r(),s("div",null,[d,h,e("p",null,[t("你可以在 GitHub 上查看所有当前仍然"),e("a",p,[t("未解决的问题"),o(n)])]),e("h2",m,[e("a",_,[e("span",null,[o(l,{icon:"iconfont icon-visual-studio",size:"1.5rem",color:"rgb(193,142,241)"}),t(" 设置 Snap.Hutao 项目")])])]),e("ol",null,[e("li",null,[t("下载并安装 "),e("a",g,[t("Visual Studio 2022 Community"),o(n)])]),b]),e("h2",f,[e("a",S,[e("span",null,[o(l,{icon:"iconfont icon-debug",size:"1.5rem",color:"rgb(73,156,84)"}),t(" 开启 Debug")])])]),e("ol",null,[e("li",null,[t("从"),e("a",k,[t("微软商店"),o(n)]),t("或"),e("a",y,[t("微软官网"),o(n)]),t("下载并安装 "),v]),P,D,V]),e("h2",w,[e("a",G,[e("span",null,[o(l,{icon:"iconfont icon-pull-request",size:"1.5rem",color:"rgb(130,80,223)"}),t(" 发起 Pull Request")])])]),e("ul",null,[H,e("li",null,[t("如果你提交的代码与已有的 issue 相关,请使用"),e("a",x,[t("关键词"),o(n)]),t("将你的 PR 与相关的 issue 关联起来。这样当你的 PR 最终被合并进 "),C,t(" 主分支时,这些 issue 将被自动关闭。")])]),e("h2",T,[e("a",z,[e("span",null,[o(l,{icon:"iconfont icon-build-package",size:"1.5rem",color:"rgb(254,189,105)"}),t(" 测试打包程序")])])]),N,e("p",null,[t("你可以在"),e("a",E,[t("alpha 流水线"),o(n)]),t("中找到全部的编译记录。")]),e("p",null,[e("strong",null,[t("你需要以 "),A,t(" 添加"),e("a",q,[t("DGP Studio CA 证书"),o(n)]),t("到你的本地设备上以允许操作系统安装测试版安装包。")])])])}const L=a(u,[["render",R],["__file","contribute.html.vue"]]),U=JSON.parse('{"path":"/zh/development/contribute.html","title":"贡献你的代码","lang":"zh-CN","frontmatter":{"category":["开源","开发"],"tag":["开发","GitHub"],"icon":"iconfont icon-code","order":3,"description":"贡献你的代码 胡桃工具箱使用 C# 和 .NET 框架开发桌面客户端和服务端。如果你愿意贡献你的代码,请阅读以下指导文档。 你可以在 GitHub 上查看所有当前仍然未解决的问题 下载并安装 Visual Studio 2022 Community 启动 Visual Studio Installer 以完成 Visual Studio 的安装流程 你...","head":[["link",{"rel":"alternate","hreflang":"en-us","href":"https://hut.ao/en/development/contribute.html"}],["link",{"rel":"alternate","hreflang":"id-id","href":"https://hut.ao/id/development/contribute.html"}],["link",{"rel":"alternate","hreflang":"ru-ru","href":"https://hut.ao/ru/development/contribute.html"}],["meta",{"property":"og:url","content":"https://hut.ao/zh/development/contribute.html"}],["meta",{"property":"og:site_name","content":"胡桃工具箱"}],["meta",{"property":"og:title","content":"贡献你的代码"}],["meta",{"property":"og:description","content":"贡献你的代码 胡桃工具箱使用 C# 和 .NET 框架开发桌面客户端和服务端。如果你愿意贡献你的代码,请阅读以下指导文档。 你可以在 GitHub 上查看所有当前仍然未解决的问题 下载并安装 Visual Studio 2022 Community 启动 Visual Studio Installer 以完成 Visual Studio 的安装流程 你..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:locale:alternate","content":"en-US"}],["meta",{"property":"og:locale:alternate","content":"id-ID"}],["meta",{"property":"og:locale:alternate","content":"ru-RU"}],["meta",{"property":"og:updated_time","content":"2024-02-22T10:04:56.000Z"}],["meta",{"property":"article:author","content":"DGP-Studio"}],["meta",{"property":"article:tag","content":"开发"}],["meta",{"property":"article:tag","content":"GitHub"}],["meta",{"property":"article:modified_time","content":"2024-02-22T10:04:56.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"贡献你的代码\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-02-22T10:04:56.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"DGP-Studio\\",\\"url\\":\\"https://github.com/DGP-Studio\\"}]}"],["link",{"rel":"alternate","type":"application/rss+xml","href":"https://hut.ao/zh/rss.xml","title":"胡桃工具箱 RSS Feed"}]]},"headers":[{"level":2,"title":"设置 Snap.Hutao 项目","slug":"设置-snap-hutao-项目","link":"#设置-snap-hutao-项目","children":[]},{"level":2,"title":"开启 Debug","slug":"开启-debug","link":"#开启-debug","children":[]},{"level":2,"title":"发起 Pull Request","slug":"发起-pull-request","link":"#发起-pull-request","children":[]},{"level":2,"title":"测试打包程序","slug":"测试打包程序","link":"#测试打包程序","children":[]}],"git":{"createdTime":1697095418000,"updatedTime":1708596296000,"contributors":[{"name":"Masterain","email":"i@irain.in","commits":6},{"name":"Mikachu2333","email":"mikachu.23333@zohomail.com","commits":1}]},"readingTime":{"minutes":2.01,"words":602},"filePathRelative":"zh/development/contribute.md","localizedDate":"2023年10月12日","autoDesc":true}');export{L as comp,U as data};
|