[Windows][VC2022][Solution] Compiling Canary Launcher Sources

1 - Requirement:

  • Create a github repository with your launcher files.

2 - Downloads Required:

3 - Visual Studio 2022:

  • On the Visual Studio home screen, in the Visual Studio Community 2022 product click the Install button.

  • On the next screen under Workloads select Desktop Development with .NET.

  • Then in Language Packs, select English.

4 - Install the necessary software:

  • Install .NET 6.0.

  • Install Git.

5 - Canary Launcher Sources:

  • Download Canary Launcher sources with the command below in Powershell:

6 - Editing Canary Launcher:

  • Open src/MainWindow.xaml.cs and find for:

  • Then Change for your launcher_config.json github repository link.

  • Open src/SplashScreen.xaml.cs and find for:

  • Then Change for your launcher_config.json github repository link.

7 - Compiling Canary Launcher:

  • Open CanaryLauncherUpdate.csproj on Visual Studio 2022, select Release in the drop down menu then go to the menu Build > Build Solution.

8 - Configuring Canary Launcher:

  • Go to the Releases category of your launcher github repository.

  • Create a release for your launcher and upload the client zip in the attachments.

  • Check if your client files is a zip like the example below:

  • Open launcher_config.json and configure the options like the example below:

  • Then your launcher is ready and you can use to download the client.

9 - How to Update:

  • Update the launcher_config.json in your repository with your new client version, example:

  • Commit the change in your repository.

  • Upload the changes to a new release (if it is a new release, you need to update the link in the json. Or use the existing zip.

  • Your Canary Launcher will automatically download the new release on the next run.

10 - Credits:

  • Majesty

Last updated