Bläddra i källkod

Mark config file as noreplace for rpm

Fei1Yang 6 månader sedan
förälder
incheckning
5adaf1ac75
3 ändrade filer med 3 tillägg och 2 borttagningar
  1. 1 0
      .fpm
  2. 1 1
      .goreleaser.fury.yaml
  3. 1 1
      .goreleaser.yaml

+ 1 - 0
.fpm

@@ -6,6 +6,7 @@
 --url "https://sing-box.sagernet.org/"
 --maintainer "nekohasekai <[email protected]>"
 --deb-field "Bug: https://github.com/SagerNet/sing-box/issues"
+--config-files /etc/sing-box/config.json
 
 release/config/config.json=/etc/sing-box/config.json
 

+ 1 - 1
.goreleaser.fury.yaml

@@ -48,7 +48,7 @@ nfpms:
     contents:
       - src: release/config/config.json
         dst: /etc/sing-box/config.json
-        type: config
+        type: "config|noreplace"
 
       - src: release/config/sing-box.service
         dst: /usr/lib/systemd/system/sing-box.service

+ 1 - 1
.goreleaser.yaml

@@ -130,7 +130,7 @@ nfpms:
     contents:
       - src: release/config/config.json
         dst: /etc/sing-box/config.json
-        type: config
+        type: "config|noreplace"
 
       - src: release/config/sing-box.service
         dst: /usr/lib/systemd/system/sing-box.service