Preconfigure desktop client [mac]

Is there a way to preconfigure the mac client?
I would like to add the server so that the user does not have to configure it.

Thanks.

I think there is no official way that you can brand and preset your client automatically. However, it is open source, so you can just get it, put your settings as default and compile it yourself.

We do this on Windows where I work. I created a vbscript which installs the application, then overwrites the default generated configuration file that has the server and user account preloaded (all they have to do is type in their password). This is a good method if you want to be able to use updated versions of the installer without having to recompile every time (unless the config structure changes).
In your case, you could create a .sh script to install the pkg and then just copy/paste a generic default config file to wherever that is stored. Or generate it using the script like what I did, similar to this:
> configFileContents = “[General]” & vbCrLf & _

"optionalDesktopNotifications=true" & vbCrLf & _

“crashReporter=true” & vbCrLf & _
“monoIcons=false” & vbCrLf & _
“newBigFolderSizeLimit=500” & vbCrLf & _
“useNewBigFolderSizeLimit=false” & vbCrLf & _
“” & vbCrLf & _
“[Accounts]” & vbCrLf & _
“0\Folders” & cloudDirectoryPath & “\localPath=” & cloudFolderPath & vbCrLf & _
“version=2” & vbCrLf & _
“0\Folders” & cloudDirectoryPath & “\targetPath=/” & vbCrLf & _
“0\url=https://cloud.yourdomain.com” & vbCrLf & _
“0\Folders” & cloudDirectoryPath & “\paused=false” & vbCrLf & _
“0\http_certificatePasswd=” & vbCrLf & _
“0\Folders” & cloudDirectoryPath & “\ignoreHiddenFiles=true” & vbCrLf & _
“0\http_certificatePath=” & vbCrLf & _
“0\http_user=” & userName & vbCrLf & _
“0\authType=http” & vbCrLf & _
“0\user=” & userName & vbCrLf