Skip to content

Release Process

Mike Hardy edited this page Jul 29, 2022 · 8 revisions

Generate the maven artifacts that most users need

Generate the Apple Silicon CPU architecture dylib

  • Run the commands to generate it, from the root of Anki-Android-Backend clone:
# install all requirements, make sure environment is good
./tools/doctor.sh
# make sure we build things clean
\rm -fr rslib-bridge/target
./gradlew clean
# get the buildinfo from rslib
./tools/get-buildinfo.sh  # may require `brew install bazelisk` first
# do the build
./gradlew assembleRelease -DtestBuildType=release  # this may not be necessary? have not tested without running it
cd rslib-bridge
cross build --release --features no-android --verbose --target aarch64-apple-darwin
# open up a finder window with dylib named correctly, ready to go for drag-and-drop on the releases page
cd target/aarch64-apple-darwin/release
mv librsdroid.dylib librsdroid-arm64.dylib
open .
  • Open the github tag for the latest build
  • Hit the pencil icon to edit the tag
  • Drag the librsdroid-arm64.dylib file from the Finder window to the file drop area
  • Save the edits and now Apple Silicon users may successfully run robolectric tests
Clone this wiki locally