How can i build a mac package like the official release package?

neo24

New Member
I build a package which can run in other mac,but it has some bug not like the offcial release package(git pull with the same source code)
I think i didn't build it with right methods,i want to know the right methods to build it


my methods below,i saw it in here https://obsproject.com/forum/threads/mac-package-building.48767/

According to JIM's answer:

[13:14] <Jim-> if you want to create an app package, you have to use the python script. I'll link it
[13:14] <Jim-> https://github.com/kc5nra/obs-studio-utils/blob/master/install/osx/build_app.py
[13:14] <Jim-> says python 3 but might require python 2
[13:15] <Jim-> you create a release build, then do: build_app.py rundir/Release
[13:15] <Jim-> then it builds a functioning .app package

Hot to create dmg:

1) python build_app.py -d rundir/RelWithDebInfo/ -n 1 (this will produce OBS.app dir with all deps in)
2) hdiutil create package.dmg -volname "OBS-Studio" -srcfolder OBS.app/ (this will produce package.dmg with OBS.app in)
 
Top