Builds a Golang project, incluing all needed files to run the final application.
- 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
- Download binary:
- Add to PATH evironment variable
- Configure go-packager.json file in application root
- Run go-packager in application root
go-packager run
{
"build_name": "first-build",
"build_target": "C:\\",
"system": "windows",
"packaged_items": [
"static",
"templates",
"logs",
".env"
]
}
- -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