1.0.3 • Published 6 years ago

go-cli-publish v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Publishing the go cli across multiple platform e.g. windows, linux and Osx

In this tutorial , I have followed this NPM GO package

After that I have added the followings in package.json

"scripts": {
    "postinstall": "go-npm install",
    "preuninstall": "go-npm uninstall"
  },
  "goBinary": {
    "name": "go-cli-publish",
    "path": "./bin",
    "url": "https://github.com/sopnopriyo/go-cli-publish/files/2490060/go-cli-package_2.0.0_darwin_amd64.tar.gz"
  },

Then, I published the package using npm publish

Now, let the world download your package using npm install -g go-cli-publish

Check that it is working:

Type go-cli-publish in your commandline.

and expect to see Hello from Sopnopriyo Go Publish Test