Skip to content

p1ratrulezzz/brainser

Repository files navigation

brainser

Requirements for building

  1. Docker
  2. Git
  3. Go 1.23 or higher
  4. resources.zip file (not included here due to legal reasons, should be found somewhere else)

Building console variant

  1. Clone the project
  2. Extract resources.zip (resources_enc folder) to src/app/ so it will be src/app/resources_enc
  3. make build - to build console version

Building the gui variant (advanced users)

Simple build of gui variant:

CGO_ENABLED=1 go build -tags gui -o brainser-binary "jetbrainser/src/app"

Fyne build

Gui version with fyne is built in a more complexs way. Cross compiling from linux only works for windows and linux. Compiling for macos is only available from macos, xcode is required. Check other targets in makefile and try building it You have to run docker-compose build from the project root in order to ensure local docker images are created (for linux).

Compiling from windows to other platforms and to windows is a hell though possible. msys32 can do the job, build by simple running go build with CGO_ENABLED=1 the recommended way is to use linux.

Example of building linux-x64 verison (ensure docker is running)

make buildgui-linux-amd64

Run GUI variant without gui

./binary-amd64 -nogui

This will run the console variant

Limitations

Some versions of this app might not work in virtual machines such as VMWare and Parallels Desktop due to lack of support for OpenGL. Use console variant for virtual machines.

Disclaimer

This software is just a wrapper over another software developed by other unknown guy or girl and all the rights to its content belongs to them. This tool is developed on intention of learning Go programming language and is opensource for learning purposes only and any commercial use is prohibited.

Tools used

Fyne https://github.com/fyne-io/fyne

Fyne-cross https://github.com/fyne-io/fyne-cross

Golang https://go.dev/doc/

Docker https://www.docker.com/

Oto (v3) https://github.com/ebitengine/oto (for music)

Music: https://modarchive.org/

Donate

Crypto

Bitcoin: 14QQYoqNsL9eVwgLRi5QgAVpgBU1jjpQ3f
Litecoin: LUGX7Utf8zGTckDnHMBpGEftpZyVuXJPgz
ETH(ERC20/BEP20) 0xfa97d136abf1c83b0cccc9ac3d7e82a451c87abd
BNB(BEP20): 0xfa97d136abf1c83b0cccc9ac3d7e82a451c87abd
TRX/TRC20: TTWpRXAZJdz1AazKQRzsaAfHRHW6q2veSJ