mirror of
https://github.com/RubyMetric/chsrc
synced 2025-08-12 23:27:34 +08:00
Add os aliases
This commit is contained in:
parent
3c42e8be2d
commit
dc20eeeb75
@ -49,37 +49,36 @@ chsrc_pl_menu[] =
|
||||
TargetRegisterInfo_t
|
||||
chsrc_os_menu[] =
|
||||
{
|
||||
/* Zorin OS 完全使用 Ubuntu 的换源方法,二者兼容 */
|
||||
{t(os_ubuntu), "ubuntu zorinos"},
|
||||
{t(os_linuxmint), "linuxmint"},
|
||||
{t(os_debian), "debian"},
|
||||
{t(os_fedora), "fedora"},
|
||||
{t(os_opensuse), "opensuse opensuse-leap opensuse-tumbleweed"},
|
||||
{t(os_kali), "kali"},
|
||||
{t(os_msys2), "msys2 msys"},
|
||||
{t(os_arch), "arch archlinux"},
|
||||
{t(os_archlinuxcn),"archlinuxcn archcn"},
|
||||
{t(os_manjaro), "manjaro"},
|
||||
{t(os_gentoo), "gentoo"},
|
||||
{t(os_rockylinux), "rocky rockylinux"},
|
||||
{t(os_almalinux), "alma almalinux"},
|
||||
{t(os_alpine), "alpine"},
|
||||
{t(os_voidlinux), "voidlinux"},
|
||||
{t(os_solus), "solus"},
|
||||
{t(os_trisquel), "trisquel"},
|
||||
{t(os_linuxlite), "linuxlite"},
|
||||
{t(os_ros), "ros ros2"},
|
||||
{t(os_raspberrypi),"raspi raspberrypi"},
|
||||
{t(os_armbian), "armbian"},
|
||||
{t(os_openwrt), "openwrt opkg LEDE"},
|
||||
{t(os_termux), "termux"},
|
||||
{t(os_openkylin), "openkylin"},
|
||||
{t(os_openeuler), "openeuler"},
|
||||
{t(os_anolis), "openanolis anolis"},
|
||||
{t(os_deepin), "deepin"},
|
||||
{t(os_freebsd), "freebsd"},
|
||||
{t(os_netbsd), "netbsd"},
|
||||
{t(os_openbsd), "openbsd"},
|
||||
{t(os_ubuntu)},
|
||||
{t(os_linuxmint)},
|
||||
{t(os_debian)},
|
||||
{t(os_fedora)},
|
||||
{t(os_opensuse)},
|
||||
{t(os_kali)},
|
||||
{t(os_msys2)},
|
||||
{t(os_arch)},
|
||||
{t(os_archlinuxcn)},
|
||||
{t(os_manjaro)},
|
||||
{t(os_gentoo)},
|
||||
{t(os_rockylinux)},
|
||||
{t(os_almalinux)},
|
||||
{t(os_alpine)},
|
||||
{t(os_voidlinux)},
|
||||
{t(os_solus)},
|
||||
{t(os_trisquel)},
|
||||
{t(os_linuxlite)},
|
||||
{t(os_ros)},
|
||||
{t(os_raspberrypi)},
|
||||
{t(os_armbian)},
|
||||
{t(os_openwrt)},
|
||||
{t(os_termux)},
|
||||
{t(os_openkylin)},
|
||||
{t(os_openeuler)},
|
||||
{t(os_anolis)},
|
||||
{t(os_deepin)},
|
||||
{t(os_freebsd)},
|
||||
{t(os_netbsd)},
|
||||
{t(os_openbsd)},
|
||||
};
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_armbian);
|
||||
def_target(os_armbian, "armbian");
|
||||
|
||||
void
|
||||
os_armbian_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_debian);
|
||||
def_target(os_debian, "debian");
|
||||
|
||||
void
|
||||
os_debian_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_kali);
|
||||
def_target(os_kali, "kali");
|
||||
|
||||
void
|
||||
os_kali_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_linuxlite);
|
||||
def_target(os_linuxlite, "linuxlite");
|
||||
|
||||
void
|
||||
os_linuxlite_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_linuxmint);
|
||||
def_target(os_linuxmint, "linuxmint");
|
||||
|
||||
void
|
||||
os_linuxmint_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_ros);
|
||||
def_target(os_ros, "ros/ros2");
|
||||
|
||||
void
|
||||
os_ros_prelude ()
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Raspberry Pi OS 树莓派操作系统,以前称为 Raspbian
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_raspberrypi);
|
||||
def_target(os_raspberrypi, "raspi/raspberrypi");
|
||||
|
||||
void
|
||||
os_raspberrypi_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_termux);
|
||||
def_target(os_termux, "termux");
|
||||
|
||||
void
|
||||
os_termux_prelude ()
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Trisquel基于Ubuntu开发,不含任何专有软件及专有固件,内核使用 Linux-libre
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_trisquel);
|
||||
def_target(os_trisquel, "trisquel");
|
||||
|
||||
void
|
||||
os_trisquel_prelude ()
|
||||
|
@ -2,7 +2,8 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_ubuntu);
|
||||
/* Zorin OS 完全使用 Ubuntu 的换源方法,二者兼容 */
|
||||
def_target(os_ubuntu, "ubuntu/zorinos");
|
||||
|
||||
void
|
||||
os_ubuntu_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_deepin);
|
||||
def_target(os_deepin, "deepin");
|
||||
|
||||
void
|
||||
os_deepin_prelude ()
|
||||
|
@ -5,7 +5,7 @@
|
||||
* 同一级别的、根社区发布的系统
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_openkylin);
|
||||
def_target(os_openkylin, "openkylin");
|
||||
|
||||
void
|
||||
os_openkylin_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_alpine);
|
||||
def_target(os_alpine, "alpine");
|
||||
|
||||
void
|
||||
os_alpine_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_freebsd);
|
||||
def_target(os_freebsd, "freebsd");
|
||||
|
||||
void
|
||||
os_freebsd_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_netbsd);
|
||||
def_target(os_netbsd, "netbsd");
|
||||
|
||||
void
|
||||
os_netbsd_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_openbsd);
|
||||
def_target(os_openbsd, "openbsd");
|
||||
|
||||
void
|
||||
os_openbsd_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_gentoo);
|
||||
def_target(os_gentoo, "gentoo");
|
||||
|
||||
void
|
||||
os_gentoo_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_openwrt);
|
||||
def_target(os_openwrt, "openwrt/opkg/LEDE");
|
||||
|
||||
void
|
||||
os_openwrt_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_solus);
|
||||
def_target(os_solus, "solus");
|
||||
|
||||
void
|
||||
os_solus_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_voidlinux);
|
||||
def_target(os_voidlinux, "voidlinux");
|
||||
|
||||
void
|
||||
os_voidlinux_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_almalinux);
|
||||
def_target(os_almalinux, "alma/almalinux");
|
||||
|
||||
void
|
||||
os_almalinux_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_anolis);
|
||||
def_target(os_anolis, "anolis/openanolis");
|
||||
|
||||
void
|
||||
os_anolis_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_fedora);
|
||||
def_target(os_fedora, "fedora");
|
||||
|
||||
void
|
||||
os_fedora_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_rockylinux);
|
||||
def_target(os_rockylinux, "rocky/rockylinux");
|
||||
|
||||
void
|
||||
os_rockylinux_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_openeuler);
|
||||
def_target(os_openeuler, "openeuler");
|
||||
|
||||
void
|
||||
os_openeuler_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_opensuse);
|
||||
def_target(os_opensuse, "opensuse/opensuse-leap/opensuse-tumbleweed");
|
||||
|
||||
void
|
||||
os_opensuse_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_arch);
|
||||
def_target(os_arch, "arch/archlinux");
|
||||
|
||||
#define OS_Pacman_MirrorList "/etc/pacman.d/mirrorlist"
|
||||
#define OS_Pacman_ArchLinuxCN_MirrorList "/etc/pacman.conf"
|
||||
@ -111,7 +111,7 @@ os_arch_setsrc (char *option)
|
||||
* archlinuxcn target
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_archlinuxcn);
|
||||
def_target(os_archlinuxcn, "archlinuxcn/archcn");
|
||||
|
||||
void
|
||||
os_archlinuxcn_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_msys2);
|
||||
def_target(os_msys2, "msys2/msys");
|
||||
|
||||
void
|
||||
os_msys2_prelude ()
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
def_target(os_manjaro);
|
||||
def_target(os_manjaro, "manjaro");
|
||||
|
||||
void
|
||||
os_manjaro_prelude ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user