- Clone the source repository:
$ git clone https://github.com/Freechains/freechains.kt/
- Install the Java SDK:
sudo apt install default-jdk
-
Open
IntelliJ IDEA
(version2023.1.2
):- Open project/directory
freechains.kt/
- Wait for all imports (takes long...)
- Run self tests:
- On the left pane, click tab
Project
:- Double click file
freechains.kt -> src -> test -> kotlin -> Test.kt
- Double click file
- Press
CTRL-SHIFT-F10
to run all tests (takes long...)
- On the left pane, click tab
- Generate artifacts:
- Click
File -> Project Structure -> Artifacts -> + -> JAR -> From modules with dependencies
- Click
Module -> freechains.kt.main
- Click
OK
- Verify that
freechains.kt.main:jar
appears at the top - Click
OK
- Click
- Rebuild artifacts:
- Click
Build -> Build artifacts -> Build
- Click
- Open project/directory
-
Install & Test binaries:
$ cd freechains.kt/src/test/shell/
$ sudo make install # copy to /usr/local/bin
$ cd test/
$ ./tests.sh
- Use Freechains:
$ freechains-host --version
$ freechains --version