From 5ed671b5ea7ebd937ab8379721bfe9b40c9a5613 Mon Sep 17 00:00:00 2001 From: silverpill Date: Fri, 3 Jun 2022 20:25:21 +0000 Subject: [PATCH] Add contracts to debian package --- README.md | 6 ------ contrib/mitra_config.yaml | 16 ++++++---------- scripts/build_deb.sh | 4 ++++ 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 6d69ad6..a9702ca 100644 --- a/README.md +++ b/README.md @@ -121,12 +121,6 @@ cargo clippy cargo test ``` -### Build for production - -``` -cargo build --release -``` - ## Federation See [FEDERATION.md](./FEDERATION.md) diff --git a/contrib/mitra_config.yaml b/contrib/mitra_config.yaml index 0092b96..8697fb2 100644 --- a/contrib/mitra_config.yaml +++ b/contrib/mitra_config.yaml @@ -23,20 +23,16 @@ registrations_open: false #post_character_limit: 2000 -# Blockchain settings -# Example: +# Blockchain integration #blockchain: # chain_id: eip155:31337 # contract_address: '0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9' -# contract_dir: contracts +# contract_dir: /usr/share/mitra/contracts # api_url: 'http://127.0.0.1:8545' # explorer_url: null # signing_key: null -# Set `blockchain` key to `null` to disable blockchain integration -blockchain: null -# IPFS settings -# Set `ipfs_api_url` key to `null` to disable IPFS integration -ipfs_api_url: null -# IPFS gateway for clients -ipfs_gateway_url: null +# IPFS integration +#ipfs_api_url: 'http://127.0.0.1:5001' +# IPFS gateway (for clients) +#ipfs_gateway_url: 'https://ipfs.example.tld' diff --git a/scripts/build_deb.sh b/scripts/build_deb.sh index 19be41f..1d2eb9b 100755 --- a/scripts/build_deb.sh +++ b/scripts/build_deb.sh @@ -32,6 +32,10 @@ mkdir -p $PACKAGE_DIR/usr/bin cp target/release/mitra $PACKAGE_DIR/usr/bin/mitra cp target/release/mitractl $PACKAGE_DIR/usr/bin/mitractl +# Contracts +mkdir -p $PACKAGE_DIR/usr/share/mitra +cp -r contracts $PACKAGE_DIR/usr/share/mitra/contracts + # Webapp mkdir -p $PACKAGE_DIR/usr/share/mitra # https://people.debian.org/~neilm/webapps-policy/ch-issues.html#s-issues-fhs