/go-packager

Build go application, copying all needed files

Primary LanguageGo

Golang Packager

Builds a Golang project, incluing all needed files to run the final application.

How the go-packager works

  • Reads all settings from the go-packager.json file
  • Copies all folders and files to the destination
  • Builds the application, according to the OS
  • Compress the resulting folder

Installation

  • Download binary:
  • Add to PATH evironment variable
  • Configure go-packager.json file in application root
  • Run go-packager in application root go-packager run

Sample of go-pakager.json configuration

{
    "build_name": "first-build",
    "build_target": "C:\\",  
    "system": "windows",
    "packaged_items": [
        "static",
        "templates",
        "logs",
        ".env"
    ]
}

Commands

  • -help: Shows Help for use the tool
  • -examples: Shows examples
  • -check: Checks if exists the 'packager.json' file and print its content
  • run: Runs go-packager, reading the 'packager.json' file