cianru / huawei-appgallery-publish-gradle-plugin

Huawei AppGallery Publish Gradle Plugin allows you to publish the android release build file (*.apk or *.aab) to the Huawei AppGallery store
Apache License 2.0
111 stars 20 forks source link

Looking for buildFile wildcard example #22

Closed henorek closed 3 years ago

henorek commented 3 years ago

Hello there, Could you please give me an example of the use of the buildFile parameter?

I need to match any apk file contained under the path, but the following code unfortunately does not work

buildFile = "app/build/outputs/apk/release/*.apk"

cosic commented 3 years ago

@henorek Hi! Try to use something like that https://github.com/cianru/huawei-publish-gradle-plugin/issues/16#issuecomment-749669382

cosic commented 3 years ago

Ok, I duplicate the answer and close the ticket. Try to execute the gradle task and give it apk file path by unix tools like that

./gradlew publishHuaweiAppGalleryRelease \                                                                                                                               ✔     
    --buildFile=$(ls ./app/build/outputs/apk/release/*.aab| head -1) \
    --buildFormat=aab