From 754b0325840ee55fb8b7c127ee5977483cfb8d85 Mon Sep 17 00:00:00 2001 From: cobalt2727 <60624944+cobalt2727@users.noreply.github.com> Date: Wed, 27 Oct 2021 21:14:46 -0400 Subject: [PATCH] reformat code snippets, reword guide to build .deb from previous revision --- Building-for-Linux.md | 53 +++++++++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 14 deletions(-) diff --git a/Building-for-Linux.md b/Building-for-Linux.md index 2005537..2357091 100644 --- a/Building-for-Linux.md +++ b/Building-for-Linux.md @@ -28,26 +28,51 @@ You can reinstall them after Dolphin builds successfully if you like. ## Building ### Global Build -1. `mkdir build && cd build` -2. `cmake ..` -3. `make -j$(nproc)` -4. `sudo make install` (optional, to install) +```bash +mkdir build && cd build + +cmake .. + +make -j$(nproc) + +sudo make install #optional, to install Dolphin +``` ### Local Build -1. `mkdir build && cd build` -2. `cmake .. -DLINUX_LOCAL_DEV=true` -3. `make -j$(nproc)` -4. `ln -s ../../Data/Sys Binaries/` +```bash +mkdir build && cd build + +cmake .. -DLINUX_LOCAL_DEV=true + +make -j$(nproc) + +ln -s ../../Data/Sys Binaries/ +``` ### Portable Build -1. `mkdir build && cd build` -2. `cmake .. -DLINUX_LOCAL_DEV=true` -3. `make -j$(nproc)` -4. `cp -r ../Data/Sys/ Binaries/` -5. `touch Binaries/portable.txt` +```bash +mkdir build && cd build + +cmake .. -DLINUX_LOCAL_DEV=true + +make -j$(nproc) + +cp -r ../Data/Sys/ Binaries/ + +touch Binaries/portable.txt +``` ### Distributable .deb Package -https://github.com/dolphin-emu/dolphin/pull/10170 +following instructions at [the PR this feature was implemented](https://github.com/dolphin-emu/dolphin/pull/10170): +```bash +mkdir build && cd build + +cmake -DCPACK_PACKAGE_CONTACT="Your Name Here" .. #you're responsible for what you distribute + +make -j$(nproc) + +cpack -G DEB +``` ## Externally Managed Packages On some distributions of Linux, package maintainers provide unmodified builds of Dolphin. These are listed below: