update 2024-11-15 12:16:55

This commit is contained in:
actions-user 2024-11-15 12:16:55 +08:00
parent d60057fd4a
commit 4f6c139d0a
2 changed files with 10 additions and 6 deletions

View File

@ -987,7 +987,11 @@ function to_move(app_name,file)
end
function get_version()
return sys.exec("echo -n $(opkg list-installed luci-app-passwall |awk '{print $3}')")
local version = sys.exec("opkg list-installed luci-app-passwall 2>/dev/null | awk '{print $3}'")
if not version or #version == 0 then
version = sys.exec("apk info luci-app-passwall 2>/dev/null | awk '{print $2}'")
end
return version or ""
end
function to_check_self()

View File

@ -1,13 +1,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=mihomo
PKG_RELEASE:=3
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/MetaCubeX/mihomo.git
PKG_SOURCE_DATE:=2024-11-05
PKG_SOURCE_VERSION:=ce52c3438bf5c09f1fe58f6034a9ff7ee4ac3c25
PKG_MIRROR_HASH:=5df3e7e3e9aceb0ec1facde407d973cb5395a1b1a595aa587d59f138ebb8ba29
PKG_SOURCE_DATE:=2024-11-14
PKG_SOURCE_VERSION:=de19f927e86573a7a97159e3b9925049f06d4563
PKG_MIRROR_HASH:=931d397995b2da9e97f3f050d4650fa9013980d6c523df40bca3b58822a42409
PKG_LICENSE:=MIT
PKG_MAINTAINER:=Joseph Mory <morytyann@gmail.com>
@ -16,7 +16,7 @@ PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_BUILD_FLAGS:=no-mips16
PKG_BUILD_VERSION:=alpha-ce52c34
PKG_BUILD_VERSION:=alpha-de19f92
PKG_BUILD_TIME:=$(shell date -u -Iseconds)
GO_PKG:=github.com/metacubex/mihomo