Skip to content

Commit 87c535d

Browse files
committed
add bch.sh/refactor
1 parent 65332b5 commit 87c535d

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Dependencies install
113113
114114
# apt-get install cmake
115115
116-
3. G++
116+
3. g++
117117
118118
# apt-get install g++
119119

bch.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
# for debian 9 (stretch)
3+
4+
apt update
5+
apt upgrade
6+
7+
# Install dependencies
8+
9+
# install git
10+
# apt install git
11+
12+
# Conan
13+
wget https://dl.bintray.com/conan/installers/conan-ubuntu-64_1_11_2.deb
14+
dpkg -i conan-ubuntu-64_1_11_2.deb
15+
16+
# Cmake
17+
apt-get install cmake
18+
19+
# g++
20+
apt-get install g++
21+
22+
# Dotnet
23+
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
24+
mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
25+
wget -q https://packages.microsoft.com/config/debian/9/prod.list
26+
mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
27+
chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
28+
chown root:root /etc/apt/sources.list.d/microsoft-prod.list
29+
apt-get update
30+
apt-get install dotnet-sdk-2.2
31+
32+
# Run bitprim
33+
git clone https://github.com/bitprim/bitprim-insight.git
34+
cd bitprim-insight/bitprim.insight
35+
dotnet build /p:BCH=true -c Release -v normal
36+
37+
38+
# TODO: appsettings.json
39+
nohup dotnet bin/Release/netcoreapp2.0/bitprim.insight.dll --server.port=3000 --server.address=0.0.0.0 &

0 commit comments

Comments
 (0)