1
0
forked from bot/app
LiteyukiBot/assets/install.html-CtQehRKQ.js

10 lines
7.8 KiB
JavaScript
Raw Normal View History

import{_ as s,r as a,o as c,c as l,b as e,d as t,a as o,e as i}from"./app-IVBOTEFu.js";const r={},d=e("h2",{id:"开始安装",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#开始安装"},[e("span",null,[e("strong",null,"开始安装")])])],-1),p=e("h3",{id:"常规部署",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#常规部署"},[e("span",null,[e("strong",null,"常规部署")])])],-1),h={href:"https://git-scm.com/download/",target:"_blank",rel:"noopener noreferrer"},m=e("code",null,"Git",-1),u={href:"https://www.python.org/downloads/release/python-31010/",target:"_blank",rel:"noopener noreferrer"},v=e("code",null,"Python3.10+",-1),k=i(`<div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code><span class="token comment"># 克隆项目到本地轻雪使用Git进行版本管理该步骤为必要项</span>
<span class="token function">git</span> clone https://github.com/snowykami/LiteyukiBot <span class="token parameter variable">--depth</span><span class="token operator">=</span><span class="token number">1</span>
<span class="token comment"># 切换到Bot目录下</span>
<span class="token builtin class-name">cd</span> LiteyukiBot
<span class="token comment"># 安装依赖</span>
pip <span class="token function">install</span> <span class="token parameter variable">-r</span> requirements.txt
<span class="token comment"># 启动Bot</span>
python main.py
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><div class="hint-container tip"><p class="hint-container-title"></p><p>使使<code>python -m venv venv</code>使<code>venv\\Scripts\\activate</code></p></div><h3 id="使docker" tabindex="-1"><a class="header-anchor" href="#使docker"><span><strong>使Docker</strong></span></a></h3>`,3),_={href:"https://docs.docker.com/get-docker/",target:"_blank",rel:"noopener noreferrer"},y=e("code",null,"Docker",-1),g=e("li",null,[t(" "),e("code",null,"git clone https://github.com/snowykami/LiteyukiBot")],-1),b=e("li",null,[t(" "),e("code",null,"cd LiteyukiBot")],-1),f=e("li",null,[t(" "),e("code",null,"docker build -t liteyukibot .")],-1),w=e("li",null,[t(" "),e("code",null,"docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot")],-1),S=i('<div class="hint-container tip"><p class="hint-container-title"></p><p>Windows使<code>/path/to/LiteyukiBot</code><code>$(pwd)</code> <br> <code>20216:20216</code><code>20216</code></p></div><h3 id="使trss-scripts" tabindex="-1"><a class="header-anchor" href="#使trss-scripts"><span><strong>使TRSS Scripts</strong></span></a></h3>',2),x={href:"https://timerainstarsky.github.io/TRSS_Liteyuki/",target:"_blank",rel:"noopener noreferrer"},B=e("code",null,"Arch Linux",-1),L=i('<h2 id="" tabindex="-1"><a class="header-anchor" href="#"><span><strong></strong></span></a></h2><ul><li>Windows<code>Windows10+</code>/<code>Windows Server 2019+</code></li><li>LinuxPython3.10+<code>Ubuntu 20.04+</code>(<s>b CentOS</s>)</li><li>CPU: <code>1vCPU</code></li><li>: Bot<code>300~500MB</code><code>chromium</code> <code>node</code><code>1GB</code></li><li>: <code>1GB</code></li></ul><div class="hint-container warning"><p class="hint-container-title"></p><p>使<code>path/to/python -m pip install -r requirements.txt</code><code>path/to/python</code>Python</p></div><div class="hint-container warning"><p class="hint-container-title"></p><p>GitGit使</p></div><h4 id="" tabindex="-1"><a class="header-anchor" href="#"><span><a href="/deployment/fandq"></a></span></a></h4>',5);function T(D,P){const n=a("ExternalLinkIcon");return c(),l("div",null,[d,p,e("ol",null,[e("li",null,[t(" "),e("a",h,[m,o(n)]),t(" "),e("a",u,[v,o(n)]),t(" ")])]),k,e("ol",null,[e("li",null,[t(" "),e("a",_,[y,o(n)])]),g,b,f,w]),S,e("p",null,[e("a",x,[t("TRSS_Liteyuki"),o(n)]),t("TRSSLiteyukiBot使"),B]),L])}const N=s(r,[["render",T],["__file","install.html.vue"]]),C=JSON.parse('{"path":"/deployment/install.html","title":"","lang":"zh-CN","frontmatter":{"title":"","icon":"download","order":1,"category":"使","tag":[""],"description":" Git Python3.10+ 使使python -m ven