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

prepare to release in appstore #26

Merged
merged 2 commits into from
Jan 4, 2019

Conversation

violoncelloCH
Copy link
Member

@violoncelloCH violoncelloCH commented Dec 21, 2018

for #22

cc @jancborchardt @MariusBluem @rullzer
Signed-off-by: Jonas Sulzer [email protected]

Signed-off-by: Jonas Sulzer <[email protected]>
@MorrisJobke
Copy link
Member

  • change build script for 15.0.1 to not include user_external (probably not in this PR - nextcloud/server#13225)

I can do this.

@MorrisJobke
Copy link
Member

I can do this.

But only once this is shipped to the appstore.

@MorrisJobke
Copy link
Member

One more thing to test: check if this works properly: not that the app is then removed but not fetched from the appstore anymore.

@violoncelloCH
Copy link
Member Author

@MorrisJobke

I can do this.

thank you

But only once this is shipped to the appstore.

so I would need nextcloud/app-certificate-requests#208 first, then we can merge this one and after that I could create the appstore release, correct?

not that the app is then removed but not fetched from the appstore anymore.

does this mean it's not installed any more by default? or what does this mean exactly?


@jancborchardt should I change the author of this app to "Nextcloud" or not?

@MorrisJobke
Copy link
Member

not that the app is then removed but not fetched from the appstore anymore.

does this mean it's not installed any more by default? or what does this mean exactly?

I guess that it could be that the app code is simply not there anymore - which should be avoided.

@MorrisJobke
Copy link
Member

so I would need nextcloud/app-certificate-requests#208 first, then we can merge this one and after that I could create the appstore release, correct?

Correct 👍

@violoncelloCH
Copy link
Member Author

not that the app is then removed but not fetched from the appstore anymore.

does this mean it's not installed any more by default? or what does this mean exactly?

I guess that it could be that the app code is simply not there anymore - which should be avoided.

okay, of course... do you have an idea how to avoid this?

@MorrisJobke
Copy link
Member

okay, of course... do you have an idea how to avoid this?

Test it extensively and report bugs (if there are any) with clear steps into the server repo.

@violoncelloCH
Copy link
Member Author

Test it extensively and report bugs (if there are any) with clear steps into the server repo.

Guess I'll need some help here, sorry.
How can I test this without a release on the appstore?

@jancborchardt
Copy link
Member

@jancborchardt should I change the author of this app to "Nextcloud" or not?

That’s for @MorrisJobke @rullzer to decide. I’m fine either way.

@violoncelloCH violoncelloCH mentioned this pull request Jan 4, 2019
4 tasks
@MorrisJobke
Copy link
Member

Not needed. Just leave it as it is now.

@MorrisJobke
Copy link
Member

  • change build script for 15.0.1 to not include user_external (probably not in this PR - nextcloud/server#13225)

I will change it. It will not be included.

@MorrisJobke MorrisJobke mentioned this pull request Jan 4, 2019
3 tasks
@MorrisJobke MorrisJobke merged commit 05fb0e2 into master Jan 4, 2019
@MorrisJobke MorrisJobke deleted the unbundle_from_release_to_appstore branch January 4, 2019 22:43
@violoncelloCH
Copy link
Member Author

@MorrisJobke
should I create a release now and publish it as soon as possible to be ready for 15.0.1 or should I wait for #30?

What's the best practice for the release? Create a tag, check out the tag, do the code signing, generate the release archive, generate a signature over the archive, create a Github release for the tag and upload it and finally paste the link and the signature to the appstore?

@MorrisJobke
Copy link
Member

What's the best practice for the release? Create a tag, check out the tag, do the code signing, generate the release archive, generate a signature over the archive, create a Github release for the tag and upload it and finally paste the link and the signature to the appstore?

Looks good 👍

@MorrisJobke
Copy link
Member

should I create a release now and publish it as soon as possible to be ready for 15.0.1 or should I wait for #30?

If it works now already then do a release now.

@violoncelloCH
Copy link
Member Author

violoncelloCH commented Jan 5, 2019

If it works now already then do a release now.

It works already (I'll do some more tests), but the appstore documentation says that occ app:check-code should say that the app is "compliant" before uploading it to the appstore. Do you do checks on that and reject "non-complaint" apps?

@violoncelloCH
Copy link
Member Author

@MorrisJobke
I tested it again and applied the release on a production instance (the one for our school) and everything worked fine. I then created a github release (https://github.com/nextcloud/user_external/releases/tag/v0.5.0) and uploaded the signature and the link to the archive to the appstore. Hope everything worked fine there, because I didn't get a real feedback on the upload to be completed. (There was no real feedback except a spinning circle on the "Upload" button. The form stayed with the content filled in after the spinning circle disappeared again.) I guess it simply takes some time or need some manual steps on your (nextcloud's) side before the app becomes visible in the appstore?

@jancborchardt jancborchardt mentioned this pull request Jan 7, 2019
@MorrisJobke
Copy link
Member

I guess it simply takes some time or need some manual steps on your (nextcloud's) side before the app becomes visible in the appstore?

Not really. Usually you upload the release (you did it here: https://github.com/nextcloud/user_external/releases/tag/v0.5.0) and then you open the apps.nextcloud.com page to upload an app. There you add the link to the uploaded zip and the signature and press "upload". It then checks this URL and updates the App Store right afterwards. Typically this takes 5 to 10 seconds and the app store shows it.

@violoncelloCH
Copy link
Member Author

I pressed upload there and a spinner appeared on the upload button, but nothing else afterwards. I'll try it again, but I don't really know what went wrong.

@violoncelloCH
Copy link
Member Author

I signed in via github. Does it have something to do with that maybe? Should I try letting me send a password reset link for the account?

the form just returns to this state, after the spinner on the upload button disappears:
image

@violoncelloCH
Copy link
Member Author

violoncelloCH commented Jan 7, 2019

is there something wrong with my signature?
because https://nextcloudappstore.readthedocs.io/en/latest/restapi.html#api-create-release shows a much shorter one as example...?

i generated it with this command openssl dgst -sha512 -sign /home/jonas/.nextcloud/certificates/user_external.key user_external.tar.gz | openssl base64

@MorrisJobke
Copy link
Member

No - looks like an issue with the app store. Let me check that. There is usually either a success or a failure message at the top (in red or green).

@MorrisJobke
Copy link
Member

Could you now try again?

@violoncelloCH
Copy link
Member Author

violoncelloCH commented Jan 7, 2019

still the same...
I get a 500 in network console for https://apps.nextcloud.com/api/v1/apps/releases...

the spinner on the upload button disappears after two or three seconds and there appears no feedback at all

@MorrisJobke
Copy link
Member

Mmmh ... it says this:

tarfile.ReadError: not a gzip file

@MorrisJobke
Copy link
Member

Ah ... seems that the file is corrupt. I also can't decompress it on my machine here. Just check it again and just upload again to the release.

@violoncelloCH
Copy link
Member Author

ohh, I'm sorry about that! thank you for your help!
i did it with tar -f user_external.tar.gz user_external/... do I need to run gzip on that as well after tar?

@MorrisJobke
Copy link
Member

https://github.com/nextcloud/jsloader/blob/master/Makefile#L60-L61

Boils down to tar -czf FILENAME folder/. The -z does the gzip compression.

@violoncelloCH
Copy link
Member Author

thank you very much!
It finally worked! https://apps.nextcloud.com/apps/user_external

@MorrisJobke
Copy link
Member

Nice 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants