2016-08-02 11:10:47 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
sudo -i
|
|
|
|
|
|
|
|
JAVA_HOME=/usr/lib/jvm/java-8-oracle
|
2017-06-27 01:29:51 +02:00
|
|
|
# or: /usr/lib/jvm/jdk1.8.0_112
|
|
|
|
echo 'export JAVA_HOME=$(/usr/libexec/java_home)' >> ~/.bashrc
|
2016-08-02 11:10:47 +02:00
|
|
|
|
Replace Maven with Gradle in docs and scripts
This commit takes a pass through all documentation and scripts,
replacing any remaining `mvn` commands with their `gradle` equivalents,
replacing `target/*` paths with their `build/*` equivalents, and so on.
Note that the instruction to install Maven has been removed entirely
from documentation and scripts, as opposed to instructing users to
install Gradle, because with the Gradle wrapper (the `gradlew` script in
the root of this repository), it is unnecessary to install Gradle at
all. Users may still do this with, e.g. `brew install gradle` if they
like, but otherwise can get everything they need done with `./gradlew`
commands.
This commit also replaces lowercase 'bisq' with capitalized 'Bisq' where
appropriate in documentation.
Like the previous commit, this is a best-effort approach, and not all
scripts are perfectly up-to-date and tested. Indeed, many of the docs
and scripts we have now are essentially legacy documents and should
probably be scrapped or reworked completely.
2018-03-21 06:03:27 +01:00
|
|
|
echo "Install Oracle Java 8, Git, unzip"
|
2016-08-02 11:10:47 +02:00
|
|
|
apt-get update
|
|
|
|
add-apt-repository ppa:webupd8team/java
|
|
|
|
apt-get update
|
Replace Maven with Gradle in docs and scripts
This commit takes a pass through all documentation and scripts,
replacing any remaining `mvn` commands with their `gradle` equivalents,
replacing `target/*` paths with their `build/*` equivalents, and so on.
Note that the instruction to install Maven has been removed entirely
from documentation and scripts, as opposed to instructing users to
install Gradle, because with the Gradle wrapper (the `gradlew` script in
the root of this repository), it is unnecessary to install Gradle at
all. Users may still do this with, e.g. `brew install gradle` if they
like, but otherwise can get everything they need done with `./gradlew`
commands.
This commit also replaces lowercase 'bisq' with capitalized 'Bisq' where
appropriate in documentation.
Like the previous commit, this is a best-effort approach, and not all
scripts are perfectly up-to-date and tested. Indeed, many of the docs
and scripts we have now are essentially legacy documents and should
probably be scrapped or reworked completely.
2018-03-21 06:03:27 +01:00
|
|
|
apt-get -y install oracle-java8-installer git unzip
|
2016-08-02 11:10:47 +02:00
|
|
|
|
2017-02-07 18:46:11 -05:00
|
|
|
# Alternatively you can download the latest jdk and extract it to $JAVA_HOME
|
2017-06-27 02:50:31 +02:00
|
|
|
# wget http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"
|
2016-11-12 12:50:49 +01:00
|
|
|
# If you had an older java version installed set the new java version as default by those commands:
|
2016-11-14 15:17:05 +01:00
|
|
|
apt-get install update-alternatives
|
2017-02-07 18:46:11 -05:00
|
|
|
# update-alternatives --install /usr/bin/java java $JAVA_HOME/bin/java 2000
|
|
|
|
# update-alternatives --install /usr/bin/javac javac $JAVA_HOME/bin/javac 2000
|
2016-11-12 12:50:49 +01:00
|
|
|
# Test with java -version and javac- version if the version is correct. Otherwise check here:
|
|
|
|
# sudo update-alternatives --config java
|
|
|
|
# sudo update-alternatives --config javac
|
2016-10-28 18:26:13 +02:00
|
|
|
|
2016-08-02 11:10:47 +02:00
|
|
|
|
|
|
|
echo "Enable unlimited Strength for cryptographic keys"
|
|
|
|
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip
|
2017-02-11 18:18:41 -05:00
|
|
|
#apt-get install unzip
|
2016-08-02 11:10:47 +02:00
|
|
|
unzip jce_policy-8.zip
|
2017-02-11 18:18:41 -05:00
|
|
|
sudo cp UnlimitedJCEPolicyJDK8/US_export_policy.jar $JAVA_HOME/jre/lib/security/US_export_policy.jar
|
|
|
|
sudo cp UnlimitedJCEPolicyJDK8/local_policy.jar $JAVA_HOME/jre/lib/security/local_policy.jar
|
2016-08-02 11:10:47 +02:00
|
|
|
|
2017-02-11 18:18:41 -05:00
|
|
|
sudo chmod 777 $JAVA_HOME/jre/lib/security/US_export_policy.jar
|
|
|
|
sudo chmod 777 $JAVA_HOME/jre/lib/security/local_policy.jar
|
2016-08-02 11:10:47 +02:00
|
|
|
|
2017-02-11 18:18:41 -05:00
|
|
|
rm -r UnlimitedJCEPolicyJDK8 jce_policy-8.zip
|
2016-08-02 11:10:47 +02:00
|
|
|
|
2017-06-27 01:29:51 +02:00
|
|
|
### 4. Install Protobuffer
|
|
|
|
$ wget https://github.com/google/protobuf/releases/download/v3.2.0/protobuf-java-3.2.0.tar.gz
|
|
|
|
$ tar xzf protobuf-3.2.0.tar.gz
|
|
|
|
$ cd protobuf-3.2.0
|
|
|
|
$ sudo apt-get update
|
|
|
|
$ sudo apt-get install build-essential
|
|
|
|
$ sudo ./configure
|
|
|
|
$ sudo make
|
|
|
|
$ sudo make check
|
Replace Maven with Gradle in docs and scripts
This commit takes a pass through all documentation and scripts,
replacing any remaining `mvn` commands with their `gradle` equivalents,
replacing `target/*` paths with their `build/*` equivalents, and so on.
Note that the instruction to install Maven has been removed entirely
from documentation and scripts, as opposed to instructing users to
install Gradle, because with the Gradle wrapper (the `gradlew` script in
the root of this repository), it is unnecessary to install Gradle at
all. Users may still do this with, e.g. `brew install gradle` if they
like, but otherwise can get everything they need done with `./gradlew`
commands.
This commit also replaces lowercase 'bisq' with capitalized 'Bisq' where
appropriate in documentation.
Like the previous commit, this is a best-effort approach, and not all
scripts are perfectly up-to-date and tested. Indeed, many of the docs
and scripts we have now are essentially legacy documents and should
probably be scrapped or reworked completely.
2018-03-21 06:03:27 +01:00
|
|
|
$ sudo make install
|
2017-06-27 01:29:51 +02:00
|
|
|
$ sudo ldconfig
|
|
|
|
$ protoc --version
|
|
|
|
|
2016-08-02 11:10:47 +02:00
|
|
|
|
Replace Maven with Gradle in docs and scripts
This commit takes a pass through all documentation and scripts,
replacing any remaining `mvn` commands with their `gradle` equivalents,
replacing `target/*` paths with their `build/*` equivalents, and so on.
Note that the instruction to install Maven has been removed entirely
from documentation and scripts, as opposed to instructing users to
install Gradle, because with the Gradle wrapper (the `gradlew` script in
the root of this repository), it is unnecessary to install Gradle at
all. Users may still do this with, e.g. `brew install gradle` if they
like, but otherwise can get everything they need done with `./gradlew`
commands.
This commit also replaces lowercase 'bisq' with capitalized 'Bisq' where
appropriate in documentation.
Like the previous commit, this is a best-effort approach, and not all
scripts are perfectly up-to-date and tested. Indeed, many of the docs
and scripts we have now are essentially legacy documents and should
probably be scrapped or reworked completely.
2018-03-21 06:03:27 +01:00
|
|
|
echo "Install and resolve dependencies for Bisq"
|
2016-08-02 11:10:47 +02:00
|
|
|
cd ~
|
Replace Maven with Gradle in docs and scripts
This commit takes a pass through all documentation and scripts,
replacing any remaining `mvn` commands with their `gradle` equivalents,
replacing `target/*` paths with their `build/*` equivalents, and so on.
Note that the instruction to install Maven has been removed entirely
from documentation and scripts, as opposed to instructing users to
install Gradle, because with the Gradle wrapper (the `gradlew` script in
the root of this repository), it is unnecessary to install Gradle at
all. Users may still do this with, e.g. `brew install gradle` if they
like, but otherwise can get everything they need done with `./gradlew`
commands.
This commit also replaces lowercase 'bisq' with capitalized 'Bisq' where
appropriate in documentation.
Like the previous commit, this is a best-effort approach, and not all
scripts are perfectly up-to-date and tested. Indeed, many of the docs
and scripts we have now are essentially legacy documents and should
probably be scrapped or reworked completely.
2018-03-21 06:03:27 +01:00
|
|
|
git clone -b DAO https://github.com/bisq-network/bisq-desktop.git
|
|
|
|
cd bisq-desktop
|
|
|
|
./gradlew build
|