-
-
Notifications
You must be signed in to change notification settings - Fork 36
Self Compiling
zekro edited this page Jun 26, 2020
·
5 revisions
- git
- go compiler toolchain (> v1.12)
- gcc (if you are using Windows, you can use the TDM-GCC toolcahin)
- Node.JS and npm
If you are using windows:
- git bash
This will be automatically installed with git on windwos. You need git bash, because the build script must be executed with bash.
You can download the lastest soucres from master branch as zip archive here or download them from the releases page. Also, you can clone the repository with git:
git clone https://github.com/zekroTJA/shinpuru.git
You have teh following two options to compile shinpuru.
You can compile the binaries and web assets by using the Makefile:
$ make
A bin
directory will be generated including the self-contained shinpuru_<version>
binary and the web assets.
First of all, create a directory with the name bin
.
$ mkdir bin
After that, build the shinpuru backend binary.
$ go build -o bin/shinpuru ./cmd/shinpuru/main.go
Now, change directory to the web dir.
$ cd web
Following, install all required node dependencies.
$ npm install
In the next step, build the frontend assets.
$ npx ng build --prod --output-path ../bin/web/dist/web
Now, all assets and binaries you need are in the bin
location.