update 2022-09-13 20:23:09

This commit is contained in:
github-actions[bot] 2022-09-13 20:23:09 +08:00
parent 56abfa4c30
commit f13ec39fd5
3 changed files with 15 additions and 4 deletions

View File

@ -11,13 +11,13 @@ LUCI_DEPENDS:=+curl +opkg +luci-base +tar +coreutils +coreutils-stat +libuci-lua
LUCI_EXTRA_DEPENDS:=luci-lib-taskd (>=1.0.17)
LUCI_PKGARCH:=all
PKG_VERSION:=0.1.12-5
PKG_VERSION:=0.1.12-7
# PKG_RELEASE MUST be empty for luci.mk
PKG_RELEASE:=
ISTORE_UI_VERSION:=0.1.12
ISTORE_UI_RELEASE:=3
PKG_HASH:=d3772c01c0ffcf27cf60e6f0890989fd940459a6d115500f2c42dc204c1a162c
ISTORE_UI_RELEASE:=4
PKG_HASH:=501ba105bcd60030f8f99768b76b0ca083027ef44f7f5b99c039174472fe5c5a
PKG_SOURCE_URL_FILE:=v$(ISTORE_UI_VERSION)-$(ISTORE_UI_RELEASE).tar.gz
PKG_SOURCE:=istore-ui-$(PKG_SOURCE_URL_FILE)

View File

@ -19,7 +19,7 @@
window.vue_lang = '<%=lang%>';
window.token = "<%=token%>";
window.device_id = {arch:"<%=id.arch%>",uid:"<%=id.uid%>",version:"<%=id.version%>"};
window.istore_features = <%=jsonc.stringify(features)%>;
window.istore_features = <%=jsonc.stringify(features)%>.filter(f => f !== '_lua_force_array_');
})();
</script>
<h2 name="content"><%:iStore%>

View File

@ -40,6 +40,15 @@ fcurl() {
curl --fail --show-error "$@"
}
check_space() {
local free="$((`stat -c '%a * %S' -f /` >> 20 ))"
if [ "$free" -lt 1 ]; then
echo "Root disk full!" >&2
exit 1
fi
return 0
}
update() {
if [ -z "${ARCH}" ]; then
echo "Get architecture failed" >&2
@ -148,6 +157,7 @@ case $action in
update
;;
"install")
check_space
wrapped_in_update install "$@"
;;
"upgrade")
@ -166,6 +176,7 @@ case $action in
check_self_upgrade
;;
"do_self_upgrade")
check_space
do_self_upgrade
;;
"opkg")