-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from bitrot-alpha/patch-1
Add Linux Build instructions to MONO.md
- Loading branch information
Showing
1 changed file
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,59 @@ | ||
# How to build and/or run MemcardRex on Linux | ||
|
||
The project is working well with Mono. | ||
|
||
1. Install mono from the [official site](http://www.mono-project.com/download/). The package included on some Linux distributions is not working. | ||
2. Run the following command: ``xbuild /property:TargetFrameworkVersion=v4.0`` | ||
|
||
If you just want to run MemcardRex, follow Step 1 of [Install Build tools and Dependencies](#install-build-tools-and-dependencies) below, and then download MemcardRex from [releases](https://github.com/ShendoXT/memcardrex/releases). | ||
|
||
### Clone the project | ||
In a directory of your choice, download MemcardRex: | ||
|
||
``git clone https://github.com/ShendoXT/memcardrex.git`` | ||
|
||
### Install Build tools and Dependencies | ||
|
||
1. Install mono from either the [official site](http://www.mono-project.com/download/), or your distribution's package manager. The package included on some Linux distributions may not work properly. | ||
2. Install nuget from your package manager. If you installed Mono following the website instructions, your package manager will now install the official version of nuget. | ||
3. Update nuget: ``sudo nuget update -self`` | ||
4. Edit nuget's configuration file in `~/.config/NuGet/NuGet.Config` | ||
|
||
Either use the configuration below, or make your own with [Microsoft's documentation](https://docs.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior). | ||
``` | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<config> | ||
</config> | ||
<packageSources> | ||
<add key="public feed" value="https://api.nuget.org/v3/index.json"/> | ||
</packageSources> | ||
<packageRestore> | ||
<add key="enabled" value="True" /> | ||
<add key="automatic" value="True" /> | ||
</packageRestore> | ||
<bindingRedirects> | ||
<add key="skip" value="False" /> | ||
</bindingRedirects> | ||
<packageManagement> | ||
<add key="format" value="0" /> | ||
<add key="disabled" value="True" /> | ||
</packageManagement> | ||
</configuration> | ||
``` | ||
|
||
5. `cd` to wherever you downloaded MemcardRex to. | ||
6. Run `nuget restore -NoCache` to download project dependencies. | ||
|
||
### Build MemcardRex | ||
|
||
In the folder where the git project is located, run the following in your terminal: ``xbuild /property:TargetFrameworkVersion=v4.0`` | ||
|
||
If the build is successful, the executable will be in `memcardrex/MemcardRex/bin/Debug/` | ||
|
||
### Run MemcardRex | ||
|
||
Navigate to where the executable is located (see last step) in terminal and run `mono MemcardRex.exe` | ||
|
||
If you are trying to use a DexDrive connected by serial port or USB serial, you may have to run mono as root: `sudo mono MemcardRex.exe` | ||
|