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