mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-05-25 09:29:48 +08:00
调整binfmt注册方式
This commit is contained in:
parent
931fd3114a
commit
1c13377979
@ -164,13 +164,16 @@ jobs:
|
||||
# 配置环境
|
||||
sudo apt update
|
||||
sudo apt install python3-requests debootstrap xz-utils qemu-user-static git -y
|
||||
sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools psmisc wget -y
|
||||
sudo apt install binfmt-support qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools psmisc wget -y
|
||||
git clone https://github.com/gfdgd-xi/deep-wine-runner --depth=1
|
||||
sudo cp deep-wine-runner/.github/workflows/DaoXiangHu-stable /usr/share/debootstrap/scripts/
|
||||
wget https://github.com/sunhaiyong1978/CLFS-for-LoongArch/releases/download/20210903/qemu-x86_64-to-loongarch64
|
||||
sudo cp qemu-x86_64-to-loongarch64 /usr/bin/qemu-loongarch64
|
||||
sudo chmod 777 /usr/bin/qemu-loongarch64
|
||||
sudo cp qemu-x86_64-to-loongarch64 /bin/qemu-loongarch64
|
||||
sudo chmod 777 /bin/qemu-loongarch64
|
||||
echo ":qemu-loongarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02\x01:\xff\xff\xff\xff\xff\xfe\xfe\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/bin/qemu-loongarch64:" | sudo tee /proc/sys/fs/binfmt_misc/register
|
||||
sudo update-binfmts --install loongarch64 /usr/bin/qemu-loongarch64 \
|
||||
--magic '\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02\x01' \
|
||||
--mask '\xff\xff\xff\xff\xff\xfe\xfe\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff'
|
||||
cd ~
|
||||
mkdir package
|
||||
# 部署 chroot 环境
|
||||
|
Loading…
x
Reference in New Issue
Block a user