How do you build appium.dmg from source

I know how to build from source to run node .

How do I build the dmg for the UI tool part?

You need to open it with Xcode. Then sign and export it using xcode.