Files
Snap.Hutao.Docs/assets/quick-start.html-e3d0a341.js

2 lines
9.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{_ as c}from"./plugin-vue_export-helper-c27b6911.js";import{r as s,o as h,c as _,d as n,w as l,a as e,b as t,e as r}from"./app-a686e86a.js";const p={},v=r('<h1 id="快速开始" tabindex="-1"><a class="header-anchor" href="#快速开始" aria-hidden="true">#</a> 快速开始</h1><p>遵循这篇快速开始文档,你将可以快速地将胡桃工具箱设置为可用状态。</p><h2 id="最低系统要求" tabindex="-1"><a class="header-anchor" href="#最低系统要求" aria-hidden="true">#</a> 最低系统要求</h2><table><thead><tr><th>要求</th><th>规格</th></tr></thead><tbody><tr><td><strong>最低可运行系统版本</strong></td><td>Windows 10 Build 19045 (22H2)<br> Windows 11 Build 22621 (22H2)</td></tr><tr><td><strong>推荐系统版本</strong></td><td>Windows 11 Build 22621 (22H2) 或更高版本</td></tr><tr><td><strong>必要组件</strong></td><td>Windows Update, App Installer</td></tr><tr><td>可选组件</td><td>WebView2 Runtime</td></tr></tbody></table><p><strong>不支持的系统版本</strong></p><ol><li>LTSC 和 LTSB 版本系统由于不包含微软商店,不在支持列表中</li><li>Windows 10 Build 19041 亦可以安装, 但部分功能会因内核问题无法使用,故该版本下的胡桃工具箱问题将不会被处理</li><li>Windows Insider 预览版本的问题不会被处理</li></ol><h2 id="下载胡桃工具箱" tabindex="-1"><a class="header-anchor" href="#下载胡桃工具箱" aria-hidden="true">#</a> 下载胡桃工具箱</h2><h3 id="全新安装" tabindex="-1"><a class="header-anchor" href="#全新安装" aria-hidden="true">#</a> 全新安装</h3><p><strong>无论使用何种安装方式,应用包来源和注册授权都由微软商店管理</strong></p>',9),b=e("p",null,[t("微软商店链接:"),e("a",{href:"https://apps.microsoft.com/store/detail/snap-hutao/9PH4NXJ2JN52",target:"_blank",rel:"noopener noreferrer"},"Snap Hutao")],-1),f=e("p",null,"在 Windows 10 和 Windows 11 下你可以直接点击上面的按钮来下载胡桃工具箱",-1),w=e("li",null,"启动 PowerShell",-1),g=e("li",null,[t("执行命令 "),e("code",null,'winget install "Snap Hutao"')],-1),m=e("li",null,[t("访问胡桃工具箱"),e("a",{href:"https://github.com/DGP-Studio/Snap.Hutao/releases/latest/",target:"_blank",rel:"noopener noreferrer"},"最新发布页面")],-1),S=e("li",null,"下载 MSIX 应用包",-1),A=e("h3",{id:"从侧载版升级至商店版",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#从侧载版升级至商店版","aria-hidden":"true"},"#"),t(" 从侧载版升级至商店版")],-1),k=e("p",null,"如果你之前安装了 Snap Hutao 侧载版则需要先卸载旧版本再进行全新安装",-1),x=e("ul",null,[e("li",null,"只要不手动删除数据目录,你的数据不会受到影响")],-1),H=e("li",null,"按照上述方法全新安装商店版应用",-1),W=e("h3",{id:"更新胡桃工具箱",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#更新胡桃工具箱","aria-hidden":"true"},"#"),t(" 更新胡桃工具箱")],-1),X=e("p",null,[e("strong",null,"无论你使用何种方式安装了应用,你都可以选择任意的方式去更新它,不必选择和安装时一样的方法,因为微软商店是应用包唯一来源")],-1),I=e("ul",null,[e("li",null,"启动微软商店"),e("li",null,"点击左下角的库,查看到你目前已安装的全部应用"),e("li",null,"点击界面右上角的获取更新,你的应用将会被更新")],-1),N=e("p",null,[t("若点击获取更新后胡桃仍然没有获取到更新,则可以进入"),e("code",null,"Snap Hutao"),t("的"),e("a",{href:"(https://apps.microsoft.com/store/detail/snap-hutao/9PH4NXJ2JN52)"},"商店详情页面"),t(",等待信息加载完成来获取更新")],-1),V=e("ul",null,[e("li",null,"启动 PowerShell"),e("li",null,[t("执行命令 "),e("code",null,'winget upgrade "Snap Hutao"')]),e("li",null,"根据提示允许安装")],-1),B=e("ul",null,[e("li",null,[t("访问胡桃工具箱"),e("a",{href:"https://github.com/DGP-Studio/Snap.Hutao/releases/latest/",target:"_blank",rel:"noopener noreferrer"},"最新发布页面")]),e("li",null,"下载 MSIX 应用包"),e("li",null,"直接运行 MSIX 应用包以执行安装")],-1),C=r('<h2 id="安装可选组件" tabindex="-1"><a class="header-anchor" href="#安装可选组件" aria-hidden="true">#</a> 安装可选组件</h2><p>通过可选组件,胡桃工具箱可以通过系统级的环境来更方便地实现一些功能,它们不是强制要求的组件,但可以带来更好的体验</p><h3 id="webview2-运行时" tabindex="-1"><a class="header-anchor" href="#webview2-运行时" aria-hidden="true">#</a> WebView2 运行时</h3><p>WebView2 运行时由微软提供,其允许胡桃在程序内低开销地启用一个内置的浏览器。通过该组件,胡桃允许用户通过 WebView2 内置浏览器登录米游社账号。</p><p>在<a href="https://developer.microsoft.com/zh-cn/microsoft-edge/webview2/" target="_blank" rel="noopener noreferrer">微软官网</a>的底部,你可以找到<code>常青独立安装程序</code>,选择<code>x64</code>下载并根据提示安装即可</p><h2 id="添加第一个米游社账号" tabindex="-1"><a class="header-anchor" href="#添加第一个米游社账号" aria-hidden="true">#</a> 添加第一个米游社账号</h2><p>在进入胡桃工具箱主界面后,点击左下角文档按钮和设置按钮中间的账号面板。在弹出的米游社账号面板中,根据你的账号类型选择对应的登录按钮。</p><p>如果你的原神账号是米哈游的国服账号,需要在<code>米游社</code>类别内登录;如果你的原神账号是 HoYoverse 的国际服账号,需要在 <code>HoYoLAB</code> 类别内登录。</p><p>无论是国服账号还是国际服账号,你都有<code>网页登录</code>和<code>Cookie登录</code>两种登录方式</p>',9),M=e("p",null,[e("strong",null,"网页登录需要使用 Microsoft WebView2 运行时组件")],-1),P=e("ol",null,[e("li",null,[t("点击账号面板中的"),e("code",null,"网页登录"),t("按钮,胡桃将会通过 WebView2 打开米游社登录界面")]),e("li",null,"在该界面中登录你的米游社账号,登录成功后你将进入米游社通行证界面并看到登录账号的信息"),e("li",null,[t("点击程序主界面右上角的"),e("code",null,"我已登录"),t("按钮,胡桃工具箱会将当前账号添加进本地客户端,并在账号面板中显示出来")])],-1),J=e("p",null,[t("如果你能希望使用自己提取的米哈游通行证 Cookie 登录到胡桃工具箱,可以在登录面板中点击 "),e("code",null,"手动输入"),t(",并在弹出的窗口中输入包含 SToken 的 Cookie。 若你填入了一个有效的 Cookie在点击"),e("code",null,"确认"),t("后你将成功登录你的米游社账号并在账号面板中显示出来。")],-1),T=e("hr",null,null,-1),L=e("p",null,[e("em",null,[e("strong",null,"至此,你已经初步设置好了你的胡桃工具箱。你现在可以自由探索这个应用,你也可以在这个这个网站中找到胡桃的全部帮助文档。")])],-1);function y(z,R){const u=s("ms-store-badge"),a=s("RouterLink"),d=s("Tabs");return h(),_("div",null,[v,n(d,{id:"84",data:[{id:"使用微软商店安装"},{id:"使用 winget 安装"},{id:"使用 MSIX 安装包安装"}]},{title0:l(({value:i,isActive:o})=>[t("使用微软商店安装")]),title1:l(({value:i,isActive:o})=>[t("使用 winget 安装")]),title2:l(({value:i,isActive:o})=>[t("使用 MSIX 安装包安装")]),tab0:l(({value:i,isActive:o})=>[n(u,{productid:"9PH4NXJ2JN52",theme:"auto"}),b,f]),tab1:l(({value:i,isActive:o})=>[e("ul",null,[w,g,e("li",null,[t("根据提示允许安装 "),e("ul",null,[e("li",null,[t("如果安装失败或显示缺少依赖包,或卡在安装框架阶段,请参考"),n(a,{to:"/zh/advanced/dependency.html"},{default:l(()=>[t("手动安装依赖项")]),_:1}),t("一文")])])])])]),tab2:l(({value:i,isActive:o})=>[e("ul",null,[m,S,e("li",null,[t("直接运行 MSIX 应用包以执行安装 "),e("ul",null,[e("li",null,[t("如果安装失败或显示缺少依赖包,或卡在安装框架阶段,请参考"),n(a,{to:"/zh/advanced/dependency.html"},{default:l(()=>[t("手动安装依赖项")]),_:1}),t("一文")])])])])]),_:1}),A,k,e("ul",null,[e("li",null,[t("按照文档提供的"),n(a,{to:"/zh/advanced/uninstall.html"},{default:l(()=>[t("卸载方法")]),_:1}),t("卸载侧载版应用 "),x]),H]),W,X,n(d,{id:"178",data:[{id:"使用微软商店更新"},{id:"使用 winget 更新"},{id:"使用 MSIX 安装包更新"}]},{title0:l(({value:i,isActive:o})=>[t("使用微软商店更新")]),title1:l(({value:i,isActive:o})=>[t("使用 winget 更新")]),title2:l(({value:i,isActive:o})=>[t("使用 MSIX 安装包更新")]),tab0:l(({value:i,isActive:o})=>[I,N]),tab1:l(({value:i,isActive:o})=>[V]),tab2:l(({value:i,isActive:o})=>[B]),_:1}),C,n(d,{id:"267",data:[{id:"网页登录"},{id:"Cookie 登录"}]},{title0:l(({value:i,isActive:o})=>[t("网页登录")]),title1:l(({value:i,isActive:o})=>[t("Cookie 登录")]),tab0:l(({value:i,isActive:o})=>[M,P]),tab1:l(({value:i,isActive:o})=>[J]),_:1}),T,L])}const G=c(p,[["render",y],["__file","quick-start.html.vue"]]);export{G as default};