feature test

This commit is contained in:
paltovkone
2026-03-09 22:41:13 +04:00
parent 40e4952711
commit c18d4adcb3
5 changed files with 12 additions and 12 deletions

View File

@ -30,6 +30,6 @@ contents:
- src: dist/systemd/system/v2ray@.service
dst: /lib/systemd/system/v2ray@.service
scripts:
postinstall: scripts/postinstall.sh
preremove: scripts/preremove.sh
# scripts:
# postinstall: scripts/postinstall.sh
# preremove: scripts/preremove.sh

View File

@ -7,7 +7,8 @@ set -euo pipefail
echo "download: $PACKAGE v$VERSION"
wget -q "https://github.com/v2fly/v2ray-core/releases/download/v${VERSION}/v2ray-linux-64.zip"
ls -la
mkdir -p dist
unzip -q v2ray-linux-64.zip -d dist/
chmod +x dist/v2ray
chmod +x dist/v2ray
echo "✓ downloaded v2ray v${VERSION}"
ls -lh dist/

View File

@ -1,3 +0,0 @@
#!/bin/bash
systemctl daemon-reload
systemctl enable v2ray

View File

@ -1,3 +0,0 @@
#!/bin/bash
systemctl stop v2ray || true
systemctl disable v2ray || true

View File

@ -1,3 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
echo "publish: $PACKAGE v$VERSION"
mkdir -p out
nfpm package --config /pkg/nfpm.yaml --packager deb --target /pkg/out/
echo "✓ built $(ls out/*.deb)"
ls -la out/