Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to sign Android App on another computer

I'm using Flutter and I have an old Mac Mini that works fine but then Apple introduced a Signin with Apple and you can't build it on old version of Xcode, so I had to do it on my Macbook Air which I barely use to build apps because I feel more comfortable on desktop machine.

Now when I update something I had to push it on Github, then update the project and build the bundle on the Mac mini, because there's the cert I used to sign the App.

The problems is that I want to sell the Mac mini and I have a potential buyer but I don't know how to import the .jks in the Macbook Air. I tried simply copying it but it doesn't work. Can anyone help me with this, please?

like image 457
John Smith Optional Avatar asked Dec 24 '19 11:12

John Smith Optional


1 Answers

  1. Get the .jks you used to sign the android package
  2. Copy it to your /android directory of your flutter project
  3. Create key.properties file in the /android directory and insert the content as below :
storePassword=jks_password
keyPassword=key_password
keyAlias=key_alias_name
storeFile=../jks_file.jks
  1. Now run flutter command to generate apk or appbundle by below code

flutter build apk or flutter build appbundle

like image 155
Parth Patel Avatar answered Nov 09 '22 20:11

Parth Patel