new package

This commit is contained in:
paltovkone
2026-03-15 12:51:46 +04:00
parent ac213d9843
commit 2bde911af2
4 changed files with 75 additions and 0 deletions

13
vpn_node/scripts/env.sh Normal file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
apt-get update -qq
apt-get install -y --no-install-recommends curl ca-certificates gnupg unzip wget
# Получаем последнюю версию автоматически
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
echo "✓ nfpm $(nfpm --version)"