Signed-off-by: BigfootACA <bigfoot@classfun.cn>
- name: Install requires packages
run: |
sudo apt-get update
- sudo apt-get -y install build-essential uuid-dev iasl nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git
+ sudo apt-get -y install build-essential uuid-dev iasl nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git gettext
- name: Build device ${{ matrix.device }}
run: |
```bash
sudo apt update
sudo apt upgrade
-sudo apt install build-essential uuid-dev iasl git nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git
+sudo apt install build-essential uuid-dev iasl git nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git gettext
```
## Building
```bash\r
sudo apt update\r
sudo apt upgrade\r
-sudo apt install build-essential uuid-dev iasl git nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git\r
+sudo apt install build-essential uuid-dev iasl git nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git gettext\r
```\r
\r
## 构建\r
echo > ramdisk
set -e
python3 assets/generate-logo.py "${GITCOMMIT}"
-mkdir -p "${_SIMPLE_INIT}/build"
+mkdir -p "${_SIMPLE_INIT}/build" "${_SIMPLE_INIT}/usr/share/locale"
+for i in "${_SIMPLE_INIT}/po/"*.po
+do [ -f "${i}" ]||continue
+ _name="$(basename "$i" .po)"
+ _path="${_SIMPLE_INIT}/root/usr/share/locale/${_name}/LC_MESSAGES"
+ msgfmt -o "${_path}/simple-init.mo" "${i}"
+done
bash "${_SIMPLE_INIT}/scripts/gen-rootfs-source.sh" \
"${_SIMPLE_INIT}" \
"${_SIMPLE_INIT}/build"