-
Notifications
You must be signed in to change notification settings - Fork 817
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
Auto update app image #3736
Auto update app image #3736
Conversation
@Thatoo thanks for your contribution |
EDIT: Just a heads up, make sure you install @Thatoo LGTM 👍 I've tested your PR AppImage with update tool and I can see that the update information is parsed correctly. It fails for now since the .zsync file is not in the assets of the latest release but should work fine once the .zsync file is uploaded to the releases on next release hopefully.
|
We first need to merge #3682. Otherwise, we have to duplicate everything in Brander. |
cba992a
to
43d8b33
Compare
@mgallien sorry for late reply but DCO is solved now. |
that is my turn to apologize I will make sure to quickly review your PR sorry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still missing one step with this
how does the update will happen
from my understanding we would also need to provide an update tool within the appimage and plug it to the UI button
Maybe @probonopd or @TheAssassin could answer your question and help us improve Nextcloud's AppImage. |
The first step is including the update information then other external AppImage tools (such as the official https://github.com/AppImage/AppImageUpdate) can delta update any nextcloud AppImages. Even AppImageLauncher can do that. But if you want your own AppImage to do this delta update then you can use the official C++ library used in the official update tool -> https://github.com/AppImage/AppImageUpdate Side Note: I built an unofficial AppImage update library tailored for Qt developers, see the docs to get some idea on how this works here |
thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see my comment about the org name
you mean like |
Yes. I suppose. Since the Please See: https://github.com/AppImage/AppImageSpec/blob/master/draft.md#github-releases |
DCO is not happy again. I don't know what is it and why it is not happy. I did all contribution through web browser being logged in... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
@Thatoo Your other comments have this: Signed-off-by: Thatoo [email protected] in their description. Please update your last commit so it follows the same pattern as the previous ones. Also, for the future, please do not use "merge master" to your branch, but, use "rebase against a master" instead. I.E. do not click the "Update branch" button. |
@mgallien @allexzander @Thatoo as far as I understand we need to have |
@Thatoo can you rebase ? |
Thanks for noticing that I had forgotten this |
@mgallien @Thatoo I guess it would make sense before rebasing if the pull request uses the newest docker image for the CI (the one with zsync). @Thatoo can you please change that line Line 101 in 81c5c81
image: ghcr.io/nextcloud/continuous-integration-client-appimage:client-appimage-3
|
018e7b2
to
990a63a
Compare
Is it better now? |
@Thatoo You don't need any special token, but every commit needs to have the line You also need to squash your commits into one commit and then rebase. You can't do that with the webui. https://git-scm.com/docs/git-rebase If that is too much for you, we can do it for you, but you will probably lose ownership over the changes. |
@Thatoo looks better now :) Still, it seems like you did not rebase properly. Make sure your local master branch of your fork is up to date. For that make sure you have the upstream configured correctly as I told you above :) and then checkout master (git checkout master) and execute |
9e9c700
to
95ca683
Compare
I guess I did it, DCO is happy but it couldn't build it... |
/rebase |
@Thatoo I'm unsure what the problem is (Maybe too many requests). Could you enable the setting "Allow edits from maintainers" https://docs.github.com/en/github/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork then we can rebase it through the webui which will be easier for us. Just be sure if you need to again make changes that you need to pull the changes first with |
Oh okay, then the rebase is not possible for forks. Maybe if you do the change that I suggested and rebase, the CI will also run through and we can finally merge it. |
95ca683
to
bd5017a
Compare
Is it ok? |
@Thatoo Almost ;) You need to first update your master branch with: For the future if you do some small change and you know that should be part of the commit before it, instead of creating a new commit amend the changes to the old commit. That will look like this: Last but not least upload your changes: Btw that we are sure your upstream is configured correct. Does
If it's https instead of git it doesn't matter. |
bd5017a
to
9662f71
Compare
|
.drone.yml
Outdated
@@ -98,7 +98,7 @@ name: AppImage | |||
|
|||
steps: | |||
- name: build | |||
image: ghcr.io/nextcloud/continuous-integration-client-appimage:client-appimage-2 | |||
image: ghcr.io/nextcloud/continuous-integration-client-appimage:client-appimage-4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be image: ghcr.io/nextcloud/continuous-integration-client-appimage:client-appimage-3
So I guess I misunderstood this. What is this version |
@mgallien That was my mistake because I thought we pushed out a new version. Then I checked and in fact, not even version 3 was pushed out, so I have built it an hour ago. @Thatoo You did not misunderstand something. I told you to do the wrong thing. Replace 4 with 3 and everything should be good. Sorry. And please rebase again and then we try to merge that as quickly as possible before anything else gets merged again ;) |
OK I had missed the 4 in of your previous comment |
Signed-off-by: Thatoo <[email protected]> docker image 4 Signed-off-by: Thatoo <[email protected]>
9662f71
to
3ab698a
Compare
AppImage file: Nextcloud-PR-3736-3ab698a0c59291310300f2124983634200e0ae2e-x86_64.AppImage |
Thanks @Thatoo :) |
@TheAssassin : Why does it seem broken? and what could be the fix? |
You obviously try to assign a variable, but use two Aside from that, I'd strongly recommend you to run |
Indeed, even when I asked the question, I was looking at the line you highlighted and I didn't notice this second = ... |
@Thatoo please create a new pull request with the change. |
Here it is : #3916 |
I guess it's a way to solve this two issues :
#168
#2656