mirror of
https://github.com/fw876/helloworld.git
synced 2026-12-06 16:01:08 +00:00
Xray-core: Force xray to replace v2ray
This commit is contained in:
1 parent
2bb75dff9c
commit
baabe5b9fa
1 file changed
-8
@@ -13,7 +13,6 @@ PKG_LICENSE:=MPL-2.0
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
CONFIG_XRAY_CORE_PROVIDE_V2RAY_CORE \
|
||||
CONFIG_XRAY_CORE_COMPRESS_GOPROXY \
|
||||
CONFIG_XRAY_CORE_COMPRESS_UPX \
|
||||
|
||||
@@ -70,10 +69,6 @@ define Package/xray-core/config
|
||||
menu "Xray-core Configuration"
|
||||
depends on PACKAGE_xray-core
|
||||
|
||||
config XRAY_CORE_PROVIDE_V2RAY_CORE
|
||||
bool "Provide V2Ray binary using XRay"
|
||||
default y
|
||||
|
||||
config XRAY_CORE_COMPRESS_GOPROXY
|
||||
bool "Compiling with GOPROXY proxy"
|
||||
default n
|
||||
@@ -126,12 +121,9 @@ endef
|
||||
|
||||
define Package/xray-core/install
|
||||
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/main $(1)/usr/bin/xray
|
||||
ifneq ($(CONFIG_XRAY_CORE_PROVIDE_V2RAY_CORE),)
|
||||
$(LN) xray $(1)/usr/bin/v2ray
|
||||
endif
|
||||
endef
|
||||
|
||||
define Package/xray-geodata/install
|
||||
|
||||
Reference in new issue
Block a user