From c84651dc5ce996786b3bff4816194255a246bb8e Mon Sep 17 00:00:00 2001 From: Patryk Osmaczko Date: Thu, 21 Jul 2022 07:43:47 +0200 Subject: [PATCH] chore: update README and build script --- ui/StatusQ/README.md | 11 +++++------ ui/StatusQ/sandbox/scripts/build | 10 ++-------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/ui/StatusQ/README.md b/ui/StatusQ/README.md index 637b2ed5da..cac3884320 100644 --- a/ui/StatusQ/README.md +++ b/ui/StatusQ/README.md @@ -36,7 +36,7 @@ To make viewing and testing components easy, we've added a sandbox application t ### Using Qt Creator -The easiest way to run the sandbox application is to simply open the provided `sandbox.pro` file using Qt Creator. +The easiest way to run the sandbox application is to simply open the provided `CMakeLists.txt` file using Qt Creator. ### Using command line interface @@ -44,14 +44,13 @@ To run the sandbox from within a command line interface, run the following comma ``` $ git clone https://github.com/status-im/StatusQ -$ cd StatusQ/sandbox -$ ./scripts/build +$ cd StatusQ +$ git submodule update --init +$ ./sandbox/scripts/build ``` Once that is done, the sandbox can be started with the generated executable: ``` -$ ./bin/sandbox +$ ./build/sandbox/Sandbox ``` - -More Documentation available on the [wiki](https://hackmd.io/@status-desktop/B1naRjxh_/%2FwFtiXvOiQqCdw2lk6gbOLA) diff --git a/ui/StatusQ/sandbox/scripts/build b/ui/StatusQ/sandbox/scripts/build index dcfba7844d..3ff123ba13 100755 --- a/ui/StatusQ/sandbox/scripts/build +++ b/ui/StatusQ/sandbox/scripts/build @@ -1,10 +1,4 @@ #!/bin/bash -make clean -if [[ $OSTYPE == 'darwin'* ]] -then - qmake sandbox.pro -spec macx-clang CONFIG+=debug CONFIG+=x86_64 && /usr/bin/make qmake_all -else - qmake sandbox.pro CONFIG+=debug CONFIG+=x86_64 && /usr/bin/make qmake_all -fi -make \ No newline at end of file +cmake -B build +cmake --build build