TrueBlocks / trueblocks-core

The main repository for the TrueBlocks system
https://trueblocks.io
GNU General Public License v3.0
1.04k stars 194 forks source link

Feat: Offer easier install methods #3761

Open sambacha opened 3 weeks ago

sambacha commented 3 weeks ago

Currently the TrueBlocks website lists this as the only install method:

https://www.trueblocks.io/docs/install/install-core/

Installation
Open a terminal window.

Type go version. If Go is not installed or your version is less than 1.22.0, [install the latest version of Go](https://go.dev/doc/install)

Install or upgrade the build dependencies: git, cmake, ninja, curl, python, clang-format, jq

[Install dependencies](https://trueblocks.io/docs/install/install-troubleshooting/#installing-build-tools)

Clone the repo and compile the executable:

git clone --depth 1 --no-single-branch --recurse-submodules --branch develop https://github.com/TrueBlocks/trueblocks-core
cd trueblocks-core
mkdir build && cd build
../scripts/go-work-sync.sh
cmake ../src
make
Switch to the master branch if you want a more stable version.

The build may be faster with make -j <nproc>.

Add ./trueblocks-core/bin to your shell’s $PATH. Check Google if you don’t know what this means.

Type chifra config --paths. This will produce a display similar to the following (ignore any errors). Note the $CONFIG paths.

Surely, the CI process can build the binaries for macOS and Linux? Having a quick install script would make it easier for people to at least try it out!

If you are open to a PR I would be happy to make such additions such that the binaries are published to GitHub!

tjayrush commented 3 weeks ago

I'm open to it. @Dawid Szlachta @.***> Your thoughts?

On Thu, Jun 6, 2024 at 3:00 AM sam bacha @.***> wrote:

Currently the TrueBlocks website lists this as the only install method:

https://www.trueblocks.io/docs/install/install-core/

Installation Open a terminal window.

Type go version. If Go is not installed or your version is less than 1.22.0, install the latest version of Go

Install or upgrade the build dependencies: git, cmake, ninja, curl, python, clang-format, jq

Install dependencies

Clone the repo and compile the executable:

git clone --depth 1 --no-single-branch --recurse-submodules --branch develop https://github.com/TrueBlocks/trueblocks-core cd trueblocks-core mkdir build && cd build ../scripts/go-work-sync.sh cmake ../src make Switch to the master branch if you want a more stable version.

The build may be faster with make -j .

Add ./trueblocks-core/bin to your shell’s $PATH. Check Google if you don’t know what this means.

Type chifra config --paths. This will produce a display similar to the following (ignore any errors). Note the $CONFIG paths.

Surely, the CI process can build the binaries for macOS and Linux? Having a quick install script would make it easier for people to at least try it out!

If you are open to a PR I would be happy to make such additions such that the binaries are published to GitHub!

— Reply to this email directly, view it on GitHub https://github.com/TrueBlocks/trueblocks-core/issues/3761, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJKXPRA27BKLEX5FI5CJBLZGACHLAVCNFSM6AAAAABI4DB5NCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZTONBYHA4DCOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Thomas Jay Rush http://t http://quickblocks.iorueblocks.io @.***

dszlachta commented 3 weeks ago

It would be great to have it and for sure it's possible to build chifra inside the CI. Go has a really nice cross-compile feature.

tjayrush commented 3 weeks ago

If you are open to a PR I would be happy to make such additions such that the binaries are published to GitHub!

Now that version 3.0.0 is out, please go ahead. Interested to see what you create.