-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't execute APK file downloaded from assets in versions page, on Android #14164
Comments
probably only a matter of mime type response header |
I think so yes, maybe it can be fix by changing mime type in gitea links ? |
I got the same issue. When trying to download a .apk file it is downloaded as .zip file. Gitea version (or commit ref): 1.13.1 |
Mime Type should be: |
Are you using an http proxy? |
Yes nginx. I tried solutions write here: https://stackoverflow.com/questions/46285863/set-headers-for-apk-files-served-by-nginx But it's doesn't work for me, since Gitea .apk download URL doesn't have the extension inside URL, I think that's the problem. |
I have gitea with apache. If there's a solution and it requires change to webserver config - makes sense to mention it in docs |
So you're trying to download the automatically generated archive files which have filenames *.zip as .apk? |
The below is out put from querying the apk from the try.gitea.io link above, seems the content type we are providing is
|
[x]
):Description
When download APK android installer from version assets in Gitea on mobile, when click the link from APK we can't juste download and execute to install the app.
Instead, browser want to open it with archive unzipper.
If we download the same APK form nextcloud for exemple, Android try to install it directly...
It's not very usefull when we want to share our mobile app from github versions page...
The text was updated successfully, but these errors were encountered: