Reader small image

You're reading from  .NET MAUI Cross-Platform Application Development - Second Edition

Product typeBook
Published inMar 2024
Reading LevelBeginner
PublisherPackt
ISBN-139781835080597
Edition2nd Edition
Languages
Right arrow
Author (1)
Roger Ye
Roger Ye
author image
Roger Ye

Roger Ye is an embedded system programmer who has great interest in virtualization, Android, and cross-platform technologies. His professional experience includes working with major companies like Motorola, Emerson, Intel, and EPAM, where he held the position of Engineering Manager. At Motorola and Emerson, he worked on embedded system projects for mobile devices and telecommunication infrastructures. He is now an engineering manager at EPAM, working with a team to deliver digital solutions for diverse clients.
Read more about Roger Ye

Right arrow

Deploying and Publishing in App Stores

After completing the development work, our aim is to publish our app on various app stores. Since .NET MAUI is a cross-platform framework, we can build the same source code for Android, iOS, macOS, and Windows. While it’s possible to deploy our app to a repository such as GitHub, most users on these platforms rely on app stores. As a result, we need to understand how to prepare our app for different app stores. That is the focus of this chapter. In this chapter, we will discuss the steps required to prepare the application packages before publishing.

We will cover the following topics in this chapter:

  • Preparing application packages for publishing
  • Automating the build process using GitHub Actions

Technical requirements

To test and debug the source code in this chapter, we need to install .NET MAUI on Windows and macOS. For complete details about environment setup, please refer to the Development environment setup section in Chapter 1, Getting Started with .NET MAUI.

We will build Windows and Android packages using Windows, while iOS and macOS packages will be built using macOS.

The source code for this chapter can be found at the following GitHub repository: https://github.com/PacktPublishing/.NET-MAUI-Cross-Platform-Application-Development-Second-edition/tree/main/2nd/chapter12.

To check out the source code for this chapter, use the command below:

$ git clone -b 2nd/chapter12 https://github.com/PacktPublishing/.NET-MAUI-Cross-Platform-Application-Development-Second-edition.git PassXYZ.Vault2

For more information about the source code in this book, please refer to the Managing the source code in this book section in Chapter 2, Building Our First .NET MAUI...

Preparing application packages for publishing

In previous chapters, minimal platform-specific knowledge was required for .NET MAUI development. However, when preparing to publish our app to individual app stores, we cannot avoid addressing platform-specific information. In this chapter, we will discuss the necessary steps to prepare the app for publishing, and then we will show how to automate the process using GitHub Actions.

There are numerous CI/CD tools available for automating the build and deployment process. For .NET MAUI, both GitHub Actions and Azure DevOps are viable options. You can refer to the Further reading section for more details about other alternatives. However, in this chapter, our primary emphasis will be on employing GitHub Actions as a build and deployment instrument.

Preparing for publishing

To prepare for publishing, we will focus on the tasks that need to be completed before submitting the package to an app store. For information about the actual...

GitHub Actions

Since our source code is hosted on GitHub, let’s use GitHub Actions as an example to introduce you to how to set up CI workflows for .NET MAUI development. GitHub Actions is an automation platform that can help streamline and automate essential tasks related to your project, like building, testing, and deploying code updates. This powerful feature ensures that your code remains verified and ready for deployment at any time, allowing developers to focus on writing new features and fixing bugs while maintaining quality assurance.

Understanding GitHub Actions

For .NET MAUI app development, our target is to build, test, and deploy our apps to app stores or specified publishing channels. In this section, we will focus on CI using GitHub Actions rather than both CI and CD. To deploy apps to various stores, there are many account-specific setup steps; please refer to the .NET MAUI document for the details: https://learn.microsoft.com/en-us/dotnet/maui/deployment...

Summary

CI/CD are common practices in today’s development process. In this chapter, we introduced how to prepare a build so that the resulting packages can be used for the submission to various app stores. The process after the submission of build packages is not covered, since they are platform- and account-specific topics. Please refer to the Further reading section to find out more about how to publish applications to Google Play, Apple Store, and Microsoft Store.

After discussing the build process of each platform, we demonstrated how to automate the process using GitHub Actions.

With all the skills that you’ve learned from this book, you should be able to develop your own .NET MAUI applications and be ready to submit your apps to supported app stores. As you continue to grow as a developer, remember to explore new techniques and refine your understanding of .NET MAUI to create even better applications and streamline your development process.

Here are...

Further reading

Leave a review!

Enjoyed this book? Help readers like you by leaving an Amazon review. Scan the QR code below for a...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
.NET MAUI Cross-Platform Application Development - Second Edition
Published in: Mar 2024Publisher: PacktISBN-13: 9781835080597
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Roger Ye

Roger Ye is an embedded system programmer who has great interest in virtualization, Android, and cross-platform technologies. His professional experience includes working with major companies like Motorola, Emerson, Intel, and EPAM, where he held the position of Engineering Manager. At Motorola and Emerson, he worked on embedded system projects for mobile devices and telecommunication infrastructures. He is now an engineering manager at EPAM, working with a team to deliver digital solutions for diverse clients.
Read more about Roger Ye