Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offer prebuild deb files in a ppa or at https://github.com/kontalk/desktopclient-java/releases #116

Open
freddii opened this issue Jan 7, 2021 · 1 comment

Comments

@freddii
Copy link

freddii commented Jan 7, 2021

It would be useful to have prebuild deb packges.
So people can install it without having to compile it.

@freddii
Copy link
Author

freddii commented Jan 13, 2021

at the moment i am installing the client with this script:

#!/bin/bash
#to run this script go into the folder where it is then run: ./install_kontalk-desktop.sh
#
set -eu
#
dpkg -l | grep -qw openjdk-8-jre-headless || sudo apt-get install openjdk-8-jre-headless -y
dpkg -l | grep -qw unzip || sudo apt-get install unzip -y
#
if [ -d "/home/$USER/programs_setup/kontalk_setup" ]; then
  rm -rf /home/$USER/programs_setup/kontalk_setup
  sudo rm -rf /home/$USER/desktopclient-java
  sudo rm -rf /home/$USER/.kontalk
  sudo rm -rf /home/$USER/.gradle
  rm -f /home/$USER/.local/share/applications/kontalk.desktop
fi
#
echo "if you run into errors maybe do:
sudo nano /etc/java-8-openjdk/accessibility.properties
Comment out the following line:
assistive_technologies=org.GNOME.Accessibility.AtkWrapper"
#
mkdir -p /home/$USER/programs_setup/kontalk_setup
cd /home/$USER/programs_setup/kontalk_setup
wget -q --show-progress -O kontalk.png https://avatars3.githubusercontent.com/u/6746728
wget -q --show-progress https://github.com/kontalk/desktopclient-java/releases/download/v3.1.2/KontalkDesktop-3.1.2.zip
unzip KontalkDesktop-*.zip
rm KontalkDesktop-*.zip
cd ./KontalkDesktop-*
#
cat << EOF | tee /home/$USER/.local/share/applications/kontalk.desktop
[Desktop Entry]
Name=Kontalk
Comment=a messenger app
Exec=sh -c '/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar /home/xxUserxx/programs_setup/kontalk_setup/KontalkDesktop-3.1.2/KontalkDesktopApp.jar'
Icon=/home/xxUserxx/programs_setup/kontalk_setup/kontalk.png
Terminal=false
Type=Application
Categories=Application;Network;Internet;
StartupNotify=true
EOF
#
cd ~/.local/share/applications
sed -i 's/xxUserxx/'$USER'/' kontalk.desktop
#
cd /home/$USER/programs_setup/kontalk_setup/KontalkDesktop-*
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar /home/$USER/programs_setup/kontalk_setup/KontalkDesktop-3.1.2/KontalkDesktopApp.jar

@freddii freddii changed the title offer prebuild deb files in a ppa or at https://github.com/desktopclient-java/releases offer prebuild deb files in a ppa or at https://github.com/kontalk/desktopclient-java/releases Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant