- Download BattleNet.flatpak from releases
- Install BattleNet.flatpak (sudo needed for installing single use Flatpak bundle)
sudo flatpak install BattleNet.flatpak
- Launch the BattleNet Flatpak (Either search for the app in your menu and click it) or
flatpak run com.blizzard.BattleNet
- Remove BattleNet Flatpak
flatpak remove com.blizzard.BattleNet
- Switch the branch to WineStaging, using the dropdown at the top left, then click the green button to download zip and extract once downloaded or clone repo with
git clone --recurse-submodules https://github.com/ChrisHobday/com.blizzard.BattleNet
- Install Flatpak builder
flatpak install flathub org.flatpak.Builder
- Install the platform this Flatpak will be using
flatpak install flathub org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08
- Download and install WineStaging Flatpaks from https://github.com/ChrisHobday/org.winehq.WineStaging/releases (This Flatpak uses them as a base)
- Switch to WineStaging branch (If you cloned repo) (Run this from within the com.blizzard.BattleNet directory)
git checkout WineStaging
- Build the Flatpak with flatpak-builder (Run this from within the com.blizzard.BattleNet directory)
flatpak run org.flatpak.Builder --force-clean --repo=repo build-dir com.blizzard.BattleNet.yml
- Replace last Building step with
flatpak run org.flatpak.Builder --force-clean --repo=repo --user --install build-dir com.blizzard.BattleNet.yml
Building single use Flatpak bundle like in the releases (After having followed the Building steps above)
- Build the Flatpak bundle (Run this from within the com.blizzard.BattleNet directory after having followed the Building steps above)
flatpak build-bundle repo BattleNet.flatpak com.blizzard.BattleNet
- Check if Flatpak is installed
flatpak list | grep BattleNet
- Enter Flatpak in command line mode
flatpak run --command=sh com.blizzard.BattleNet
- Installation directory = /var/lib/flatpak/app/com.blizzard.BattleNet/
- Installation directory (User mode) = ~/.local/share/flatpak/app/com.blizzard.BattleNet/
- User cache directory = ~/.var/app/com.blizzard.BattleNet/cache/
- User config directory = ~/.var/app/com.blizzard.BattleNet/config/
- User data directory = ~/.var/app/com.blizzard.BattleNet/data/
- Wine prefix = ~/.var/app/com.blizzard.BattleNet/data/WinePrefix