Build from Source
Build DMG yourself from source code. This is only recommended for people who don't have access to binaries or packages, or for developers who want to contribute to DMG.
Requirements
Git
Follow this guide by GitHub to install git for your OS.
Go
Follow the official Go Installation Instructions for your OS.
You will also need to ensure that your PATH
environment variable also includes the path to your ~/go/bin
directory.
~/go/bin
is usually automatically added to path on Windows if you use the official installer. It will usually have to be done manually on Linux / macOS.
On Linux and macOS, copy and run this code block in terminal to do it automatically:
Fully close and restart your terminal then do the following checks:
Check Go is installed correctly:
go version
Check
~/go/bin
is in your PATH variable, the output from running these commands should not be empty:Mac / Linux:
echo $PATH | grep go/bin
Windows:
$env:PATH -split ';' | Where-Object { $_ -like '*\go\bin' }
Bun
macOS / Linux:
Windows:
To check that Bun was installed successfully, open a new terminal window and run bun --version
Setting up
Begin by cloning the DMG repository and changing into the directory:
Install go dependencies:
Install wails CLI:
Run this command to check if you have the correct dependencies installed. If not, it will advise on what is missing and help on how to rectify any problems.
If you see something like wails3: command not found...
make sure you've followed these previous instructions to add /go/bin
to path correctly
Build (Recommended)
If you don't intend to make any changes and want to build an optimized binary:
After completing, the binary will be located in Dank-Memer-Grinder/bin
.
Dev
We can also run DMG in development mode. This mode allows you to make changes to code and see the changes reflected in the running application without having to rebuild the entire application:
After installation, you can proceed to configuring DMG.
Entering Token and Channel IDLast updated