Skip to content
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

Keep downloaded release asset if installation fails #1978

Open
jm355 opened this issue Nov 15, 2024 · 4 comments
Open

Keep downloaded release asset if installation fails #1978

jm355 opened this issue Nov 15, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@jm355
Copy link

jm355 commented Nov 15, 2024

Describe the feature
When an app fails to install, it would be nice if obtainium held onto the downloaded release asset until either the app gets updated or a newer release becomes available. This way, attempting to update again would not need to re-download the apk/xapk, and pressing "download release asset" could simply copy the cached file to Downloads

@jm355 jm355 added enhancement New feature or request to check Issue has not been reviewed labels Nov 15, 2024
@ImranR98
Copy link
Owner

An installation failure usually means the downloaded file is invalid, what's the point of keeping it?

@jm355
Copy link
Author

jm355 commented Nov 15, 2024

Not necessarily, it depends why the install failed. In #682, obtainium fails to install the xapk, but using the package manager app the xapk downloaded via the download release asset button installs fine.

Another option would be, if an apk/xapk fails to install, offer to move it to Downloads, so the user can investigate whether the issue is with the file or not

@ImranR98 ImranR98 removed the to check Issue has not been reviewed label Nov 17, 2024
@tutacat
Copy link

tutacat commented Nov 22, 2024

If you manually cancel or click away installation dialog, it deletes it instantly, it shouldn't do that at least.

Agreed, I think cache should be kept (up to 1, and settings ofc.) and check if there is a cache before downloading. There are many ways to implement this, and you would add a confirmation between installing the downloaded version and downloading again.

I will look at implementation even just for a fork.

@NripPrajapat
Copy link

Sometimes it does it with sizuku permission not granted, any way there is no harm in letting the file stay there, or sometimes it generates wrong version and system would not install file and it gets deleted.

Summary is it should stay or at least provide and option to keep it.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants