Update 'Makefile'

main
ben 1 year ago
parent 0af949b8bc
commit 363c4ffb6f

@ -1,5 +1,4 @@
# LuCI Alpha Theme
# Copyright 2022 derisamedia <yuimizuno86@gmail.com>
# LuCI PrivateRouter Theme
#
# Licensed under the Apache License v2.0
# http://www.apache.org/licenses/LICENSE-2.0
@ -40,12 +39,14 @@ define Package/luci-theme-$(THEME_NAME)/install
$(CP) -a ./template/* $(1)/usr/lib/lua/luci/view/themes/$(THEME_NAME)/ 2>/dev/null || true
$(INSTALL_DIR) $(1)/www/luci-static/resources
$(CP) -a ./js/* $(1)/www/luci-static/resources/ 2>/dev/null || true
$(INSTALL_DIR) $(1)/www/luci-static/resources/view/dashboard/css/
$(CP) -a ./css/* $(1)/www/luci-static/resources/view/dashboard/css/ 2>/dev/null || true
endef
define Package/luci-theme-$(THEME_NAME)/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
( . /etc/uci-defaults/30-luci-theme-$(THEME_NAME) ) && rm -f /etc/uci-defaults/30-luci-theme-$(THEME_NAME)
( . /etc/uci-defaults/30-luci-theme-$(THEME_NAME) ) && rm -f /etc/uci-defaults/30-luci-theme-$(THEME_NAME)
}
endef

Loading…
Cancel
Save