Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

cargo apk build fails if ~/.android doesn't exist #252

@jamienicol

Description

@jamienicol

I've been updating our CI to use the latest cargo apk (from several months ago), and I noticed that the build was failing:

error: process didn't exit successfully: /usr/bin/keytool -genkey -v -keystore /builds/worker/.android/debug.keystore -storepass android -alias androidebugkey -keypass android -dname 'CN=Android Debug,O=Android,C=US' -keyalg RSA -keysize 2048 -validity 10000 (exit code: 1)

This is because as of #223 cargo-apk now attempts to sign the output apk, which is great, but the .android directory does not exist on our CI and we get this error.

I can reproduce the same error locally by deleting ~/.android.

Adding a mkdir .android to our build script can work around this, but can/should this be fixed in cargo-apk instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions