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

10 lines
7.9 KiB
JavaScript
Raw Normal View History

import{_ as s,r as a,o as l,c,b as e,d as t,a as o,e as i}from"./app-vZ92a7EE.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"},u=e("code",null,"Git",-1),m={href:"https://www.python.org/downloads/release/python-31010/",target:"_blank",rel:"noopener noreferrer"},v=e("code",null,"Python3.10+",-1),_=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/LiteyukiStudio/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>Linux使<code>source .venv/bin/activate</code></p></div><h3 id="使docker" tabindex="-1"><a class="header-anchor" href="#使docker"><span><strong>使Docker</strong></span></a></h3>`,3),k={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/LiteyukiStudio/LiteyukiBot --depth=1")],-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),S=e("li",null,[t(" "),e("code",null,"docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot")],-1),x=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),w={href:"https://timerainstarsky.github.io/TRSS_Liteyuki/",target:"_blank",rel:"noopener noreferrer"},L=e("code",null,"Arch Linux",-1),B=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(G,P){const n=a("ExternalLinkIcon");return l(),c("div",null,[d,p,e("ol",null,[e("li",null,[t(" "),e("a",h,[u,o(n)]),t(" "),e("a",m,[v,o(n)]),t(" ")])]),_,e("ol",null,[e("li",null,[t(" "),e("a",k,[y,o(n)])]),g,b,f,S]),x,e("p",null,[e("a",w,[t("TRSS_Liteyuki"),o(n)]),t("TRSSLiteyukiBot使"),L]),B])}const N=s(r,[["render",T],["__file","install.html.vue"]]),C=JSON.parse('{"path":"/deploy/install.html","title":"","lang":"zh-CN","frontmatter":{"title":"","icon":"download","order":1,"category":"使","tag":[""],"description":" Git Python3.10+ 使<EFBFBD>