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 s}from"./plugin-vue_export-helper-c27b6911.js";import{r as i,o as l,c as r,a as e,b as o,d as t,e as c}from"./app-ad8938fe.js";const d={},u=e("h1",{id:"contribute-your-code",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#contribute-your-code","aria-hidden":"true"},"#"),o(" Contribute Your Code")],-1),h=e("p",null,"Snap Hutao is using C# and .NET Framework to develop both client and server. If you are willing to contribute your code to the project, please read the following guidelines.",-1),p={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"},_={id:"setup-snap-hutao-project",tabindex:"-1"},b=e("a",{class:"header-anchor",href:"#setup-snap-hutao-project","aria-hidden":"true"},"#",-1),g={href:"https://visualstudio.microsoft.com/downloads/",target:"_blank",rel:"noopener noreferrer"},m=c("<li>Open Visual Studio Installer to complete Visual Studio installation <ul><li>You need to install <code>.NET desktop development</code>, <code>Desktop development with C++</code> and <code>Universal Windows Platform development</code> components</li></ul></li><li>Install <code>Single-project MSIX Packaging Tools for VS 2022</code> provided by Microsoft in Visual Studio marketplace</li><li>Use git to clone the project <code>https://github.com/DGP-Studio/Snap.Hutao.git</code> to your local device</li><li>Switch git branch to <code>develop</code></li><li>Open project solution with your Visual Studio and then you are ready to go</li>",5),f={id:"enable-debug",tabindex:"-1"},k=e("a",{class:"header-anchor",href:"#enable-debug","aria-hidden":"true"},"#",-1),S=e("code",null,"Sysinternals Suite",-1),w={href:"https://www.microsoft.com/store/productid/9P7KNL5RWT25",target:"_blank",rel:"noopener noreferrer"},y={href:"https://learn.microsoft.com/en-us/sysinternals/downloads/sysinternals-suite",target:"_blank",rel:"noopener noreferrer"},v=e("li",null,[o("Locate and run "),e("code",null,"DebugView"),o(" program in the installed app list or unzipped folder")],-1),H=e("li",null,"Run Snap Hutao client",-1),P=e("li",null,"Check DebugView output",-1),x={id:"start-pull-request",tabindex:"-1"},I=e("a",{class:"header-anchor",href:"#start-pull-request","aria-hidden":"true"},"#",-1),V=e("li",null,[o("All code-related changes from authors' own branches are only allowed be merged to "),e("code",null,"develop"),o(" branch")],-1),D={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),E={id:"test-binary-package",tabindex:"-1"},A=e("a",{class:"header-anchor",href:"#test-binary-package","aria-hidden":"true"},"#",-1),j=e("code",null,"develop",-1),B=e("code",null,"main",-1),N=e("code",null,"Snap Hutao Alpha",-1),q={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"},G=e("p",null,"*If the latest release does not contain attached file, that means package is still in uploading process.",-1);function T(R,L){const n=i("ExternalLinkIcon"),a=i("HopeIcon");return l(),r("div",null,[u,h,e("p",null,[o("You can find all "),e("a",p,[o("unsolved opened issues"),t(n)]),o(" on GitHub")]),e("h2",_,[b,o(),t(a,{icon:"iconfont icon-visual-studio",size:"1.5rem",color:"rgb(193,142,241)"}),o(" Setup Snap.Hutao Project")]),e("ol",null,[e("li",null,[o("Download and install "),e("a",g,[o("Visual Studio 2022 Community"),t(n)])]),m]),e("h2",f,[k,o(),t(a,{icon:"iconfont icon-debug",size:"1.5rem",color:"rgb(73,156,84)"}),o(" Enable Debug")]),e("ol",null,[e("li",null,[o("Download and install "),S,o(" from "),e("a",w,[o("Microsoft Store"),t(n)]),o(" or "),e("a",y,[o("Microsoft website"),t(n)])]),v,H,P]),e("h2",x,[I,o(),t(a,{icon:"iconfont icon-pull-request",size:"1.5rem",color:"rgb(130,80,223)"}),o(" Start Pull Request")]),e("ul",null,[V,e("li",null,[o("Please use "),e("a",D,[o("keywords"),t(n)]),o(" to link your PR or commits with issues, so issues can be automatically closed once commits are merged into "),C,o(" branch.")])]),e("h2",E,[A,o(),t(a,{icon:"iconfont icon-build-package",size:"1.5rem",color:"rgb(254,189,105)"}),o(" Test Binary Package")]),e("p",null,[o("Once the code in updated in "),j,o(" and "),B,o(" branches, an Azure Pipeline CI script will build the latest code to "),N,o(" package. Once the package is built, it will be released on "),e("a",q,[o("GitHub Release page"),t(n)]),o(" as a pre-released package.")]),e("p",null,[o("You need to install "),e("a",z,[o("Snap.Hutao.CI.cer"),t(n)]),o(" certificate to your local machine, and then install the msix package in the release.")]),G])}const Y=s(d,[["render",T],["__file","contribute.html.vue"]]);export{Y as default};
|