feature test
This commit is contained in:
@ -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
|
||||
@ -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/
|
||||
@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
systemctl daemon-reload
|
||||
systemctl enable v2ray
|
||||
@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
systemctl stop v2ray || true
|
||||
systemctl disable v2ray || true
|
||||
@ -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/
|
||||
Reference in New Issue
Block a user