mirror of
https://github.com/TheWhiteDog9487/lag2cn.git
synced 2026-08-11 23:01:29 +08:00
新增加aarch64架构支持
This commit is contained in:
@@ -1,10 +1,16 @@
|
|||||||
# 一键切换Ubuntu(和Debian)系统到简体中文
|
# 一键切换Ubuntu(和Debian)系统到简体中文
|
||||||
## 测试通过的系统
|
## 测试通过的系统
|
||||||
|
### **x86_64:**
|
||||||
|系统名称|版本|
|
|系统名称|版本|
|
||||||
|-|-|
|
|-|-|
|
||||||
|Debian|11.6.0|
|
|Debian|11.6.0|
|
||||||
|Ubuntu|22.04 LTS 20.04 LTS|
|
|Ubuntu|22.04 LTS 20.04 LTS|
|
||||||
|
|
||||||
|
### **aarch64:**
|
||||||
|
|系统名称|版本|
|
||||||
|
|-|-|
|
||||||
|
|Debian|11.5|
|
||||||
|
|
||||||
## 使用方法
|
## 使用方法
|
||||||
确保已经安装wget或者有其他方法可以传输文件
|
确保已经安装wget或者有其他方法可以传输文件
|
||||||
```shell
|
```shell
|
||||||
@@ -12,16 +18,17 @@ apt update && apt install -y wget
|
|||||||
```
|
```
|
||||||
|
|
||||||
下载程序
|
下载程序
|
||||||
|
### **x86_64:**
|
||||||
```shell
|
```shell
|
||||||
wget https://raw.githubusercontent.com/TheWhiteDog9487/ubuntu-language-onekey-zh_cn/main/language
|
wget https://raw.githubusercontent.com/TheWhiteDog9487/ubuntu-language-onekey-zh_cn/main/language
|
||||||
```
|
```
|
||||||
运行程序
|
### **aarch64:**
|
||||||
```shell
|
```shell
|
||||||
sudo chmod o+x language
|
wget https://raw.githubusercontent.com/TheWhiteDog9487/ubuntu-language-onekey-zh_cn/main/language_arm
|
||||||
sudo ./language
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## 提示
|
运行程序
|
||||||
这个程序现在只适配了Debian和Ubuntu的x86版本,ARM架构和采用这两个系统作为底板的下游分支可用性未知。
|
```shell
|
||||||
短时间内我无法适配ARM架构,我根本就没这个设备。
|
sudo chmod u+x language
|
||||||
如果你需要,可以尝试修改源代码之后自行构建。
|
sudo ./language
|
||||||
|
```
|
||||||
@@ -82,8 +82,13 @@ int main() {
|
|||||||
exit(-1);}
|
exit(-1);}
|
||||||
else if (OS == "Linux") {
|
else if (OS == "Linux") {
|
||||||
if (get_linux_distro_name().find("Ubuntu") != string::npos){
|
if (get_linux_distro_name().find("Ubuntu") != string::npos){
|
||||||
|
cout << "检测到您使用的系统为:" << get_linux_distro_name() << endl;
|
||||||
Ubuntu();}
|
Ubuntu();}
|
||||||
if (get_linux_distro_name().find("Debian") != string::npos){
|
if (get_linux_distro_name().find("Debian") != string::npos){
|
||||||
|
cout << "检测到您使用的系统为:" << get_linux_distro_name() << endl;
|
||||||
|
Debian();}
|
||||||
|
if (get_linux_distro_name().find("Armbian") != string::npos){
|
||||||
|
cout << "检测到您使用的系统为:" << get_linux_distro_name() << endl;
|
||||||
Debian();}
|
Debian();}
|
||||||
else { exit(-1); }}
|
else { exit(-1); }}
|
||||||
else if (OS == "未知"){
|
else if (OS == "未知"){
|
||||||
|
|||||||
Reference in New Issue
Block a user