Skip to content
Luca Weiss edited this page Dec 11, 2022 · 4 revisions

The following commands build RazerGenie into a .app file which can be launched like a normal application:

# Install dependencies
brew install meson qt@5 svg2png

# Build and package
export PATH=/usr/local/opt/qt@5/bin:$PATH
meson setup --prefix=$PWD/out/RazerGenie.app --bindir=Contents/MacOS builddir
meson install -C builddir
rm -rf out/RazerGenie.app/share
install_name_tool -change $PWD/out/RazerGenie.app/lib/libopenrazer.0.dylib @executable_path/libopenrazer.0.dylib out/RazerGenie.app/Contents/MacOS/razergenie
cp builddir/subprojects/libopenrazer/libopenrazer.0.dylib out/RazerGenie.app/Contents/MacOS/
macdeployqt out/RazerGenie.app

Finally you can navigate to RazerGenie/out/ folder in Finder and optionally copy RazerGenie.app to your Applications folder.

Clone this wiki locally