mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
Merge pull request #605 from cypherstack/single_path_build_instructions
single path build instructions
This commit is contained in:
commit
54954c24e9
2 changed files with 0 additions and 64 deletions
|
@ -29,13 +29,6 @@ Then in `File > Settings > Plugins`, install the **Flutter** and **Dart** plugin
|
||||||
|
|
||||||
Make a Pixel 4 (API 30) x86_64 emulator with 2GB of storage space for emulation
|
Make a Pixel 4 (API 30) x86_64 emulator with 2GB of storage space for emulation
|
||||||
|
|
||||||
### Scripted setup
|
|
||||||
|
|
||||||
[`scripts/setup.sh`](./../scripts/setup.sh) is provided as a tool to set up installation for building: download the script and run it anywhere. This script should skip the entire [Manual setup](#manual-setup) section below and prepare you to [run the prebuild script](#run-prebuild-script), [build the plugins](#Build-plugins), and [run](#Running).
|
|
||||||
|
|
||||||
### Manual setup
|
|
||||||
> If you used the `setup.sh` script, skip to [running](#Running)
|
|
||||||
|
|
||||||
Install basic dependencies
|
Install basic dependencies
|
||||||
```
|
```
|
||||||
sudo apt-get install libssl-dev curl unzip automake build-essential file pkg-config git python libtool libtinfo5 cmake libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev llvm python3-distutils
|
sudo apt-get install libssl-dev curl unzip automake build-essential file pkg-config git python libtool libtinfo5 cmake libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev llvm python3-distutils
|
||||||
|
|
|
@ -1,57 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
export SCRIPTS=$(pwd)
|
|
||||||
|
|
||||||
sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y
|
|
||||||
mkdir "$HOME/development"
|
|
||||||
mkdir "$HOME/projects"
|
|
||||||
sudo apt install -y git build-essential curl
|
|
||||||
export DEVELOPMENT=$HOME/development
|
|
||||||
export PROJECTS=$HOME/projects
|
|
||||||
|
|
||||||
# setup flutter
|
|
||||||
sudo apt install -y unzip pkg-config clang cmake ninja-build libgtk-3-dev
|
|
||||||
cd $DEVELOPMENT
|
|
||||||
git clone https://github.com/flutter/flutter.git
|
|
||||||
cd flutter
|
|
||||||
git checkout 3.10.5
|
|
||||||
export FLUTTER_DIR=$(pwd)/bin
|
|
||||||
echo 'export PATH="$PATH:'${FLUTTER_DIR}'"' >> ~/.bashrc
|
|
||||||
source ~/.bashrc
|
|
||||||
flutter doctor
|
|
||||||
|
|
||||||
# install stack wallet dependencies
|
|
||||||
sudo apt-get install -y unzip automake build-essential file pkg-config git python libtool libtinfo5 cmake openjdk-8-jre-headless libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev llvm
|
|
||||||
|
|
||||||
sudo apt-get install -y debhelper libclang-dev cargo rustc opencl-headers libssl-dev ocl-icd-opencl-dev
|
|
||||||
|
|
||||||
sudo apt-get install -y unzip automake build-essential file pkg-config git python libtool libtinfo5 cmake openjdk-8-jre-headless
|
|
||||||
|
|
||||||
sudo apt install -y libc6-dev-i386
|
|
||||||
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
||||||
source "$HOME/.cargo/env"
|
|
||||||
cargo install cargo-ndk
|
|
||||||
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
|
|
||||||
|
|
||||||
# # setup stack_wallet github
|
|
||||||
# cd $PROJECTS
|
|
||||||
# git clone https://github.com/cypherstack/stack_wallet.git
|
|
||||||
# cd stack_wallet
|
|
||||||
# export STACK_WALLET=$(pwd)
|
|
||||||
# git submodule update --init --recursive
|
|
||||||
|
|
||||||
# # create template lib/external_api_keys.dart file if it doesn't already exist
|
|
||||||
# KEYS="$HOME/projects/stack_wallet/lib/external_api_keys.dart"
|
|
||||||
# if ! test -f "$KEYS"; then
|
|
||||||
# echo 'prebuild.sh: creating template lib/external_api_keys.dart file'
|
|
||||||
# printf 'const kChangeNowApiKey = "";\nconst kSimpleSwapApiKey = "";' > $KEYS
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# build stack wallet plugins
|
|
||||||
cd $SCRIPTS
|
|
||||||
./prebuild.sh
|
|
||||||
cd android
|
|
||||||
./build_all.sh
|
|
||||||
cd ../linux
|
|
||||||
./build_all.sh
|
|
Loading…
Reference in a new issue