-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Clean up code Co-authored-by: yidaduizuoye (@CAB233)
- Loading branch information
1 parent
e04e763
commit 5aeb218
Showing
5 changed files
with
23 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
abinfo "Installing systemd services..." | ||
install -Dvm644 "$SRCDIR"/release/config/sing-box.service \ | ||
-t "$PKGDIR"/usr/lib/systemd/system | ||
install -Dvm644 "$SRCDIR"/release/config/[email protected] \ | ||
-t "$PKGDIR"/usr/lib/systemd/system | ||
install -Dvm644 "$SRCDIR"/release/config/config.json \ | ||
-t "$PKGDIR"/etc/sing-box | ||
|
||
abinfo "Installing completion files ..." | ||
mkdir -pv "$PKGDIR"/usr/share/bash-completion/completions | ||
"$PKGDIR"/usr/bin/sing-box completion bash > "$PKGDIR"/usr/share/bash-completion/completions/sing-box | ||
mkdir -pv "$PKGDIR"/usr/share/zsh/site-functions | ||
"$PKGDIR"/usr/bin/sing-box completion zsh > "$PKGDIR"/usr/share/zsh/site-functions/_sing-box | ||
mkdir -pv "$PKGDIR"/usr/share/fish/vendor_completions.d | ||
"$PKGDIR"/usr/bin/sing-box completion fish > "$PKGDIR"/usr/share/fish/vendor_completions.d/sing-box.fish |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
abinfo "Enabling trimpath for a reproducible build ..." | ||
export GOFLAGS="${GOFLAGS} -trimpath" | ||
|
||
abinfo "Setting other GOFLAGS ..." | ||
export GOFLAGS="${GOFLAGS} -mod=readonly -modcacherw" | ||
|
||
if ! ab_match_arch loongson3; then | ||
abinfo "Enabling buildmode=pie ..." | ||
export GOFLAGS="${GOFLAGS} -buildmode=pie" | ||
fi | ||
abinfo "Setting GO_LDFLAGS ..." | ||
GO_LDFLAGS+=("-X 'github.com/sagernet/sing-box/constant.Version=$PKGVER'") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VER=1.10.7 | ||
SRCS="git::commit=tags/v$VER;copy-repo=true::https://github.com/SagerNet/sing-box" | ||
VER=1.11.0 | ||
SRCS="git::commit=tags/v$VER::https://github.com/SagerNet/sing-box" | ||
CHKSUMS="SKIP" | ||
CHKUPDATE="anitya::id=372359" |