From 3e05bbb664e9f011ab9177f981bd5c2ad05a1d66 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Tue, 24 Feb 2026 11:13:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=20OS=20=E8=AE=BE=E7=BD=AE=20?= =?UTF-8?q?scope=20=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/recipe/os/APT/Armbian.c | 3 ++- src/recipe/os/APT/Debian.c | 3 ++- src/recipe/os/APT/Kali-Linux.c | 3 ++- src/recipe/os/APT/Linux-Lite.c | 3 ++- src/recipe/os/APT/Linux-Mint.c | 3 ++- src/recipe/os/APT/ROS.c | 3 ++- src/recipe/os/APT/Raspberry-Pi-OS.c | 3 ++- src/recipe/os/APT/Termux.c | 3 ++- src/recipe/os/APT/Trisquel.c | 3 ++- src/recipe/os/APT/Ubuntu.c | 3 ++- src/recipe/os/APT/deepin.c | 3 ++- src/recipe/os/APT/openKylin.c | 3 ++- src/recipe/os/Alpine-Linux.c | 3 ++- src/recipe/os/BSD/FreeBSD.c | 3 ++- src/recipe/os/BSD/NetBSD.c | 2 +- src/recipe/os/BSD/OpenBSD.c | 2 +- src/recipe/os/Gentoo-Linux.c | 3 ++- src/recipe/os/OpenWrt.c | 3 ++- src/recipe/os/Solus.c | 2 +- src/recipe/os/Void-Linux.c | 3 ++- src/recipe/os/YUM/AlmaLinux.c | 2 +- src/recipe/os/YUM/Anolis-OS.c | 2 +- src/recipe/os/YUM/Fedora-Linux.c | 2 +- src/recipe/os/YUM/Rocky-Linux.c | 2 +- src/recipe/os/YUM/openEuler.c | 2 +- src/recipe/os/openSUSE.c | 3 ++- src/recipe/os/pacman/Arch-Linux.c | 4 ++-- src/recipe/os/pacman/MSYS2.c | 2 +- src/recipe/os/pacman/Manjaro-Linux.c | 2 +- 29 files changed, 48 insertions(+), 30 deletions(-) diff --git a/src/recipe/os/APT/Armbian.c b/src/recipe/os/APT/Armbian.c index feb7403..5788fab 100644 --- a/src/recipe/os/APT/Armbian.c +++ b/src/recipe/os/APT/Armbian.c @@ -17,7 +17,8 @@ os_armbian_prelude () chef_set_cooks (this, 1, "@livelycode36"); chef_set_sauciers (this, 2, "@ccmywish", "@Yangmoooo"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/APT/Debian.c b/src/recipe/os/APT/Debian.c index a9e71e3..67433fc 100644 --- a/src/recipe/os/APT/Debian.c +++ b/src/recipe/os/APT/Debian.c @@ -17,7 +17,8 @@ os_debian_prelude () chef_set_cooks (this, 2, "@ccmywish", "@G_I_Y"); chef_set_sauciers (this, 1, "@Yangmoooo"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/APT/Kali-Linux.c b/src/recipe/os/APT/Kali-Linux.c index 069413f..3c93bb3 100644 --- a/src/recipe/os/APT/Kali-Linux.c +++ b/src/recipe/os/APT/Kali-Linux.c @@ -17,7 +17,8 @@ os_kali_prelude () chef_set_cooks (this, 1, "@G_I_Y"); chef_set_sauciers (this, 2, "@Yangmoooo", "@happy-game"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/APT/Linux-Lite.c b/src/recipe/os/APT/Linux-Lite.c index f6fe798..1d7479c 100644 --- a/src/recipe/os/APT/Linux-Lite.c +++ b/src/recipe/os/APT/Linux-Lite.c @@ -17,7 +17,8 @@ os_linuxlite_prelude () chef_set_cooks (this, 1, "@ccmywish"); chef_set_sauciers (this, 1, "@Yangmoooo"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/APT/Linux-Mint.c b/src/recipe/os/APT/Linux-Mint.c index b6aa72c..58cc132 100644 --- a/src/recipe/os/APT/Linux-Mint.c +++ b/src/recipe/os/APT/Linux-Mint.c @@ -17,7 +17,8 @@ os_linuxmint_prelude () chef_set_cooks (this, 1, "@ccmywish"); chef_set_sauciers (this, 1, "@happy-game"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/APT/ROS.c b/src/recipe/os/APT/ROS.c index 12cf23f..3c8dba3 100644 --- a/src/recipe/os/APT/ROS.c +++ b/src/recipe/os/APT/ROS.c @@ -17,7 +17,8 @@ os_ros_prelude () chef_set_cooks (this, 1, "@G_I_Y"); chef_set_sauciers (this, 2, "@ccmywish", "@zouri"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/APT/Raspberry-Pi-OS.c b/src/recipe/os/APT/Raspberry-Pi-OS.c index 9928f50..041c722 100644 --- a/src/recipe/os/APT/Raspberry-Pi-OS.c +++ b/src/recipe/os/APT/Raspberry-Pi-OS.c @@ -19,7 +19,8 @@ os_raspberrypi_prelude () chef_set_cooks (this, 1, "@ccmywish"); chef_set_sauciers (this, 1, "@Yangmoooo"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/APT/Termux.c b/src/recipe/os/APT/Termux.c index 01486a6..1e82ac7 100644 --- a/src/recipe/os/APT/Termux.c +++ b/src/recipe/os/APT/Termux.c @@ -17,7 +17,8 @@ os_termux_prelude () chef_set_cooks (this, 1, "@ccmywish"); chef_set_sauciers (this, 0); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/APT/Trisquel.c b/src/recipe/os/APT/Trisquel.c index 18fbbd2..4c6f1d7 100644 --- a/src/recipe/os/APT/Trisquel.c +++ b/src/recipe/os/APT/Trisquel.c @@ -19,7 +19,8 @@ os_trisquel_prelude () chef_set_cooks (this, 1, "@ccmywish"); chef_set_sauciers (this, 0); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/APT/Ubuntu.c b/src/recipe/os/APT/Ubuntu.c index db3a0fd..940b2a3 100644 --- a/src/recipe/os/APT/Ubuntu.c +++ b/src/recipe/os/APT/Ubuntu.c @@ -18,7 +18,8 @@ os_ubuntu_prelude () chef_set_cooks (this, 2, "@ccmywish", "@G_I_Y"); chef_set_sauciers (this, 2, "@XUANJI233", "@usernameisnull"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/APT/deepin.c b/src/recipe/os/APT/deepin.c index 99ae134..398b6b8 100644 --- a/src/recipe/os/APT/deepin.c +++ b/src/recipe/os/APT/deepin.c @@ -17,7 +17,8 @@ os_deepin_prelude () chef_set_cooks (this, 1, "@G_I_Y"); chef_set_sauciers (this, 1, "@Yangmoooo"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/APT/openKylin.c b/src/recipe/os/APT/openKylin.c index 939d539..97599ed 100644 --- a/src/recipe/os/APT/openKylin.c +++ b/src/recipe/os/APT/openKylin.c @@ -20,7 +20,8 @@ os_openkylin_prelude () chef_set_cooks (this, 1, "@G_I_Y"); chef_set_sauciers (this, 1, "@ccmywish"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/Alpine-Linux.c b/src/recipe/os/Alpine-Linux.c index c041b6e..d0ca73e 100644 --- a/src/recipe/os/Alpine-Linux.c +++ b/src/recipe/os/Alpine-Linux.c @@ -17,7 +17,8 @@ os_alpine_prelude () chef_set_cooks (this, 1, "@ccmywish"); chef_set_sauciers (this, 1, "@Yangmoooo"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_allow_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/BSD/FreeBSD.c b/src/recipe/os/BSD/FreeBSD.c index c459e50..31a5552 100644 --- a/src/recipe/os/BSD/FreeBSD.c +++ b/src/recipe/os/BSD/FreeBSD.c @@ -17,7 +17,8 @@ os_freebsd_prelude () chef_set_cooks (this, 2, "@ccmywish", "@G_I_Y"); chef_set_sauciers (this, 1, "@hezonglun"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/BSD/NetBSD.c b/src/recipe/os/BSD/NetBSD.c index 54d99fc..35b5d69 100644 --- a/src/recipe/os/BSD/NetBSD.c +++ b/src/recipe/os/BSD/NetBSD.c @@ -17,8 +17,8 @@ os_netbsd_prelude () chef_set_cooks (this, 2, "@ccmywish", "@G_I_Y"); chef_set_sauciers (this, 1, "@hezonglun"); + chef_set_os_scope (this); - chef_allow_local_mode (this, CanNot, NULL, NULL); chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/BSD/OpenBSD.c b/src/recipe/os/BSD/OpenBSD.c index dfc2996..210d23a 100644 --- a/src/recipe/os/BSD/OpenBSD.c +++ b/src/recipe/os/BSD/OpenBSD.c @@ -17,7 +17,7 @@ os_openbsd_prelude () chef_set_cooks (this, 2, "@G_I_Y", "@ccmywish"); chef_set_sauciers (this, 1, "@hezonglun"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/Gentoo-Linux.c b/src/recipe/os/Gentoo-Linux.c index b13c09f..8d83750 100644 --- a/src/recipe/os/Gentoo-Linux.c +++ b/src/recipe/os/Gentoo-Linux.c @@ -17,7 +17,8 @@ os_gentoo_prelude () chef_set_cooks (this, 1, "@G_I_Y"); chef_set_sauciers (this, 1, "@ccmywish"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_allow_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/OpenWrt.c b/src/recipe/os/OpenWrt.c index 026f42c..6ad1653 100644 --- a/src/recipe/os/OpenWrt.c +++ b/src/recipe/os/OpenWrt.c @@ -17,7 +17,8 @@ os_openwrt_prelude () chef_set_cooks (this, 1, "@ccmywish"); chef_set_sauciers (this, 2, "@Yangmoooo", "@happy-game"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_allow_english(this); chef_allow_user_define(this); diff --git a/src/recipe/os/Solus.c b/src/recipe/os/Solus.c index feaabc1..f55fdab 100644 --- a/src/recipe/os/Solus.c +++ b/src/recipe/os/Solus.c @@ -17,8 +17,8 @@ os_solus_prelude () chef_set_cooks (this, 1, "@ccmywish"); chef_set_sauciers (this, 0); + chef_set_os_scope (this); - chef_allow_local_mode (this, CanNot, NULL, NULL); chef_deny_english(this); chef_allow_user_define(this); diff --git a/src/recipe/os/Void-Linux.c b/src/recipe/os/Void-Linux.c index 2a5d663..ba8d2f3 100644 --- a/src/recipe/os/Void-Linux.c +++ b/src/recipe/os/Void-Linux.c @@ -17,7 +17,8 @@ os_voidlinux_prelude () chef_set_cooks (this, 1, "@ccmywish"); chef_set_sauciers (this, 1, "@Yangmoooo"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); diff --git a/src/recipe/os/YUM/AlmaLinux.c b/src/recipe/os/YUM/AlmaLinux.c index b8e6512..58b3e74 100644 --- a/src/recipe/os/YUM/AlmaLinux.c +++ b/src/recipe/os/YUM/AlmaLinux.c @@ -17,7 +17,7 @@ os_almalinux_prelude () chef_set_cooks (this, 1, "@ccmywish"); chef_set_sauciers (this, 1, "@Yangmoooo"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/YUM/Anolis-OS.c b/src/recipe/os/YUM/Anolis-OS.c index e56f696..0287584 100644 --- a/src/recipe/os/YUM/Anolis-OS.c +++ b/src/recipe/os/YUM/Anolis-OS.c @@ -17,7 +17,7 @@ os_anolis_prelude () chef_set_cooks (this, 1, "@ccmywish"); chef_set_sauciers (this, 0); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/YUM/Fedora-Linux.c b/src/recipe/os/YUM/Fedora-Linux.c index e1c7777..e73a73e 100644 --- a/src/recipe/os/YUM/Fedora-Linux.c +++ b/src/recipe/os/YUM/Fedora-Linux.c @@ -17,7 +17,7 @@ os_fedora_prelude () chef_set_cooks (this, 2, "@G_I_Y", "@happy-game"); chef_set_sauciers (this, 1, "@ccmywish"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/YUM/Rocky-Linux.c b/src/recipe/os/YUM/Rocky-Linux.c index 7bd28be..b79a3ac 100644 --- a/src/recipe/os/YUM/Rocky-Linux.c +++ b/src/recipe/os/YUM/Rocky-Linux.c @@ -17,7 +17,7 @@ os_rockylinux_prelude () chef_set_cooks (this, 1, "@ccmywish"); chef_set_sauciers (this, 1, "@happy-game"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/YUM/openEuler.c b/src/recipe/os/YUM/openEuler.c index 4ebbfae..68b07d2 100644 --- a/src/recipe/os/YUM/openEuler.c +++ b/src/recipe/os/YUM/openEuler.c @@ -17,7 +17,7 @@ os_openeuler_prelude () chef_set_chef (this, NULL); chef_set_sauciers (this, 3, "@ccmywish", "@Yangmoooo", "@happy-game"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/openSUSE.c b/src/recipe/os/openSUSE.c index e26448c..e14d930 100644 --- a/src/recipe/os/openSUSE.c +++ b/src/recipe/os/openSUSE.c @@ -17,7 +17,8 @@ os_opensuse_prelude () chef_set_cooks (this, 2, "@ccmywish", "@G_I_Y"); chef_set_sauciers (this, 0); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); + chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/pacman/Arch-Linux.c b/src/recipe/os/pacman/Arch-Linux.c index 2b49cfc..fd331af 100644 --- a/src/recipe/os/pacman/Arch-Linux.c +++ b/src/recipe/os/pacman/Arch-Linux.c @@ -20,7 +20,7 @@ os_arch_prelude () chef_set_cooks (this, 2, "@ccmywish", "@G_I_Y"); chef_set_sauciers (this, 2, "@happy-game", "@Young-Lord"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); chef_deny_english(this); chef_deny_user_define(this); @@ -123,7 +123,7 @@ os_archlinuxcn_prelude () chef_set_cooks (this, 2, "@ccmywish", "@G_I_Y"); chef_set_sauciers (this, 2, "@happy-game", "@Young-Lord"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/pacman/MSYS2.c b/src/recipe/os/pacman/MSYS2.c index 6e031d5..192a358 100644 --- a/src/recipe/os/pacman/MSYS2.c +++ b/src/recipe/os/pacman/MSYS2.c @@ -17,7 +17,7 @@ os_msys2_prelude () chef_set_cooks (this, 1, "@G_I_Y"); chef_set_sauciers (this, 2, "@ccmywish", "@hezonglun"); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); chef_deny_english(this); chef_deny_user_define(this); diff --git a/src/recipe/os/pacman/Manjaro-Linux.c b/src/recipe/os/pacman/Manjaro-Linux.c index 620847b..8c5a5f5 100644 --- a/src/recipe/os/pacman/Manjaro-Linux.c +++ b/src/recipe/os/pacman/Manjaro-Linux.c @@ -16,7 +16,7 @@ os_manjaro_prelude () chef_set_cooks (this, 1, "@G_I_Y"); chef_set_sauciers (this, 0); - chef_allow_local_mode (this, CanNot, NULL, NULL); + chef_set_os_scope (this); chef_deny_english(this); chef_deny_user_define(this);