Skip to content

Instantly share code, notes, and snippets.

@NoozAbooz
Last active March 13, 2021 15:13
Show Gist options
  • Save NoozAbooz/a2ed7ef834ed3d45b9bd91b676289748 to your computer and use it in GitHub Desktop.
Save NoozAbooz/a2ed7ef834ed3d45b9bd91b676289748 to your computer and use it in GitHub Desktop.
WeChat Desktop on Raspberry PI

Run WeChat desktop client on a Raspberry Pi. Written by Raspberry Pi News on youtube

  1. Download box86, wine x86, and winetricks to run WeChat(If using Twister OS, skip these steps) Run these commands in terminal:
sudo apt-get install cmake -y
 
cd ~/Downloads
git clone https://github.com/ptitSeb/box86
cd box86
mkdir build; cd build; cmake .. -DRPI4=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j4
sudo make install
sudo systemctl restart systemd-binfmt
cd ~/Downloads
rm -rf box86 # clean up

# Download
cd ~/Downloads
wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-i386/wine-devel-i386_5.21~buster_i386.deb
wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-i386/wine-devel_5.21~buster_i386.deb
dpkg-deb -xv wine-devel-i386_5.21~buster_i386.deb wine-installer
dpkg-deb -xv wine-devel_5.21~buster_i386.deb wine-installer

# Install
sudo mv wine-installer/opt/wine-devel ~/wine
sudo ln -s ~/wine/bin/wine /usr/local/bin/wine
sudo ln -s ~/wine/bin/winecfg /usr/local/bin/winecfg
sudo ln -s ~/wine/bin/wineserver /usr/local/bin/wineserver

# Boot wine (make fresh wineprefix in ~/.wine )
wine wineboot

# Backup old winetricks
sudo mv /usr/local/bin/winetricks /usr/local/bin/winetricks-old

# Download
cd ~/Downloads
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks

# Install
sudo chmod +x winetricks
sudo cp winetricks /usr/local/bin

# winetricks needs this installed
sudo apt-get install cabextract -y
  1. Install font stuff so chinese fonts work

BOX86_NOBANNER=1 winetricks corefonts gdiplus riched20 riched30 wenquanyi cjkfonts

  1. Add registry stuff so fonts load by running cd ~ && wget https://gist.githubusercontent.com/swordfeng/c3fd6b6fcf6dc7d7fa8a/raw/0ad845f98f5a97e7173ff40b5e57b3a163e92465/chn_fonts.reg Run wine regedit, and in the Menu bar, click "Registry" and select "Import Registry File". When the file browser shows up, browse to the Downloads folder in your home folder. Select the chn_fonts.reg file.

  2. Download and install wechat Go to https://www.wechat.com/en/ and download the windows client.

Open terminal and run wine ~/Downloads/WeChatSetup.exe

Install it, and then open the desktop shortcut on your desktop. Login with QR code and boom! Everything should work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment