Xamarin Project (OSX)

In order for you to change the appearance of your launchers we added an archive with the source code of the Xamarin project to the package.


Preparation


If you do not have Visual Studio for Mac installed, please install it from the official site. Also, before installation, make sure macOS (Cocoa) is selected.

screen3.png

If you do not have last version of Xcode, download it from AppStore.

Unpack the SGPatcherXamarin-source.zip archive to any folder(this archive is located on the following path: Assets/SIDGIN/SIDGIN.Patcher/).

Next, open the project SIDGIN.Patcher.VSClientMac.csproj.


View Edit


To edit launcher view open Main.storyboard with Xcode. 

image-1590953037807.png

You should see this window:

image-1590953164588.png

In this editor you can add, change controls and other application parameters. After you have made all the necessary changes, save and close this window.


Change application icons


To change the icons we have proposed to your own double-click on Assets.xcassets and select AppIcon.

image-1590953485573.png

Scroll all the way down and you can show icons for mac. Replace them. 

image-1590953611475.png


Code Editing


All update logic is concentrated in the ViewController class. Here you can see several methods:

  • Start - starts the update process.
  • GetConfigurationBuilder - loads a configuration file from disk.
  • MainProgress - displays the program process.

If you want to change the logic, please see the section SG Patcher API.


Build application


To build application go to Build -> Build All. After build you will receive a file and you must place the configuration(Version Building) file inside app file and configure the localization(Multilingual).

image-1590954292943.png


Xamarin Documentation


For a deeper understanding of Xamarin please read the official documentation.