C
C#10mo ago
SonicBombs

Windows Forms : Install Update With Git Branch System

Hello, I need to provide update support to my Windows Forms application. But how can I integrate this update support with the git branch system? As a developer, when I release a new version, I want to ensure that this new version comes to my users as an update.
7 Replies
Chiyoko_S
Chiyoko_S10mo ago
Not sure what you mean by a 'git branch' system, a git branch doesn't necessarily mean it has to do with a version update github has a 'releases' page where you can announce new versions along with the ability to upload prebuilt binaries and they also have an API that allows you to fetch the latest release data from it
Pobiega
Pobiega10mo ago
git is a version control system, you manage your source code with it. I assume you dont actually push your updates as source, but rather as a fresh compiled version?
Chiyoko_S
Chiyoko_S10mo ago
so perhaps you can use that to publish new versions and let the users know about the availability of the new release making it update automatically is a different question though, you would need some sort of a separate auto-updater program that downloads and replaces the files there probably is a solution for this somewhere
Pobiega
Pobiega10mo ago
Yeah. Jetbrains IDEs use a secondary program called "Elevator.exe" that shuts down the IDE, updates the files, then restarts the IDE
Chiyoko_S
Chiyoko_S10mo ago
https://github.com/Squirrel/Squirrel.Windows this used to be something that got recommended a lot here
GitHub
GitHub - Squirrel/Squirrel.Windows: An installation and update fram...
An installation and update framework for Windows desktop apps - GitHub - Squirrel/Squirrel.Windows: An installation and update framework for Windows desktop apps
Chiyoko_S
Chiyoko_S10mo ago
not sure if it still is the case
Lex Li
Lex Li10mo ago
You ship a desktop app, so the modern way (Chrome, VS Code) is to ship frequent new releases, not updates/hotfixes like Windows updates. If you want to follow this way like others, Git (and branches) is there to manage your code and releases, and tools like Squirrel are there to host releases so that end users can easily get the new ones.
Want results from more Discord servers?
Add your server