diff --git a/v2ray/nfpm.yaml b/v2ray/nfpm.yaml index 500e99e..718b04e 100644 --- a/v2ray/nfpm.yaml +++ b/v2ray/nfpm.yaml @@ -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 \ No newline at end of file diff --git a/v2ray/scripts/download.sh b/v2ray/scripts/download.sh index 6d91581..12ee543 100755 --- a/v2ray/scripts/download.sh +++ b/v2ray/scripts/download.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 \ No newline at end of file +chmod +x dist/v2ray +echo "✓ downloaded v2ray v${VERSION}" +ls -lh dist/ \ No newline at end of file diff --git a/v2ray/scripts/postinstall.sh b/v2ray/scripts/postinstall.sh deleted file mode 100644 index e90e95e..0000000 --- a/v2ray/scripts/postinstall.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -systemctl daemon-reload -systemctl enable v2ray diff --git a/v2ray/scripts/preremove.sh b/v2ray/scripts/preremove.sh deleted file mode 100644 index 1542565..0000000 --- a/v2ray/scripts/preremove.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -systemctl stop v2ray || true -systemctl disable v2ray || true diff --git a/v2ray/scripts/publish.sh b/v2ray/scripts/publish.sh index 715cd96..8a064b2 100644 --- a/v2ray/scripts/publish.sh +++ b/v2ray/scripts/publish.sh @@ -1,3 +1,8 @@ #!/usr/bin/env bash set -euo pipefail -echo "publish: $PACKAGE v$VERSION" \ No newline at end of file + +mkdir -p out +nfpm package --config /pkg/nfpm.yaml --packager deb --target /pkg/out/ +echo "✓ built $(ls out/*.deb)" + +ls -la out/ \ No newline at end of file