diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 9bc25020..13228efd 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -17,6 +17,12 @@ jobs: uses: actions/setup-go@v5 with: go-version: ^1.22 + - name: Extract signing key + run: |- + mkdir -p $HOME/.gnupg + cat > $HOME/.gnupg/sagernet.key < /dev/null @@ -21,7 +21,7 @@ icon: material/package ```bash sudo dnf -y install dnf-plugins-core - sudo dnf config-manager --add-repo https://sing-box.app/rpm.repo + sudo dnf config-manager --add-repo https://sing-box.app/sing-box.repo sudo dnf install sing-box # or sing-box-beta ``` @@ -29,7 +29,7 @@ icon: material/package ```bash sudo yum install -y yum-utils - sudo yum-config-manager --add-repo https://sing-box.app/rpm.repo + sudo yum-config-manager --add-repo https://sing-box.app/sing-box.repo sudo yum install sing-box # or sing-box-beta ``` diff --git a/docs/installation/package-manager.zh.md b/docs/installation/package-manager.zh.md index 4eb522a1..3c2a9094 100644 --- a/docs/installation/package-manager.zh.md +++ b/docs/installation/package-manager.zh.md @@ -9,7 +9,7 @@ icon: material/package === ":material-debian: Debian / APT" ```bash - sudo curl -fsSL https://deb.sagernet.org/gpg.key -o /etc/apt/keyrings/sagernet.asc + sudo curl -fsSL https://sing-box.app/gpg.key -o /etc/apt/keyrings/sagernet.asc sudo chmod a+r /etc/apt/keyrings/sagernet.asc echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/sagernet.asc] https://deb.sagernet.org/ * *" | \ sudo tee /etc/apt/sources.list.d/sagernet.list > /dev/null @@ -21,7 +21,7 @@ icon: material/package ```bash sudo dnf -y install dnf-plugins-core - sudo dnf config-manager --add-repo https://sing-box.app/rpm.repo + sudo dnf config-manager --add-repo https://sing-box.app/sing-box.repo sudo dnf install sing-box # or sing-box-beta ``` @@ -29,7 +29,7 @@ icon: material/package ```bash sudo yum install -y yum-utils - sudo yum-config-manager --add-repo https://sing-box.app/rpm.repo + sudo yum-config-manager --add-repo https://sing-box.app/sing-box.repo sudo yum install sing-box # or sing-box-beta ``` diff --git a/docs/installation/tools/rpm.repo b/docs/installation/tools/rpm.repo deleted file mode 100644 index a2d0c86c..00000000 --- a/docs/installation/tools/rpm.repo +++ /dev/null @@ -1,6 +0,0 @@ -[sing-box] -name=sing-box -baseurl=https://rpm.sagernet.org/ -enabled=1 -gpgcheck=1 -gpgkey=https://deb.sagernet.org/gpg.key diff --git a/docs/installation/tools/sing-box.repo b/docs/installation/tools/sing-box.repo new file mode 100644 index 00000000..b94c1ac1 --- /dev/null +++ b/docs/installation/tools/sing-box.repo @@ -0,0 +1,8 @@ +[sing-box] +name=sing-box +baseurl=https://rpm.sagernet.org/ +metalink=https://sing-box.app/sing-box.repo +enabled=1 +repo_gpgcheck=1 +gpgcheck=1 +gpgkey=https://sing-box.app/gpg.key