packages: fix install translation files
This commit is contained in:
parent
2cfc707665
commit
d4f607c933
@ -26,7 +26,7 @@ define Package/$(PKG_NAME)/postinst
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
$(foreach po,$(wildcard ${CURDIR}/i18n/zh-cn/*.po), \
|
||||
$(foreach po,$(wildcard ${CURDIR}/i18n/zh_Hans/*.po), \
|
||||
po2lmo $(po) $(PKG_BUILD_DIR)/$(patsubst %.po,%.lmo,$(notdir $(po)));)
|
||||
chmod 0755 ${CURDIR}/files/etc/init.d/openclash
|
||||
chmod -R 0755 ${CURDIR}/files/usr/share/openclash/
|
||||
|
||||
@ -22,7 +22,7 @@ define Package/luci-app-clash/description
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
po2lmo ${CURDIR}/po/zh-cn/clash.po ${CURDIR}/po/zh-cn/clash.zh-cn.lmo
|
||||
po2lmo ${CURDIR}/po/zh_Hans/clash.po ${CURDIR}/po/zh-cn/clash.zh_Hans.lmo
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
@ -146,7 +146,7 @@ define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DATA) ./luasrc/controller/*.lua $(1)/usr/lib/lua/luci/controller/
|
||||
$(INSTALL_DATA) ./luasrc/model/cbi/clash/*.lua $(1)/usr/lib/lua/luci/model/cbi/clash/
|
||||
$(INSTALL_DATA) ./luasrc/view/clash/* $(1)/usr/lib/lua/luci/view/clash/
|
||||
$(INSTALL_DATA) ./po/zh-cn/clash.zh-cn.lmo $(1)/usr/lib/lua/luci/i18n/
|
||||
$(INSTALL_DATA) ./po/zh-cn/clash.zh_Hans.lmo $(1)/usr/lib/lua/luci/i18n/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
|
||||
@ -91,7 +91,7 @@ define Package/luci-app-ssr-plus/install
|
||||
$(INSTALL_DATA) ./luasrc/controller/*.lua $(1)/usr/lib/lua/luci/controller/
|
||||
$(INSTALL_DATA) ./luasrc/model/cbi/shadowsocksr/*.lua $(1)/usr/lib/lua/luci/model/cbi/shadowsocksr/
|
||||
$(INSTALL_DATA) ./luasrc/view/shadowsocksr/* $(1)/usr/lib/lua/luci/view/shadowsocksr/
|
||||
po2lmo ./po/zh-cn/ssr-plus.po $(1)/usr/lib/lua/luci/i18n/ssr-plus.zh-cn.lmo
|
||||
po2lmo ./po/zh_Hans/ssr-plus.po $(1)/usr/lib/lua/luci/i18n/ssr-plus.zh_Hans.lmo
|
||||
endef
|
||||
|
||||
define Package/luci-app-ssr-plus/postinst
|
||||
|
||||
Loading…
Reference in New Issue
Block a user