Adjust nfpm config for bindir removal
See https://github.com/goreleaser/nfpm/pull/142#issuecomment-634427333
This commit is contained in:
parent
eb17a293e5
commit
33bca2d141
@ -21,7 +21,7 @@ main() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $OSTYPE == linux* ]]; then
|
if [[ $OS == "linux" ]]; then
|
||||||
release_nfpm
|
release_nfpm
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -48,7 +48,7 @@ release_gcp() {
|
|||||||
# Generates deb and rpm packages.
|
# Generates deb and rpm packages.
|
||||||
release_nfpm() {
|
release_nfpm() {
|
||||||
local nfpm_config
|
local nfpm_config
|
||||||
nfpm_config=$(envsubst < ./ci/build/nfpm.yaml)
|
nfpm_config="$(envsubst < ./ci/build/nfpm.yaml)"
|
||||||
|
|
||||||
# The underscores are convention for .deb.
|
# The underscores are convention for .deb.
|
||||||
nfpm pkg -f <(echo "$nfpm_config") --target "release-packages/code-server_${VERSION}_$ARCH.deb"
|
nfpm pkg -f <(echo "$nfpm_config") --target "release-packages/code-server_${VERSION}_$ARCH.deb"
|
||||||
|
@ -10,7 +10,6 @@ description: |
|
|||||||
vendor: "Coder"
|
vendor: "Coder"
|
||||||
homepage: "https://github.com/cdr/code-server"
|
homepage: "https://github.com/cdr/code-server"
|
||||||
license: "MIT"
|
license: "MIT"
|
||||||
bindir: "/usr/bin"
|
|
||||||
files:
|
files:
|
||||||
./ci/build/code-server-nfpm.sh: /usr/bin/code-server
|
./ci/build/code-server-nfpm.sh: /usr/bin/code-server
|
||||||
./ci/build/code-server.service: /usr/lib/systemd/user/code-server.service
|
./ci/build/code-server.service: /usr/lib/systemd/user/code-server.service
|
||||||
|
Reference in New Issue
Block a user