Skip to content

Commit 3a08096

Browse files
authored
Merge pull request #1437 from javiteri95/changesInInstallation
add some changes in installation on linux files
2 parents 00a6aa1 + 3daa4b4 commit 3a08096

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

db_interface/linux_setup.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!bin/bash
22
tempBuildFolder='deps'
33
lsbCommand='lsb_release'
4-
lsbDebian='Debian'
4+
lsbDebianFamily=("Debian Ubuntu Mint Kali")
55
lsbArch='Arch'
66

77
function PSM() {
@@ -21,7 +21,7 @@ PEM " This script will try to install some packages in your system."
2121
PEM " Plase use it only in a development environment."
2222

2323
while true; do
24-
read -p " Do you want to coninue? (Yes/No):" yn
24+
read -p " Do you want to continue? (Yes/No):" yn
2525
case $yn in
2626
[Yy]* ) break;;
2727
[Nn]* ) exit;;
@@ -41,7 +41,7 @@ fi
4141

4242
LSB_DISTRO=$(lsb_release -is)
4343

44-
if [ $LSB_DISTRO == $lsbDebian ]; then
44+
if [[ " ${lsbDebianFamily[@]} " =~ " ${LSB_DISTRO} " ]]; then
4545
LD_FLAGS='/usr/lib/x86_64-linux-gnu/libcrypto.a'
4646
repoUpdate='apt-get update'
4747
elif [ $LSB_DISTRO == $lsbArch ]; then
@@ -69,8 +69,8 @@ printf " - Checking latest repos... \n";
6969
# Install deps
7070
printf " - Installing build dependencies... \n";
7171

72-
if [ $LSB_DISTRO == $lsbDebian ]; then
73-
INSTALL_DEPS_ERROR=$( { sudo apt-get install gcc cmake git pkg-config sqlite3 libsqlite3-dev -y > /dev/null; } 2>&1 )
72+
if [[ " ${lsbDebianFamily[@]} " =~ " ${LSB_DISTRO} " ]]; then
73+
INSTALL_DEPS_ERROR=$( { sudo apt-get install gcc cmake git pkg-config sqlite3 libsqlite3-dev tcl -y > /dev/null; } 2>&1 )
7474
elif [ $LSB_DISTRO == $lsbArch ]; then
7575
INSTALL_DEPS_ERROR=$( { sudo pacman -S --noconfirm base-devel gcc cmake git pkg-config sqlite3 openssl tcl > /dev/null; } 2>&1 )
7676
fi

install.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const packageDirs = [
1010
abs('email_loading'),
1111
abs('email_login'),
1212
abs('email_mailbox'),
13+
abs('email_pin'),
1314
abs('electron_app')
1415
]
1516

signal_interface/installation/linux/linux_binding.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"/usr/lib/x86_64-linux-gnu/libssl.a",
4545
"/usr/lib/x86_64-linux-gnu/libcrypto.a",
4646
"/usr/local/lib/libsqlcipher.a",
47-
"/home/criptext/Pedro/git/civetweb/libcivetweb.a",
47+
"/usr/local/lib/libcivetweb.a",
4848
"/usr/local/lib/libsignal-protocol-c.a",
4949
"/usr/local/lib/libcjson.a",
5050
"/usr/local/lib/libspdlog.a"

signal_interface/installation/linux/linux_install_deps.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!bin/bash
22
tempBuildFolder='deps'
33
lsbCommand='lsb_release'
4-
lsbDebian='Debian'
4+
lsbDebianFamily=("Debian Ubuntu Mint Kali")
55
lsbArch='Arch'
66

77
function PSM() {
@@ -21,7 +21,7 @@ PEM " This script will try to install some packages in your system."
2121
PEM " Plase use it only in a development environment."
2222

2323
while true; do
24-
read -p " Do you want to coninue? (Yes/No):" yn
24+
read -p " Do you want to continue? (Yes/No):" yn
2525
case $yn in
2626
[Yy]* ) break;;
2727
[Nn]* ) exit;;
@@ -41,7 +41,7 @@ fi
4141

4242
LSB_DISTRO=$(lsb_release -is)
4343

44-
if [ $LSB_DISTRO == $lsbDebian ]; then
44+
if [[ " ${lsbDebianFamily[@]} " =~ " ${LSB_DISTRO} " ]]; then
4545
LD_FLAGS='/usr/lib/x86_64-linux-gnu/libcrypto.a'
4646
repoUpdate='apt-get update'
4747
elif [ $LSB_DISTRO == $lsbArch ]; then
@@ -70,8 +70,8 @@ printf " - Checking latest repos \n";
7070
# ================================================
7171

7272
printf " - Installing build dependencies \n";
73-
if [ $LSB_DISTRO == $lsbDebian ]; then
74-
INSTALL_DEPS_ERROR=$( { sudo apt-get install libssl1.0-dev gcc cmake git pkg-config -y > /dev/null; } 2>&1 )
73+
if [[ " ${lsbDebianFamily[@]} " =~ " ${LSB_DISTRO} " ]]; then
74+
INSTALL_DEPS_ERROR=$( { sudo apt-get install libssl1.0-dev gcc cmake git pkg-config tcl -y > /dev/null; } 2>&1 )
7575
elif [ $LSB_DISTRO == $lsbArch ]; then
7676
INSTALL_DEPS_ERROR=$( { sudo pacman -S --noconfirm base-devel cmake git pkg-config openssl tcl > /dev/null; } 2>&1 )
7777
fi
@@ -140,8 +140,10 @@ printf " - Preparing build \n";
140140
cd ./civetweb > /dev/null
141141
printf " - Making install civetweb \n";
142142
make slib > /dev/null
143-
sudo cp include/* /usr/include/ > /dev/null
144-
sudo cp libcivetweb.so* /usr/lib/ > /dev/null
143+
sudo cp include/* /usr/local/include/ > /dev/null
144+
sudo cp libcivetweb.so* /usr/local/lib/ > /dev/null
145+
make lib > /dev/null
146+
sudo cp libcivetweb.a /usr/local/lib > /dev/null
145147
if [ $? -ne 0 ]; then
146148
PEM " Failed to make install civetweb";
147149
removeTempFolder3;

0 commit comments

Comments
 (0)