import{_ as l}from"./plugin-vue_export-helper-x3n3nnut.js";import{r as a,o as s,c as r,a as e,b as o,d as t,e as c}from"./app-DLdAQsjV.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),m={href:"https://visualstudio.microsoft.com/downloads/",target:"_blank",rel:"noopener noreferrer"},f=c("
Open Visual Studio Installer to complete Visual Studio installation - You need to install
.NET desktop development, Desktop development with C++ and Universal Windows Platform development components
Install Single-project MSIX Packaging Tools for VS 2022 provided by Microsoft in Visual Studio marketplaceUse git to clone the project https://github.com/DGP-Studio/Snap.Hutao.git to your local deviceSwitch git branch to developOpen project solution with your Visual Studio and then you are ready to go",5),g={id:"enable-debug",tabindex:"-1"},w=e("a",{class:"header-anchor",href:"#enable-debug","aria-hidden":"true"},"#",-1),k=e("code",null,"Sysinternals Suite",-1),S={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),A=e("li",null,"Run Snap Hutao client",-1),H=e("li",null,"Check DebugView output",-1),P={id:"start-pull-request",tabindex:"-1"},V=e("a",{class:"header-anchor",href:"#start-pull-request","aria-hidden":"true"},"#",-1),x=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"},I=e("a",{class:"header-anchor",href:"#test-binary-package","aria-hidden":"true"},"#",-1),j=e("p",null,[o("Once the code in updated in "),e("code",null,"develop"),o(" and "),e("code",null,"main"),o(" branches, a GitHub actions script will build the latest code to "),e("code",null,"Snap Hutao Alpha"),o(" package. You can find all build records in alpha actions pipeline.")],-1),B={href:"https://github.com/DGP-Automation/Hutao-Auto-Release/releases/download/certificate-ca/DGP_Studio_CA.crt",target:"_blank",rel:"noopener noreferrer"},N=e("code",null,"Trusted Root Certification Authorities",-1);function T(q,G){const n=a("ExternalLinkIcon"),i=a("HopeIcon");return s(),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(i,{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",m,[o("Visual Studio 2022 Community"),t(n)])]),f]),e("h2",g,[w,o(),t(i,{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 "),k,o(" from "),e("a",S,[o("Microsoft Store"),t(n)]),o(" or "),e("a",y,[o("Microsoft website"),t(n)])]),v,A,H]),e("h2",P,[V,o(),t(i,{icon:"iconfont icon-pull-request",size:"1.5rem",color:"rgb(130,80,223)"}),o(" Start Pull Request")]),e("ul",null,[x,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,[I,o(),t(i,{icon:"iconfont icon-build-package",size:"1.5rem",color:"rgb(254,189,105)"}),o(" Test Binary Package")]),j,e("p",null,[o("You need to install "),e("a",B,[o("Snap Hutao CA certificate"),t(n)]),o(" as "),N,o(" to allow Alpha versions be installed.")])])}const Y=l(d,[["render",T],["__file","contribute.html.vue"]]);export{Y as default};