mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-26 21:12:51 +08:00
🎁 Sync 2026-06-28 03:27:39
This commit is contained in:
1 parent
60ead0452b
commit
bfdefd1724
13 files changed
+51
-42
No files matched your search
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-run
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=8
|
||||
PKG_RELEASE:=9
|
||||
|
||||
LUCI_TITLE:=LuCI support for running installers and packages
|
||||
LUCI_DESCRIPTION:=Upload and execute .run, .sh, .ipk and .apk files from LuCI.
|
||||
@@ -11,12 +11,14 @@ LUCI_PKGARCH:=all
|
||||
|
||||
PKG_MAINTAINER:=wukongdaily <wukongdaily@gmail.com>
|
||||
|
||||
# 定义版本号用于缓存刷新
|
||||
define Build/Prepare
|
||||
find $(CURDIR) -type f -name "*.o" -delete
|
||||
$(call Build/Prepare/Default)
|
||||
endef
|
||||
|
||||
define Package/luci-app-run/postinst
|
||||
#!/bin/sh
|
||||
# 设置版本号到临时文件,用于前端资源缓存刷新
|
||||
echo "$(PKG_VERSION)-$(PKG_RELEASE)" > /tmp/luci-app-run.version
|
||||
# 重启 rpcd 服务以加载新插件
|
||||
/etc/init.d/rpcd restart >/dev/null 2>&1 || true
|
||||
exit 0
|
||||
endef
|
||||
|
||||
Reference in new issue
Block a user