Commit d5f0a975 authored by Gampe Sebastian's avatar Gampe Sebastian
Browse files

add developers guide

parent 937d9a8d
# Developers Guide
## File Verify & Sign
## Build wallets binaries
### ElectrumFair Wallet
#### Linux
check Python3 version
```
python3 -V
```
If python3.7+ is NOT installed then download latest version at python.org
Extract the files and build python3:
```
./configure
make
make test
sudo make install
```
clone git ( release selection by ```-b branch``` )
```
mkdir ~/faircoin_dev
cd ~/faircoin_dev
git clone -b 3.3.4-fc https://github.com/criptomart/electrumfair.git
```
```
contrib/make_locale
contrib/make_packages
contrib/make_tgz
```
binaries created
```
dist/ElectrumFair-x.x.x.tar.gz
dist/ElectrumFair-x.x.x.zip
```
sign binaries
```
gpg2 --detach-sign --local-user tonyford -a ElectrumFair-*.tar.gz
```
( without ```--local-user username``` the default key of your local machine will used )
verify signature
```
gpg2 --verify ElectrumFair-*.tar.gz.asc
```
#### Android
Detailed instructions :
```
electrum/gui/kivy/Readme.md
```
Short instructions:
1. Install Docker
```
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce
```
2. Build image
```
sudo docker build -t electrum-android-builder-img electrum/gui/kivy/tools
```
3. Build locale files
```
contrib/make_locale
```
4. Prepare pure python dependencies
```
contrib/make_packages
```
5. Build binaries
```
sudo docker run -it --rm \
--name electrum-android-builder-cont \
-v $PWD:/home/user/wspace/electrum \
-v ~/.keystore:/home/user/.keystore \
--workdir /home/user/wspace/electrum \
electrum-android-builder-img \
./contrib/make_apk
```
This mounts the project dir inside the container,
and so the modifications will affect it, e.g. `.buildozer` folder
will be created.
5. The generated binary is in `./bin`.
**Clear cache before rebuild**
You probably need to clear the cache:
```
rm -rf .buildozer/android/platform/build/{build,dists}
```
**Quick testing by connected phone**
Assuming `adb` is installed ( `sudo apt-get install android-tools-adb`)
```
adb -d install -r bin/ElectrumFair-*-debug.apk
adb shell monkey -p org.electrumfair.electrumfair 1
```
**Getting shell access inside Docker**
```
sudo docker run -it --rm \
-v $PWD:/home/user/wspace/electrum \
--workdir /home/user/wspace/electrum \
electrum-android-builder-img
```
**How do I get more verbose logs?**
See `log_level` in `buildozer.spec`
**Getting access to phone system logs**
```
adb logcat [--help]
```
......@@ -139,6 +139,7 @@
<div class="col-md-12 text-center alert alert-info footer">
<p>All wallet downloads are signed with the PGP-key <a href="https://keys.gnupg.net/pks/lookup?search=0xFBC65836&fingerprint=on&op=index">0xFBC65836</a>, finger print: AD6F 421C 0966 2CEB 390D 1EFA 4E5B 4916 FBC6 5836</p>
<p>If you need help then join our <a href="https://t.me/joinchat/BPPPUVXXo2bC-tGI1lolMw">telegram group</a></p>
<p>Developers can find a helful guide <a href="https://git.fairkom.net/FairCoin/faircoin-freevision/tree/master/download/README.md">here</a> !</p>
</div>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment