Skip to content

Commit

Permalink
ci(build-ipk): fix checkout po2lmo source
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
  • Loading branch information
1715173329 committed Jan 11, 2024
1 parent d7609f6 commit 1812d6c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/build-ipk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#
# Copyright (C) 2023 Tianling Shen <cnsztl@immortalwrt.org>

set -o errexit
set -o pipefail

export PKG_SOURCE_DATE_EPOCH="$(date "+%s")"

BASE_DIR="$(cd "$(dirname $0)"; pwd)"
Expand Down Expand Up @@ -54,8 +57,12 @@ cat > "$TEMP_PKG_DIR/CONTROL/control" <<-EOF
Description: The modern ImmortalWrt proxy platform for ARM64/AMD64
EOF

svn co "https://github.com/openwrt/luci/trunk/modules/luci-base/src" "po2lmo"
git clone --filter=blob:none --no-checkout "https://github.com/openwrt/luci.git" "po2lmo"
pushd "po2lmo"
git config core.sparseCheckout true
echo "modules/luci-base/src" >> ".git/info/sparse-checkout"
git checkout
cd "modules/luci-base/src"
make po2lmo
./po2lmo "$PKG_DIR/po/zh_Hans/homeproxy.po" "$TEMP_PKG_DIR/usr/lib/lua/luci/i18n/homeproxy.zh-cn.lmo"
popd
Expand Down

0 comments on commit 1812d6c

Please sign in to comment.