Skip to content

Instantly share code, notes, and snippets.

@Haosvit
Created February 15, 2020 09:56
Show Gist options
  • Save Haosvit/1283e892271184c76c17439eb6aedcbb to your computer and use it in GitHub Desktop.
Save Haosvit/1283e892271184c76c17439eb6aedcbb to your computer and use it in GitHub Desktop.
Xamarin Build & Sign Memos
  1. Sign:
    Change to release mode, increase build number, right click on Android project in VS, select Archive... => Distribute Adhoc.
    1.1. Create & save keystore track in repos
    1.2. Restore keystore:
    Copy .keyInfo & .keystore into %UserProfile%\AppData\Local\Xamarin\Mono for Android\Keystore

  2. Align:
    Run zipalign on the signed apk.
    Run cmd %UserProfile%\AppData\Local\Android\Sdk\build-tools\<version>
    zipalign -v -p 4 <signed-file-path> <dest>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment