wordpress-mobile / release-toolkit-gutenberg-mobile

Automation Scripts for Releasing Gutenberg-Mobile Updates to the WordPress Mobile Apps.
Mozilla Public License 2.0
5 stars 2 forks source link

[CLI] Add ability to self update binary #247

Closed jhnstn closed 4 months ago

jhnstn commented 4 months ago

This adds the ability to self update the cli tool.

Why?

Apple requires code signing for all binaries, making it tricky to download the gbm-cli tool directly from the github releases pages. This change will make it easy for release wranglers to update the tool.

Testing

diff --git a/gbm-cli/cmd/root.go b/gbm-cli/cmd/root.go
index e921336..a7fefb9 100644
--- a/gbm-cli/cmd/root.go
+++ b/gbm-cli/cmd/root.go
@@ -8,7 +8,7 @@ import (
    "github.com/wordpress-mobile/release-toolkit-gutenberg-mobile/gbm-cli/pkg/console"
 )

-const Version = "v1.5.0"
+const Version = "v1.4.0"

 // rootCmd represents the base command when called without any subcommands
 var rootCmd = &cobra.Command{