feature test
This commit is contained in:
@ -1,11 +1,7 @@
|
||||
# # v2ray/scripts/download.sh
|
||||
# #!/bin/bash
|
||||
# VERSION=$1
|
||||
#
|
||||
|
||||
|
||||
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
echo "download: $PACKAGE v$VERSION"
|
||||
|
||||
@ -3,11 +3,11 @@ set -euo pipefail
|
||||
apt-get update -qq
|
||||
apt-get install -y --no-install-recommends curl ca-certificates gnupg unzip wget
|
||||
|
||||
# goreleaser repo → nfpm
|
||||
curl -fsSL https://repo.goreleaser.com/apt/gpg.key | gpg --dearmor -o /usr/share/keyrings/goreleaser.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/goreleaser.gpg] https://repo.goreleaser.com/apt/ stable main" \
|
||||
> /etc/apt/sources.list.d/goreleaser.list
|
||||
# Получаем последнюю версию автоматически
|
||||
NFPM_VERSION=$(curl -fsSL https://api.github.com/repos/goreleaser/nfpm/releases/latest \
|
||||
| grep '"tag_name"' | sed 's/.*"v\([^"]*\)".*/\1/')
|
||||
|
||||
curl -fsSL "https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm_${NFPM_VERSION}_Linux_x86_64.tar.gz" \
|
||||
| tar -xz -C /usr/local/bin nfpm
|
||||
|
||||
apt-get update -qq
|
||||
apt-get install -y nfpm
|
||||
echo "✓ nfpm $(nfpm --version)"
|
||||
Reference in New Issue
Block a user