mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-01-22 12:49:56 +08:00
Ajust targets order
This commit is contained in:
parent
0d5adeb37f
commit
c2983fca38
13
README.md
13
README.md
|
@ -55,7 +55,7 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/preview/chsrc-x64-m
|
||||||
|
|
||||||
### BSD
|
### BSD
|
||||||
|
|
||||||
*BSD 用户需要按照下述命令编译,编译好即可运行 `./chsrc`
|
BSD 用户需要按照下述命令编译,编译好即可运行 `./chsrc`
|
||||||
```bash
|
```bash
|
||||||
git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc; clang chsrc.c -o chsrc
|
git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc; clang chsrc.c -o chsrc
|
||||||
```
|
```
|
||||||
|
@ -147,20 +147,21 @@ sudo chsrc set rocky 或 set rockylinux
|
||||||
sudo chsrc set alpine
|
sudo chsrc set alpine
|
||||||
sudo chsrc set void 或 set voidlinux
|
sudo chsrc set void 或 set voidlinux
|
||||||
sudo chsrc set solus
|
sudo chsrc set solus
|
||||||
|
sudo chsrc set ros 或 set ros2
|
||||||
sudo chsrc set trisquel
|
sudo chsrc set trisquel
|
||||||
sudo chsrc set lite 或 set linuxlite
|
sudo chsrc set lite 或 set linuxlite
|
||||||
sudo chsrc set raspi 或 set raspberrypi
|
sudo chsrc set raspi 或 set raspberrypi
|
||||||
|
|
||||||
sudo chsrc set freebsd
|
|
||||||
sudo chsrc set openbsd
|
|
||||||
sudo chsrc set netbsd
|
|
||||||
|
|
||||||
# 国产操作系统
|
|
||||||
sudo chsrc set deepin
|
sudo chsrc set deepin
|
||||||
sudo chsrc set euler 或 set openeuler
|
sudo chsrc set euler 或 set openeuler
|
||||||
sudo chsrc set kylin 或 set openkylin
|
sudo chsrc set kylin 或 set openkylin
|
||||||
|
|
||||||
chsrc set msys2 或 set msys
|
chsrc set msys2 或 set msys
|
||||||
|
|
||||||
|
# BSD
|
||||||
|
sudo chsrc set freebsd
|
||||||
|
sudo chsrc set openbsd
|
||||||
|
sudo chsrc set netbsd
|
||||||
```
|
```
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
13
chsrc.c
13
chsrc.c
|
@ -3,7 +3,7 @@
|
||||||
* License : GPLv3
|
* License : GPLv3
|
||||||
* Authors : Aoran Zeng <ccmywish@qq.com>
|
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Created on : <2023-08-28>
|
* Created on : <2023-08-28>
|
||||||
* Last modified : <2023-09-29>
|
* Last modified : <2023-10-04>
|
||||||
*
|
*
|
||||||
* chsrc:
|
* chsrc:
|
||||||
*
|
*
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
* 该软件为自由软件,采用 GPLv3 许可证,请查阅 LICENSE.txt 文件
|
* 该软件为自由软件,采用 GPLv3 许可证,请查阅 LICENSE.txt 文件
|
||||||
* ------------------------------------------------------------*/
|
* ------------------------------------------------------------*/
|
||||||
|
|
||||||
#define Chsrc_Version "v0.1.2-20230929"
|
#define Chsrc_Version "v0.1.2-2023/10/04"
|
||||||
|
|
||||||
#include "chsrc.h"
|
#include "chsrc.h"
|
||||||
|
|
||||||
|
@ -1983,18 +1983,17 @@ static const char
|
||||||
*os_deepin [] = {"deepin", NULL, targetinfo(&os_deepin_target)},
|
*os_deepin [] = {"deepin", NULL, targetinfo(&os_deepin_target)},
|
||||||
*os_openeuler [] = {"euler", "openeuler", NULL, targetinfo(&os_openeuler_target)},
|
*os_openeuler [] = {"euler", "openeuler", NULL, targetinfo(&os_openeuler_target)},
|
||||||
*os_openkylin [] = {"kylin", "openkylin", NULL, targetinfo(&os_openkylin_target)},
|
*os_openkylin [] = {"kylin", "openkylin", NULL, targetinfo(&os_openkylin_target)},
|
||||||
*os_ros [] = {"ros", "ros", NULL, targetinfo(&os_ros_target)},
|
*os_ros [] = {"ros", "ros2", NULL, targetinfo(&os_ros_target)},
|
||||||
**os_systems[] =
|
**os_systems[] =
|
||||||
{
|
{
|
||||||
os_ubuntu, os_mint, os_debian, os_fedora, os_opensuse, os_kali,
|
os_ubuntu, os_mint, os_debian, os_fedora, os_opensuse, os_kali,
|
||||||
os_arch, os_manjaro, os_gentoo,
|
os_arch, os_manjaro, os_gentoo,
|
||||||
os_rocky,
|
os_rocky,
|
||||||
os_alpine, os_void, os_solus,
|
os_alpine, os_void, os_solus, os_ros,
|
||||||
os_trisquel, os_linuxlite, os_raspberrypi,
|
os_trisquel, os_linuxlite, os_raspberrypi,
|
||||||
os_freebsd, os_netbsd, os_openbsd,
|
|
||||||
os_msys2,
|
|
||||||
os_deepin, os_openeuler, os_openkylin,
|
os_deepin, os_openeuler, os_openkylin,
|
||||||
os_ros
|
os_msys2,
|
||||||
|
os_freebsd, os_netbsd, os_openbsd,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user