Skip to content
inkeliz edited this page Sep 17, 2022 · 9 revisions

Nanolles is currently tested on Windows 10, Fedora 27 e MacOS High Sierra.


Windows/Windows 10:

Requirement:

Before following this guide, make sure that you have installed the basic stuff:

Remember to setup the envioment variable. If you have any issue installing it, open a issue.


Build:

  1. Get the Nanollet source-code:

    go get -x -u github.com/brokenbydefault/Nanollet

  2. Go to the source-code directory:

    cd /d %GOPATH%\src\github.com\brokenbydefault\Nanollet

  3. Get generator dependencies, if any:

    go get -d ./GUI/Generator

  4. Run the generator to create static files:

    go generate

  5. Compile the code:

    go build -ldflags "-H=windowsgui -extldflags '-static' -s -w"

Linux/Fedora 27:

Requirement:

Before following this guide, make sure that you have installed the basic stuff:

Remember to setup the envioment variable. If you have any issue installing it, open a issue.


Build:

  1. Get the Nanollet source-code:

    go get -x -u github.com/brokenbydefault/Nanollet

  2. Go to the source-code directory:

    cd $GOPATH/src/github.com/brokenbydefault/Nanollet

  3. Get generator dependencies, if any:

    go get -d ./GUI/Generator

  4. Run the generator to create static files:

    go generate

  5. Compile the code:

    go build -ldflags "-s -w"

Darwin/MacOS High Sierra:

Requirement:

Before following this guide, make sure that you have installed the basic stuff:

Remember to setup the envioment variable. If you have any issue installing it, open a issue.


Build:

  1. Get the Nanollet source-code:

    go get -x -u github.com/brokenbydefault/Nanollet

  2. Go to the source-code directory:

    GOPATH=$(go env GOPATH); cd $GOPATH/src/github.com/brokenbydefault/Nanollet

  3. Get generator dependencies, if any:

    go get -d ./GUI/Generator

  4. Run the generator to create static files:

    go generate

  5. Compile the code:

    go build -ldflags "-s -w"

  6. [Optional] Create a .app file using appify:

    go get github.com/machinebox/appify

    GOPATH=$(go env GOPATH); $GOPATH/bin/appify -name "Nanollet" -icon $GOPATH/src/github.com/brokenbydefault/Nanollet/logo.png $GOPATH/src/github.com/brokenbydefault/Nanollet/Nanollet

Clone this wiki locally