Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Expo EAS build release tar.gz file rather than apk file

I follow this example to build project by command:

eas build -p android --profile preview

also tried

eas build --profile production --platform android

in this document https://docs.expo.dev/build-reference/apk/#configuring-a-profile-to-build-apks

and my eas.json is

{
    "build": {
        "preview": {
            "android": {
                "buildType": "apk"
            }
        },
        "preview2": {
            "android": {
                "gradleCommand": ":app:assembleRelease"
            }
        },
        "preview3": {
            "developmentClient": true
        },
        "production": {
            "android": {
                "buildType": "apk"
            }
        }
    }
}


However, I got tar.gz rather than .apk file link.

I don't know where is the problem for.

(I can build apk yesterday and I just add firebase in project today)

Thank you.

like image 460
MOLLY Avatar asked Oct 20 '25 06:10

MOLLY


1 Answers

Please try to specify the applicationArchivePath. By default, an *.apk and *.aab-file are assembled (and therefor packed in a tarball). You can narrow it down by specifying the output.

"build": {
    "preview": {
        "android": {
            "buildType": "apk",
            "applicationArchivePath": "android/app/build/outputs/**/*.apk"
        }
    },
like image 174
Conrad Neumann Avatar answered Oct 22 '25 03:10

Conrad Neumann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!