mirror of
https://github.com/cdr/code-server.git
synced 2025-12-28 03:16:17 +01:00
24 lines
547 B
Bash
Executable file
24 lines
547 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Generates deb and rpm packages for CI.
|
|
# Assumes a static release has already been built.
|
|
|
|
main() {
|
|
cd "$(dirname "${0}")/../.."
|
|
source ./ci/lib.sh
|
|
|
|
VERSION="$(pkg_json_version)"
|
|
export VERSION
|
|
|
|
ARCH="$(arch)"
|
|
export ARCH
|
|
|
|
local nfpm_config
|
|
nfpm_config=$(envsubst < ./ci/build/nfpm.yaml)
|
|
|
|
nfpm pkg -f <(echo "$nfpm_config") --target release-github/code-server-"$VERSION-$ARCH.deb"
|
|
nfpm pkg -f <(echo "$nfpm_config") --target release-github/code-server-"$VERSION-$ARCH.rpm"
|
|
}
|
|
|
|
main "$@"
|