Coder Social home page Coder Social logo

Add a Chocolatey package about syncthing-gtk HOT 15 CLOSED

kozec avatar kozec commented on May 29, 2024
Add a Chocolatey package

from syncthing-gtk.

Comments (15)

kozec avatar kozec commented on May 29, 2024

Well, I have no problem with that, but have no experiences with Cocolatey...

Also, python is not dependency of Windows version, as it's "compiled" into executable. In fact, installer installs all dependencies and dlls into /Program Files/Syncthing-GTK directory.

There will be probably need to create syncthing package, mark syncthing-gtk as dependency of it and compile specific Windows version of both, with autoupdates disabled.

from syncthing-gtk.

GeoffreyFrogeye avatar GeoffreyFrogeye commented on May 29, 2024

Chocolatey offers a great doc, so experience isn't a problem I think. If you don't want / have time to look into it, I can help you (but I have no experience either 😄).

It's one way among others. Not the one Chocolatey recommends though, but I think it's fine.

create syncthing package, mark syncthing-gtk as dependency of it
Didn't you mean the opposite (syncthing-gtk depends of syncthing) or did I misunderstood?

Since there isn't currently a Chocolatey package of syncthing (and I personally think that it's up to the syncthing developpers to take care of it) and since syncthing-gtk can automatically download and install syncthing, I think it's fine to keep it that way.

from syncthing-gtk.

kozec avatar kozec commented on May 29, 2024

If you don't want / have time to look into it, I can help you (but I have no experience either 😄).

Well, if you have means of creating and testing Chocolatey package, feel free to do so. I'm afraid that my Windows 7 "stripped to commandline" virtual machine will not be up to such task :D

from syncthing-gtk.

GeoffreyFrogeye avatar GeoffreyFrogeye commented on May 29, 2024

I've packaged version v0.5.1 to Chocolatey, and I'm waiting for admin review.
I will probably create an auto-updater script that will update the package to the lastest GitHub release, but probably without using Chocolatey Tools, because even if they are very useful for different scenario, it looks like it requires a lot of configuration for a such simple task (updating XML with last release infos and typing two commands to package and push to Chocolatey). Also, I would be sure that it will work for your "stripped to commandline" VM.

from syncthing-gtk.

kozec avatar kozec commented on May 29, 2024

Actually, autoupdater is on "roadmap", or rather in list of things I'll probably implement when I'll be bored enough. Code to parse latest release from GitHub is already there, just used only for daemon updates.

But I imagine it more like InfoBar that will at first ask for permission and then download & run installer. How would updating with script look like and how big is change that have average Windows user will be able to understand and use it?

from syncthing-gtk.

GeoffreyFrogeye avatar GeoffreyFrogeye commented on May 29, 2024

Oh, I realize I wasn't clear enough. Sorry about that. I meant I want to do a script that fetch infos from the lastest release from GitHub, in order to update the Chocolatey package on the Chocolatey online database. You can't have an "any version" package on the database witch automatically fetch lastest release on install, so you have to update it for every update. The script will be for you and me, not for the user itself 😄.

I can only agree with the way you will implement your auto-application-updater, and the only thing I can say is that when the software have been installed from Chocolatey, I think it should be turned off by default, to keep with Chocolatey principles. What do you think about it?

from syncthing-gtk.

kozec avatar kozec commented on May 29, 2024

I think it should be turned off by default, to keep with Chocolatey principles. What do you think about it?

Yes, that sounds like a good idea. That should be easy to do, if you can write registry value from installation script - key will be most likely User/Software/Syncthing GTK/autoupdate, dword, 1 for enabled.

from syncthing-gtk.

GeoffreyFrogeye avatar GeoffreyFrogeye commented on May 29, 2024

Fine, I'll check that when auto-updater will be released.

from syncthing-gtk.

GeoffreyFrogeye avatar GeoffreyFrogeye commented on May 29, 2024

Moderation delayed for another business day, because I should have added a description about syncthing. I'll close the issue when it will be accepted.

I've added the script I talked about and the sources of the package in #36.

from syncthing-gtk.

GeoffreyFrogeye avatar GeoffreyFrogeye commented on May 29, 2024

The package have been approved!
You can see it here: https://chocolatey.org/packages/syncthing-gtk
Remember to create an account on https://chocolatey.org, and add your username to the <owners> list (comma separated) so even if I'm unable to update the package, you will still be able to.

from syncthing-gtk.

AudriusButkevicius avatar AudriusButkevicius commented on May 29, 2024

👍

from syncthing-gtk.

kozec avatar kozec commented on May 29, 2024

Ok, I did. Just one question: I tested installing with Chocolatey and this message was displayed during uninstalation:

Uninstalling from folder C:\ProgramData\chocolatey\lib\syncthing-gtk.0.5.2
This package has a chocolateyInstall.ps1 without a chocolateyUninstall.ps1. You will need to manually reverse whatever steps the installer did. Please ask the package maker to include a chocolateyUninstall.ps1 in the file to really remove the package.

And it truly looks like uninstall entry was removed, but uninstaller was not executed - all files were left in /Program Files/Syncthing-GTK. How big problem this is?

from syncthing-gtk.

GeoffreyFrogeye avatar GeoffreyFrogeye commented on May 29, 2024

I totally forgot that syncthing-gtk had an uninstaller. I'll add chocolateyUninstall.ps1 as soon as I can, and also push your name in the same time.

edit: English

from syncthing-gtk.

GeoffreyFrogeye avatar GeoffreyFrogeye commented on May 29, 2024

#42 fixes this.

from syncthing-gtk.

kozec avatar kozec commented on May 29, 2024

@GeoffreyFrogeye Thanks again :)

from syncthing-gtk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.