Commit Graph

23 Commits

Author SHA1 Message Date
MedzikUser 9abefd0460 update 2021-10-27 22:23:51 +02:00
Medzik f29763a683 Update 2021-07-24 19:39:58 +00:00
Mike Bird 17cd45ef2c update to go-github v30.1.0 2020-04-09 17:28:13 -07:00
Tobias Kohlbau 116dfa144d Add hash and signature validation
Go-self-update lacks support for checking integrity of downloaded files.
For more advanced situation it's necessary to validate the hash or
verify against public signatures. This patch adds support for
SHA2 hash and ECDSA PublicKey signature validation.
SHA2 uses file with suffix `.sha256`, whereas ECDSA uses
`.sig` file endings. See `selfupdate/validate_test.go` for examples.

Signed-off-by: Tobias Kohlbau <t.kohlbau@myopenfactory.com>
2018-11-09 11:21:21 +01:00
Fabian Ruff d1140d3bf8
fix UpdateSelf invocation on custom Updater object 2018-04-27 16:07:51 +02:00
rhysd 89582ba9d1 add more test cases to check invalid GitHub Enterprise base URL 2018-01-19 18:43:29 +09:00
rhysd f637165ab7 add description about `Updater` struct usage for GitHub Enterprise 2018-01-19 18:04:30 +09:00
rhysd d0de60fba1 enable to have enterprise base URL and upload URL 2018-01-19 17:47:21 +09:00
rhysd 996452a5ed use default HTTP client to download blob from redirect URL 2018-01-19 17:00:30 +09:00
rhysd d98ca18787 fix handling redirection of GitHub download asset API 2018-01-19 15:03:47 +09:00
rhysd 6b4eeadeb7 download an asset via GitHub Releases API by default 2018-01-19 13:30:23 +09:00
rhysd fd492d6b01 create Updater struct to use persistent GitHub API client also for downloading assets 2018-01-19 11:35:24 +09:00
rhysd 3a2ffd274f consider the case where executable is symlink 2018-01-03 23:01:33 +09:00
Songmu f51b648941 use os.Executable instead of using os.Args[0] 2018-01-02 23:43:45 +09:00
rhysd 533ad72291 more logs on uncompressing archives 2018-01-01 19:35:39 +09:00
rhysd a12335af1a make uncompress() public 2017-12-30 17:32:14 +09:00
rhysd b0a66e95eb consider .exe file extension for command path 2017-12-30 13:45:19 +09:00
rhysd 0cce7553af add more logs 2017-12-30 13:25:42 +09:00
rhysd 79d641a2f6 add tests for downloading and updating binary 2017-12-30 12:21:23 +09:00
rhysd 4e9b48163c seprate uncompress() to another file 2017-12-30 12:21:23 +09:00
rhysd 11f67e340f wip: e2e 2017-12-30 12:21:23 +09:00
rhysd 9c8dc3199b fix an example command and UpdateSelf() 2017-12-28 17:34:18 +09:00
rhysd 8618b269c4 first implementation of binary update with uncompressing 2017-12-28 17:30:13 +09:00