Update README.md

This commit is contained in:
UnitedAirforce
2025-02-06 11:26:21 +08:00
committed by GitHub
parent 53abe3fd8c
commit b8121af283
+68
View File
@@ -68,6 +68,8 @@ For method 2, use the `Instruction for Use (For modified client)` section.
## Setup the Server First
### PC/MAC (Easier)
Download the server and assets, and extract everything according to the `Download` section.
Install ```python``` and ```pip``` on your PC/MAC.
@@ -76,6 +78,38 @@ Note that MAC uses ```python3```. Code examples in this document will use the de
Open command on windows. Type “ipconfig”, and remember your IPV4 address. This assumes that you are connected to a WIFI, and it should start with 192 or 172. Open the ```config.py``` of the private server, and change the IP accordingly. Type ```cmd``` in the file directory on the top of the file explorer, and press enter. A command prompt will be opened for that directory. Type ```python 7001.py``` to start the server. If an error pops up, resolve it now did you install all the dependencies? Is the IP correct?
### Android (Harder)
<details>
<summary>Details</summary>
<br>
Install [Termux](https://github.com/termux/termux-app/releases).
Type the following commands.
`termux-setup-storage`
`pkg install python`
`pkg up ssl -y`
Use
`pip install ...`
to install `flask`, `passlib`, `pycryptodome`, `requests`.
Copy the server to phone, or upzip the server files on the phone. (Skip the iOS files if not needed, it takes up a lot of space)
change `config.py`'s `IP` to `127.0.0.1` (this is `loopback`. Feel free to use your android device's `IPv4` via `ifconfig` if you are connected to a WIFI, to enable the server to the entire network).
`cd storage/shared/.... (server location on android file system)`
`python 7001.py` to start the server.
</details>
## Instruction for Use (for official client)
<details>
@@ -231,6 +265,8 @@ Account is only used for save file saving/loading (song ownership and coins are
## 配置服务器
### PC/MAC(简单)
按照`下载`章节来下载解压服务器和资源。
PC/MAC安装 ```python```,安装 ```pip```。
@@ -242,6 +278,38 @@ PC打开 ```cmd``` 输入 ```ipconfig```。MAC 打开 ```terminal``` 输入 ```i
服务器文件夹上方的路径清空,输入 ```cmd```。命令行窗口会弹出。输入 ```python 7001.py```来开启服务器。如果出现错误,就解决他们吧。检查依赖项是否安装,网络配置是否正确。
### 安卓(稍难)
<details>
<summary>细节</summary>
<br>
安装 [Termux](https://github.com/termux/termux-app/releases).
输入下面的命令。
`termux-setup-storage`
`pkg install python`
`pkg up ssl -y`
`pip install ...`
来安装 `flask`, `passlib`, `pycryptodome`, `requests`.
将服务器拷到手机上,或者在手机上解压服务器文件。(如不需要iOS文件,就省点手机空间,别拷贝ios的东西了)
修改 `config.py` 的 `IP` 至 `127.0.0.1` (这是 `本地回环`。如果连接了WIFI,可以使用`ifconfig` 获取手机的 `IPv4` 并填入,以在整个网络下支持私服).
`cd storage/shared/.... (服务器在安卓文件系统的位置)`
`python 7001.py` 来运行服务器。
</details>
## 原版安装包的使用说明
<details>