Skip to content

Instantly share code, notes, and snippets.

@fourkbomb
Created January 24, 2017 05:27
Show Gist options
  • Save fourkbomb/ce92262fc633a9a001e19095c0e9d734 to your computer and use it in GitHub Desktop.
Save fourkbomb/ce92262fc633a9a001e19095c0e9d734 to your computer and use it in GitHub Desktop.
echo Purging old target_files...
rm out/dist/*target_files*
echo Making dist...
mka dist
echo Signing target files apks...
TARGET_FILES_SIGNED=lineage-$(get_build_var LINEAGE_VERSION)-signed-target_files.zip
./build/tools/releasetools/sign_target_files_apks -o -d ~/.android-certs out/dist/*-target_files-*.zip $TARGET_FILES_SIGNED
echo Generating ota package...
OTA_PACKAGE=lineage-$(get_build_var LINEAGE_VERSION)-install.zip
./build/tools/releasetools/ota_from_target_files -k ~/.android-certs/releasekey $TARGET_FILES_SIGNED $OTA_PACKAGE
echo Done: $OTA_PACKAGE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment