本教程参考了以下内容:
https://aur.archlinux.org/packages/wechat-beta-bwrap
https://www.52pojie.cn/thread-1896902-1-1.html
https://www.52pojie.cn/forum.php?mod=redirect&goto=findpost&ptid=1896902&pid=49675160
在仓库目录下执行:
makepkg
构建完成后会生成一个wechat-beta-bwrap-1.0.0.145-11-x86_64.pkg.tar.zst
安装包,若需要在Ubuntu等Debian发行版上安装则需要重新打包为.deb格式,
先通过命令
mkdir wechat-beta_bwrap
bsdtar -xvf wechat-beta-bwrap-1.0.0.145-11-x86_64.pkg.tar.zst -C wechat-beta_bwrap
将安装包解压
docker cp archlinux:/wechat-beta-bwrap/wechat-beta_bwrap .
docker cp archlinux:/wechat-beta-bwrap/DEBIAN wechat-beta_bwrap
dpkg-deb -b wechat-beta_bwrap wechat-beta_1.0.0.145_amd64.bwrap.deb
sudo dpkg -i wechat-beta_1.0.0.145_amd64.bwrap.deb