1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-14 00:07:09 -05:00
v2fly/release/debian/rules
Felix Yan de90ec40fc
Fix: remove v2ctl from debian/rules (#1954)
* Remove v2ctl from debian/rules

It seems to be left over from https://github.com/v2fly/v2ray-core/pull/488

* Chore: use Go v1.19 to build debian package

Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2022-09-18 08:46:32 +08:00

22 lines
438 B
Makefile
Executable File

#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
BUILDDIR=_build
%:
dh $@ --builddirectory=$(BUILDDIR) --buildsystem=golang
execute_after_dh_auto_configure:
go mod vendor
cp -r vendor/* _build/src
override_dh_auto_build:
DH_GOPKG="github.com/v2fly/v2ray-core/v5/main" dh_auto_build -- -ldflags "-s -w"
cd $(BUILDDIR); mv bin/main bin/v2ray
override_dh_auto_install:
dh_auto_install -- --no-source
override_dh_auto_test: