Add os aliases

This commit is contained in:
Aoran Zeng 2025-08-10 22:58:09 +08:00
parent 3c42e8be2d
commit dc20eeeb75
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
30 changed files with 61 additions and 61 deletions

View File

@ -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)},
};

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -4,7 +4,7 @@
* Raspberry Pi OS Raspbian
* ------------------------------------------------------------*/
def_target(os_raspberrypi);
def_target(os_raspberrypi, "raspi/raspberrypi");
void
os_raspberrypi_prelude ()

View File

@ -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 ()

View File

@ -4,7 +4,7 @@
* Trisquel基于Ubuntu开发使 Linux-libre
* ------------------------------------------------------------*/
def_target(os_trisquel);
def_target(os_trisquel, "trisquel");
void
os_trisquel_prelude ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -5,7 +5,7 @@
*
* ------------------------------------------------------------*/
def_target(os_openkylin);
def_target(os_openkylin, "openkylin");
void
os_openkylin_prelude ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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 ()