Hi,
This patch will inserd into all gluon spesific packages, there have lua code inside, the GluonSrcDiet call define.
I moved the lua code into luasrc directories. After the GluonSrcDiet command the minifyed code can found in $(PKG_BUILD_DIR)/luadest/
cheers Tarek
Jan-Tarek Butt (1): Prepare all gluon packages there contains lua code with the call command to minify lua code
package/gluon-alfred/Makefile | 5 ++++- .../{files => luasrc}/lib/gluon/upgrade/500-enable-alfred | 0 package/gluon-authorized-keys/Makefile | 4 +++- .../{files => luasrc}/lib/gluon/upgrade/100-authorized-keys | 0 package/gluon-autoupdater/Makefile | 8 +++++++- .../{files => luasrc}/lib/gluon/upgrade/500-autoupdater | 0 package/gluon-client-bridge/Makefile | 5 ++++- .../lib/gluon/upgrade/300-gluon-client-bridge-network | 0 .../lib/gluon/upgrade/320-gluon-client-bridge-wireless | 0 package/gluon-config-mode-autoupdater/Makefile | 6 ++++-- .../lib/gluon/config-mode/wizard/0050-autoupdater-info.lua | 0 package/gluon-config-mode-contact-info/Makefile | 4 +++- .../lib/gluon/config-mode/wizard/0500-contact-info.lua | 0 package/gluon-config-mode-core/Makefile | 5 ++++- .../lib/gluon/config-mode/reboot/0900-msg-reboot.lua | 0 .../usr/lib/lua/luci/controller/gluon-config-mode/index.lua | 0 .../usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua | 0 package/gluon-config-mode-geo-location/Makefile | 5 +++-- .../lib/gluon/config-mode/wizard/0400-geo-location.lua | 0 package/gluon-config-mode-hostname/Makefile | 5 +++-- .../lib/gluon/config-mode/wizard/0100-hostname.lua | 0 package/gluon-config-mode-mesh-vpn/Makefile | 5 +++-- .../lib/gluon/config-mode/reboot/0100-mesh-vpn.lua | 0 .../lib/gluon/config-mode/wizard/0300-mesh-vpn.lua | 0 package/gluon-core/Makefile | 4 +++- .../gluon-core/{files => luasrc}/lib/gluon/upgrade/001-upgrade | 0 .../{files => luasrc}/lib/gluon/upgrade/010-primary-mac | 0 .../{files => luasrc}/lib/gluon/upgrade/020-interfaces | 0 .../gluon-core/{files => luasrc}/lib/gluon/upgrade/030-system | 0 .../gluon-core/{files => luasrc}/lib/gluon/upgrade/110-network | 0 .../{files => luasrc}/lib/gluon/upgrade/120-ntp-servers | 0 .../{files => luasrc}/lib/gluon/upgrade/130-reboot-on-oom | 0 .../{files => luasrc}/lib/gluon/upgrade/140-firewall-rules | 0 .../{files => luasrc}/lib/gluon/upgrade/200-wireless | 0 .../gluon-core/{files => luasrc}/lib/gluon/upgrade/500-opkg | 0 .../gluon-core/{files => luasrc}/lib/gluon/upgrade/999-version | 0 .../{files => luasrc}/usr/lib/lua/gluon/platform.lua | 0 .../{files => luasrc}/usr/lib/lua/gluon/site_config.lua | 0 .../{files => luasrc}/usr/lib/lua/gluon/sysconfig.lua | 0 .../gluon-core/{files => luasrc}/usr/lib/lua/gluon/sysctl.lua | 0 .../gluon-core/{files => luasrc}/usr/lib/lua/gluon/users.lua | 0 .../gluon-core/{files => luasrc}/usr/lib/lua/gluon/util.lua | 0 package/gluon-legacy/Makefile | 4 +++- .../{files => luasrc}/lib/gluon/upgrade/000-legacy | 0 .../{files => luasrc}/lib/gluon/upgrade/019-legacy-interfaces | 0 .../{files => luasrc}/lib/gluon/upgrade/210-legacy-wireless | 0 .../{files => luasrc}/lib/gluon/upgrade/290-legacy-setup-mode | 0 .../{files => luasrc}/lib/gluon/upgrade/290-legacy-simple-tc | 0 .../lib/gluon/upgrade/390-legacy-mesh-vpn-fastd | 0 .../{files => luasrc}/lib/gluon/upgrade/990-legacy-late | 0 package/gluon-luci-admin/Makefile | 3 +++ .../usr/lib/lua/luci/controller/admin/index.lua | 0 .../usr/lib/lua/luci/controller/admin/upgrade.lua | 0 .../usr/lib/lua/luci/model/cbi/admin/info.lua | 0 .../usr/lib/lua/luci/model/cbi/admin/remote.lua | 0 package/gluon-luci-autoupdater/Makefile | 4 +++- .../usr/lib/lua/luci/controller/admin/autoupdater.lua | 0 .../usr/lib/lua/luci/model/cbi/admin/autoupdater.lua | 0 package/gluon-luci-mesh-vpn-fastd/Makefile | 3 +++ .../usr/lib/lua/luci/controller/admin/mesh_vpn_fastd.lua | 0 .../usr/lib/lua/luci/model/cbi/admin/mesh_vpn_fastd.lua | 0 package/gluon-luci-node-role/Makefile | 4 +++- .../usr/lib/lua/luci/controller/admin/noderole.lua | 0 .../usr/lib/lua/luci/model/cbi/admin/noderole.lua | 0 package/gluon-luci-portconfig/Makefile | 4 +++- .../usr/lib/lua/luci/controller/admin/portconfig.lua | 0 .../usr/lib/lua/luci/model/cbi/admin/portconfig.lua | 0 package/gluon-luci-private-wifi/Makefile | 4 +++- .../usr/lib/lua/luci/controller/admin/privatewifi.lua | 0 .../usr/lib/lua/luci/model/cbi/admin/privatewifi.lua | 0 package/gluon-luci-wifi-config/Makefile | 4 +++- .../usr/lib/lua/luci/controller/admin/wifi-config.lua | 0 .../usr/lib/lua/luci/model/cbi/admin/wifi-config.lua | 0 package/gluon-mesh-batman-adv-14/Makefile | 3 +++ .../lib/gluon/upgrade/350-gluon-mesh-batman-adv-14 | 0 package/gluon-mesh-batman-adv-15/Makefile | 3 +++ .../lib/gluon/upgrade/350-gluon-mesh-batman-adv-15 | 0 package/gluon-mesh-batman-adv-core/Makefile | 10 +++++++--- .../lib/gluon/upgrade/300-gluon-mesh-batman-adv-core-wan | 0 .../lib/gluon/upgrade/310-gluon-mesh-batman-adv-core-mesh | 0 .../lib/gluon/upgrade/320-gluon-mesh-batman-adv-core-wireless | 0 .../gluon/upgrade/330-gluon-mesh-batman-adv-core-mesh-on-wan | 0 .../gluon/upgrade/340-gluon-mesh-batman-adv-core-mesh-on-lan | 0 .../lib/gluon/upgrade/350-gluon-mesh-batman-adv-core-rssid | 0 package/gluon-mesh-vpn-fastd/Makefile | 9 +++++++-- .../{files => luasrc}/lib/gluon/upgrade/400-mesh-vpn-fastd | 0 .../lib/gluon/upgrade/410-mesh-vpn-fastd-generate-secret | 0 .../lib/gluon/upgrade/420-mesh-vpn-fastd-simple-tc | 0 package/gluon-neighbour-info/Makefile | 7 ++++--- .../lib/gluon/upgrade/400-neighbour-info-firewall | 0 package/gluon-radvd/Makefile | 5 ++++- .../{files => luasrc}/lib/gluon/upgrade/500-radvd-remove-user | 0 package/gluon-respondd/Makefile | 10 ++++++++-- .../{files => luasrc}/lib/gluon/upgrade/400-respondd-firewall | 0 package/gluon-setup-mode/Makefile | 3 +++ .../{files => luasrc}/lib/gluon/setup-mode/www/cgi-bin/luci | 0 .../{files => luasrc}/lib/gluon/upgrade/300-setup-mode | 0 .../{files => luasrc}/lib/gluon/upgrade/310-setup-mode-migrate | 0 .../{files => luasrc}/lib/gluon/upgrade/320-setup-ifname | 0 package/gluon-status-page-api/Makefile | 10 ++++++++-- .../lib/gluon/status-page/www/cgi-bin/interfaces | 0 package/gluon-wan-dnsmasq/Makefile | 5 ++++- .../{files => luasrc}/lib/gluon/wan-dnsmasq/update.lua | 0 103 files changed, 116 insertions(+), 35 deletions(-) rename package/gluon-alfred/{files => luasrc}/lib/gluon/upgrade/500-enable-alfred (100%) rename package/gluon-authorized-keys/{files => luasrc}/lib/gluon/upgrade/100-authorized-keys (100%) rename package/gluon-autoupdater/{files => luasrc}/lib/gluon/upgrade/500-autoupdater (100%) rename package/gluon-client-bridge/{files => luasrc}/lib/gluon/upgrade/300-gluon-client-bridge-network (100%) rename package/gluon-client-bridge/{files => luasrc}/lib/gluon/upgrade/320-gluon-client-bridge-wireless (100%) rename package/gluon-config-mode-autoupdater/{files => luasrc}/lib/gluon/config-mode/wizard/0050-autoupdater-info.lua (100%) rename package/gluon-config-mode-contact-info/{files => luasrc}/lib/gluon/config-mode/wizard/0500-contact-info.lua (100%) rename package/gluon-config-mode-core/{files => luasrc}/lib/gluon/config-mode/reboot/0900-msg-reboot.lua (100%) rename package/gluon-config-mode-core/{files => luasrc}/usr/lib/lua/luci/controller/gluon-config-mode/index.lua (100%) rename package/gluon-config-mode-core/{files => luasrc}/usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua (100%) rename package/gluon-config-mode-geo-location/{files => luasrc}/lib/gluon/config-mode/wizard/0400-geo-location.lua (100%) rename package/gluon-config-mode-hostname/{files => luasrc}/lib/gluon/config-mode/wizard/0100-hostname.lua (100%) rename package/gluon-config-mode-mesh-vpn/{files => luasrc}/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua (100%) rename package/gluon-config-mode-mesh-vpn/{files => luasrc}/lib/gluon/config-mode/wizard/0300-mesh-vpn.lua (100%) rename package/gluon-core/{files => luasrc}/lib/gluon/upgrade/001-upgrade (100%) rename package/gluon-core/{files => luasrc}/lib/gluon/upgrade/010-primary-mac (100%) rename package/gluon-core/{files => luasrc}/lib/gluon/upgrade/020-interfaces (100%) rename package/gluon-core/{files => luasrc}/lib/gluon/upgrade/030-system (100%) rename package/gluon-core/{files => luasrc}/lib/gluon/upgrade/110-network (100%) rename package/gluon-core/{files => luasrc}/lib/gluon/upgrade/120-ntp-servers (100%) rename package/gluon-core/{files => luasrc}/lib/gluon/upgrade/130-reboot-on-oom (100%) rename package/gluon-core/{files => luasrc}/lib/gluon/upgrade/140-firewall-rules (100%) rename package/gluon-core/{files => luasrc}/lib/gluon/upgrade/200-wireless (100%) rename package/gluon-core/{files => luasrc}/lib/gluon/upgrade/500-opkg (100%) rename package/gluon-core/{files => luasrc}/lib/gluon/upgrade/999-version (100%) rename package/gluon-core/{files => luasrc}/usr/lib/lua/gluon/platform.lua (100%) rename package/gluon-core/{files => luasrc}/usr/lib/lua/gluon/site_config.lua (100%) rename package/gluon-core/{files => luasrc}/usr/lib/lua/gluon/sysconfig.lua (100%) rename package/gluon-core/{files => luasrc}/usr/lib/lua/gluon/sysctl.lua (100%) rename package/gluon-core/{files => luasrc}/usr/lib/lua/gluon/users.lua (100%) rename package/gluon-core/{files => luasrc}/usr/lib/lua/gluon/util.lua (100%) rename package/gluon-legacy/{files => luasrc}/lib/gluon/upgrade/000-legacy (100%) rename package/gluon-legacy/{files => luasrc}/lib/gluon/upgrade/019-legacy-interfaces (100%) rename package/gluon-legacy/{files => luasrc}/lib/gluon/upgrade/210-legacy-wireless (100%) rename package/gluon-legacy/{files => luasrc}/lib/gluon/upgrade/290-legacy-setup-mode (100%) rename package/gluon-legacy/{files => luasrc}/lib/gluon/upgrade/290-legacy-simple-tc (100%) rename package/gluon-legacy/{files => luasrc}/lib/gluon/upgrade/390-legacy-mesh-vpn-fastd (100%) rename package/gluon-legacy/{files => luasrc}/lib/gluon/upgrade/990-legacy-late (100%) rename package/gluon-luci-admin/{files => luasrc}/usr/lib/lua/luci/controller/admin/index.lua (100%) rename package/gluon-luci-admin/{files => luasrc}/usr/lib/lua/luci/controller/admin/upgrade.lua (100%) rename package/gluon-luci-admin/{files => luasrc}/usr/lib/lua/luci/model/cbi/admin/info.lua (100%) rename package/gluon-luci-admin/{files => luasrc}/usr/lib/lua/luci/model/cbi/admin/remote.lua (100%) rename package/gluon-luci-autoupdater/{files => luasrc}/usr/lib/lua/luci/controller/admin/autoupdater.lua (100%) rename package/gluon-luci-autoupdater/{files => luasrc}/usr/lib/lua/luci/model/cbi/admin/autoupdater.lua (100%) rename package/gluon-luci-mesh-vpn-fastd/{files => luasrc}/usr/lib/lua/luci/controller/admin/mesh_vpn_fastd.lua (100%) rename package/gluon-luci-mesh-vpn-fastd/{files => luasrc}/usr/lib/lua/luci/model/cbi/admin/mesh_vpn_fastd.lua (100%) rename package/gluon-luci-node-role/{files => luasrc}/usr/lib/lua/luci/controller/admin/noderole.lua (100%) rename package/gluon-luci-node-role/{files => luasrc}/usr/lib/lua/luci/model/cbi/admin/noderole.lua (100%) rename package/gluon-luci-portconfig/{files => luasrc}/usr/lib/lua/luci/controller/admin/portconfig.lua (100%) rename package/gluon-luci-portconfig/{files => luasrc}/usr/lib/lua/luci/model/cbi/admin/portconfig.lua (100%) rename package/gluon-luci-private-wifi/{files => luasrc}/usr/lib/lua/luci/controller/admin/privatewifi.lua (100%) rename package/gluon-luci-private-wifi/{files => luasrc}/usr/lib/lua/luci/model/cbi/admin/privatewifi.lua (100%) rename package/gluon-luci-wifi-config/{files => luasrc}/usr/lib/lua/luci/controller/admin/wifi-config.lua (100%) rename package/gluon-luci-wifi-config/{files => luasrc}/usr/lib/lua/luci/model/cbi/admin/wifi-config.lua (100%) rename package/gluon-mesh-batman-adv-14/{files => luasrc}/lib/gluon/upgrade/350-gluon-mesh-batman-adv-14 (100%) rename package/gluon-mesh-batman-adv-15/{files => luasrc}/lib/gluon/upgrade/350-gluon-mesh-batman-adv-15 (100%) rename package/gluon-mesh-batman-adv-core/{files => luasrc}/lib/gluon/upgrade/300-gluon-mesh-batman-adv-core-wan (100%) rename package/gluon-mesh-batman-adv-core/{files => luasrc}/lib/gluon/upgrade/310-gluon-mesh-batman-adv-core-mesh (100%) rename package/gluon-mesh-batman-adv-core/{files => luasrc}/lib/gluon/upgrade/320-gluon-mesh-batman-adv-core-wireless (100%) rename package/gluon-mesh-batman-adv-core/{files => luasrc}/lib/gluon/upgrade/330-gluon-mesh-batman-adv-core-mesh-on-wan (100%) rename package/gluon-mesh-batman-adv-core/{files => luasrc}/lib/gluon/upgrade/340-gluon-mesh-batman-adv-core-mesh-on-lan (100%) rename package/gluon-mesh-batman-adv-core/{files => luasrc}/lib/gluon/upgrade/350-gluon-mesh-batman-adv-core-rssid (100%) rename package/gluon-mesh-vpn-fastd/{files => luasrc}/lib/gluon/upgrade/400-mesh-vpn-fastd (100%) rename package/gluon-mesh-vpn-fastd/{files => luasrc}/lib/gluon/upgrade/410-mesh-vpn-fastd-generate-secret (100%) rename package/gluon-mesh-vpn-fastd/{files => luasrc}/lib/gluon/upgrade/420-mesh-vpn-fastd-simple-tc (100%) rename package/gluon-neighbour-info/{files => luasrc}/lib/gluon/upgrade/400-neighbour-info-firewall (100%) rename package/gluon-radvd/{files => luasrc}/lib/gluon/upgrade/500-radvd-remove-user (100%) rename package/gluon-respondd/{files => luasrc}/lib/gluon/upgrade/400-respondd-firewall (100%) rename package/gluon-setup-mode/{files => luasrc}/lib/gluon/setup-mode/www/cgi-bin/luci (100%) rename package/gluon-setup-mode/{files => luasrc}/lib/gluon/upgrade/300-setup-mode (100%) rename package/gluon-setup-mode/{files => luasrc}/lib/gluon/upgrade/310-setup-mode-migrate (100%) rename package/gluon-setup-mode/{files => luasrc}/lib/gluon/upgrade/320-setup-ifname (100%) rename package/gluon-status-page-api/{files => luasrc}/lib/gluon/status-page/www/cgi-bin/interfaces (100%) rename package/gluon-wan-dnsmasq/{files => luasrc}/lib/gluon/wan-dnsmasq/update.lua (100%)