mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-03 17:29:23 +00:00
Fix check in build script for jsoncpp directory existing.
This commit is contained in:
parent
80db215a01
commit
322870d9e3
2 changed files with 10 additions and 9 deletions
|
@ -4,7 +4,7 @@
|
||||||
# flutter-elinux clean
|
# flutter-elinux clean
|
||||||
# flutter-elinux pub get
|
# flutter-elinux pub get
|
||||||
# flutter-elinux build linux --dart-define="IS_ARM=true"
|
# flutter-elinux build linux --dart-define="IS_ARM=true"
|
||||||
mkdir build
|
mkdir -p build
|
||||||
./build_secure_storage_deps.sh &
|
./build_secure_storage_deps.sh &
|
||||||
(cd ../../crypto_plugins/flutter_liblelantus/scripts/linux && ./build_all.sh ) &
|
(cd ../../crypto_plugins/flutter_liblelantus/scripts/linux && ./build_all.sh ) &
|
||||||
(cd ../../crypto_plugins/flutter_libepiccash/scripts/linux && ./build_all.sh ) &
|
(cd ../../crypto_plugins/flutter_libepiccash/scripts/linux && ./build_all.sh ) &
|
||||||
|
|
|
@ -1,30 +1,31 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
LINUX_DIRECTORY=$(pwd)
|
LINUX_DIRECTORY=$(pwd)
|
||||||
|
JSONCPP_TAG=1.7.4
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
|
|
||||||
# Build JsonCPP
|
# Build JsonCPP
|
||||||
cd build || exit
|
cd build || exit 1
|
||||||
if ! [ -x "$(command -v git)" ]; then
|
if ! [ -x "$(command -v git)" ]; then
|
||||||
echo 'Error: git is not installed.' >&2
|
echo 'Error: git is not installed.' >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
git -C jsoncpp pull || git clone https://github.com/open-source-parsers/jsoncpp.git jsoncpp
|
git -C jsoncpp pull origin $JSONCPP_TAG || git clone https://github.com/open-source-parsers/jsoncpp.git jsoncpp
|
||||||
cd jsoncpp || exit
|
cd jsoncpp || exit 1
|
||||||
git checkout 1.7.4
|
git checkout $JSONCPP_TAG
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build || exit
|
cd build || exit 1
|
||||||
cmake -DCMAKE_BUILD_TYPE=release -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=ON -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ..
|
cmake -DCMAKE_BUILD_TYPE=release -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=ON -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ..
|
||||||
make -j"$(nproc)"
|
make -j"$(nproc)"
|
||||||
|
|
||||||
cd "$LINUX_DIRECTORY" || exit
|
cd "$LINUX_DIRECTORY" || exit 1
|
||||||
# Build libSecret
|
# Build libSecret
|
||||||
# sudo apt install meson libgirepository1.0-dev valac xsltproc gi-docgen docbook-xsl
|
# sudo apt install meson libgirepository1.0-dev valac xsltproc gi-docgen docbook-xsl
|
||||||
# sudo apt install python3-pip
|
# sudo apt install python3-pip
|
||||||
#pip3 install --user meson markdown tomli --upgrade
|
#pip3 install --user meson markdown tomli --upgrade
|
||||||
# pip3 install --user gi-docgen
|
# pip3 install --user gi-docgen
|
||||||
cd build || exit
|
cd build || exit 1
|
||||||
git -C libsecret pull || git clone https://gitlab.gnome.org/GNOME/libsecret.git libsecret
|
git -C libsecret pull || git clone https://gitlab.gnome.org/GNOME/libsecret.git libsecret
|
||||||
cd libsecret || exit
|
cd libsecret || exit 1
|
||||||
if ! [ -x "$(command -v meson)" ]; then
|
if ! [ -x "$(command -v meson)" ]; then
|
||||||
echo 'Error: meson is not installed.' >&2
|
echo 'Error: meson is not installed.' >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue