Is it possible to update an app using a tar.gz release file from an app’s GitHub?
In this topic I read that you can download the tar.gz to your apps (or custom_apps) folder, remove the ‘old’ folder of the app and extract the downloaded tar.gz in order to update an app. I tried this, but the app didn’t update.
@Thom1 Thanks for your reply! I tried it, but it didn’t work. I also tried occ app:update <app-id>, but nothing happened either. Any other ideas? Maybe it is not possible ?
I don’t know if you did something wrong, but the developer could have done.
If you check the news app in the app store, you will see that a version 15.0.4 is being available for Nextcloud 20. The link to the archive file contains the version number 15.0.5. If you download this archive file and check its content, especially the version number in news/appinfo/info.xml you will see the version number is still “15.0.4”
Thanks for diving into this @j-ed! I changed the version number in news/appinfo/info.xml to 15.0.5, it seems they simply forgot to change it. I then ran /occ app:update news again which now gave me a message:
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
I then went to the browser and indeed saw a request to run an upgrade for news, which I did and now news is successfully updated (though the logo of news is somehow missing in the navbar and apps listing XD).
i needed to do some modifications to get this to work.
Delete the old app from <path-to nextcloud-document-root>/apps/<app-name>
Download the app archive
Extract the app archive
mv the app archive to <path-to nextcloud-document-root>/apps/