build

command
v0.0.0-...-1518e3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Build.go builds software releases. This builds the binary and gathers other files needed for running the binary (html, css, js source files, documentation, etc.). The binary and files are then bundled into zip files for easy distribution.

NOTES:

  • Including HTML, CSS, and JS files isn't really needed since they will be embedded into the binary and using embedded files is nicer (less separate files to distribute).
  • You need to set path to Pandoc if you want to convert files from Markdown to plain text or PDF.

CGO NOTE:

  • This uses a build tag to use the modernc SQLite library for the built binaries so that CGO can be disabled/turned off and we can build a statically linked binary with no GCC dependency. If you use the mattn SQLite library, the built binaries will not be statically linked and may not work on every system you are building for.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL