From 4db94d2769f4e83e88930c8e6892791ebfd8d90b Mon Sep 17 00:00:00 2001 From: lisaac Date: Sun, 12 Jan 2020 11:26:18 +0800 Subject: [PATCH] fix github actions --- .github/workflows/build.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 02987ee..073cb89 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,14 @@ jobs: [ -d $GITHUB_WORKSPACE/luasrc ] && cp -R $GITHUB_WORKSPACE/luasrc/* /tmp/luci-app-diskman/usr/lib/lua/luci/ [ -d $GITHUB_WORKSPACE/root ] && cp -R $GITHUB_WORKSPACE/root/* /tmp/luci-app-diskman/ [ -d $GITHUB_WORKSPACE/htdoc ] && cp -R $GITHUB_WORKSPACE/htdoc/* /tmp/luci-app-diskman/www/ + [ -d $GITHUB_WORKSPACE/po ] && + sudo -E apt-get -y install gcc make && \ + mkdir -p /tmp/po2lmo && mkdir -p /tmp/luci-app-diskman/usr/lib/lua/luci/i18n/ && \ + wget -O /tmp/po2lmo/po2lmo.c https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/src/po2lmo.c && \ + wget -O /tmp/po2lmo/Makefile https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/src/Makefile && \ + wget -O /tmp/po2lmo/template_lmo.h https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/src/template_lmo.h && \ + wget -O /tmp/po2lmo/template_lmo.c https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/src/template_lmo.c && \ + cd /tmp/po2lmo && make po2lmo && ./po2lmo $GITHUB_WORKSPACE/po/zh-cn/diskman.po /tmp/luci-app-diskman/usr/lib/lua/luci/i18n/diskman.zh-cn.lmo mkdir -p /tmp/luci-app-diskman/CONTROL cat >/tmp/luci-app-diskman/CONTROL/control <