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.
Last updated
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.
Last updated
Follow guide by GitHub to install git for your OS.
Follow the official for your OS.
You will also need to ensure that your PATH
environment variable also includes the path to your ~/go/bin
directory.
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' }
macOS / Linux:
Windows:
To check that Bun was installed successfully, open a new terminal window and run bun --version
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 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
.
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.
If you see something like wails3: command not found...
make sure you've followed previous instructions to add /go/bin
to path correctly