STEP 31.HOW TO PUBLISH .NET MAUI APP. HOW TO GENERATE APK KEY on .NET MAUI||DEPLOY .NET MAUI APP

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
foreign [Music] consider subscribing so if you watch our videos previously you can be able to follow up that we had created uh an API an employee API and linked it to our mobile app that is not my so we have this mobile app that we have been creating over time so if you are new to this channel you can consider watching and be able to see what we have done so far so today I'm going to show you guys how to generate an APK from our app so this is the app that we have just created so we are going to see how we can publish this app then you can be able to host it somewhere or even share for someone to install on their devices so to begin with let's go to our app so this is our app uh we can actually stop it so I want us to open the terminal so just come to view then a terminal so it will open a terminal for us so we are going to use this terminal to generate our APK so I'll just uh try to expand it so that you can be able to follow so on my terminal I'm going to I have something here that you are going to use so there's this command that I want us to copy so this command I want us to copy here sorry let me just exit so I want us to copy this command so I'll just do that so I want us to modify some things so you can see we have the key tool then uh all of this commands so on my app my app.keystone I want to change this the name of my key uh Stone so I want to call this a key then my allies so I'm going to change my allies of the my app key to something else so we can call this uh employee up so that is my allies then uh my validity of the certificate so you can see the validity here so you can change this validity based on how you want it to be valid so when you press enter it will it will ask you for enter the key Keystone password remember the Keystone that we have given it is the key dot Keystone so that is the name please remember it so I'm going also to provide the password for for our Keystone so you also need to remember that password so for me I'm going to do admin one two three so that is the Keystone that I'm going to use admin one two three so remember also that password because we'll need it somewhere else so it is also saying what is your first name and last name so I'm going to provide macro code then what is the name of your organization unit so I'm going to say macro code so you can also do the same then what is the name of your organization I'm going to use macro code so for this I'm just doing for testing and showcasing for you guys how you can be able to publish your app app uh produce an APK share for us people to actually install it on their devices so what is the name of your organization I'm going to provide a macro code but you can as well do the same for your what is the name of your city I'm going to say Nairobi then uh what is the name of your state or Province I'm going to say Nairobi so it's kind of a questions so you will be able to answer some of these questions then it says what is the two letter country code for these units so the country code is ke which is for Kenya so hope you can be able to see my screen guys then if I press enter it will actually give me all the information that I've been are doing you can see the the organization unit is macro code the organization is macro code the the first and last name is macro code the city is Nairobi the state or province is Nairobi and the two letter keyword is uh ke so correct so if it's correct it's asking you to confirm if it is actually correct so I'll say yes so if I do that it will generate so it it will generate my key and the certificate with a validity of 10 000 days so the ten thousand thousand days that it is showing here is what we actually provided at the top here so we'll be able to provide the number of days that you'll want your your certificate to be valid so one thing that it's interesting guys is if you come to our app now you'll be able to see that certificate has been generated somewhere on our app so you'll be able to see it here so as you can see on my screen we have the key dot Keystone so that is the only thing that we'll need to have done so I'll also encourage you to keep note of some of these information that you have provided here because we'll actually need it so how do we uh going to use this information so come to our app so come to our app then on the project right click then go to uh edit so we are going to edit project file so go to edit project file so it will open for you the project a file so I'll just copy this so on this project file you can be able to see that it has the root name the the the implicit using it also have the target framework that it's using it has the application ID as you can see the application grid ID and also the versions of the of the app so it also have the icons uh the splash screens the images and the custom fonts so what I need you to do you can also see the sum of the packages that we have we have it here so these are the packages that you have been able to use it on our mobile app and also the pages so you can see the pages that we have on our our app that is the xaml pages so what we need to do there's something I want you guys to add on the just before the project uh tag and tag so I want you to add this line of a code so you see all this I want us to copy this and add it here so we need to update this information so our Target so you can see the target framework is Android and configuration should be a release then uh the Android Keystone is true then assigning Android signing Keystone so we need to provide the Android assigning Keystone based on the name that we have here so remember the name that you provided to your Keystone this name so you should actually copy this name and have it here so I'll just update this here so this will be key dot Keystone the way it is on our generated Keystone then the layers you remember the uh key alerts that we have so I'm sure you provide the correct Elias yeah but if it's wrong but if you forgot then you can repeat all of this process and delete this Keystone then you'll be able to get the Allies so our last you can see it is employee app so for those of those who had not uh closed this window then you can actually refine it back so you can see employee app so that is the name I'm going to provide here so it is employee app then the password remember the password that you had provided so I'm going to have mine admin one two three so after that uh we are set to go so I'll close that then if I save my app after you have added all these information then you can save your app and I want us to do something now so come to our terminal again so come to our terminal so the next thing that you are going to do is to now publish our app to produce the uh APK the released APK so you have all this code.net publish then uh the dot net version that you are running and and actually we are deploying it in a release mode then you can provide the Android Key password and the store password so we can actually uh copy this line of code here come to our come to our terminal so this is our terminal so this is after you have added all those on our project uh file so you can see this is what we need so we'll actually provide our password we'll say admin one two three the one that you have just provided I'll also do admin one two three after that I'll just press enter Then it it should be able now to generate my key based on the information that Ava added to this project so I should be able to get the uh APK key redistribute the APK key for my people to actually install it or even a users to install it and use the app so let's see so let's see how it all goes so this is my so this it is are now generating the APK key we can wait and see how it all goes so it's trying to optimize the assemblies for size may change based on the behavior of the app be sure to test after publishing so it's now publishing our app so the process might take a while so let's just wait and see how it all goes up our up so our APK has completed so you have a completed generating your APK so you can actually find where so we are we can actually get it and uh bin so you'll be able to get under bin folder then release then.net7 net 7.0 Android then when you get inside you'll be able to see we have the publish folder remember you have just published our app then you'll be able to see the three files that it has actually generated so we have the the signed file which is a DOT APK so you can see the signed file is actually dot APK so that is the file that you should actually take and use it so that is how you generate APK in.net Mali see you on our next series foreign
Info
Channel: Macro Code
Views: 671
Rating: undefined out of 5
Keywords: C#, AmigosCode, .NET, .NETCORE, Sundeep, Saradhi, freecodeCamp, ProgrammingWithMosh, MikeDane, IamTimCorey, TeddySmith, FireShip, DaniKrossing, Stefan Mischook, ASP.NET CORE, Coder Foundry, Jose Montemagno, .NET 7, Nick, Nickchapsas, Jake Wright, Keep On Coding, QuestPond, Amigos, Developer Filip, TechWorld With Nana, Techworld, GotoConferences, CRUD, BoostMyTool, MAUI, .NETMAUI, CRUD MAUI, SQLITE, ProgrammingPragnesh, Gerald, NETMAUI, RESTFulApi, DataGrid, Traversy Media, freecodecamp, TechTip, apk, publishMAUIApk
Id: tdTPjFzdJOQ
Channel Id: undefined
Length: 12min 36sec (756 seconds)
Published: Sat Jul 29 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.