Browse Source

abricotine added

Adem Aytaç 2 years ago
parent
commit
3ca558650a
3 changed files with 40 additions and 0 deletions
  1. 11 0
      desktop/abricotine.desktop
  2. 28 0
      install/abricotine.sh
  3. 1 0
      start.sh

+ 11 - 0
desktop/abricotine.desktop

@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Name=abricotine
+GenericName=abricotine
+Exec=/usr/local/lib/abricotine/Abricotine
+Terminal=false
+Icon=/usr/local/lib/abricotine/icons/abricotine.png
+Type=Application
+Categories=Office;
+Comment=Markdown editor

+ 28 - 0
install/abricotine.sh

@@ -0,0 +1,28 @@
+#!/bin/bash
+APP_NAME=abricotine
+APP_VERSION=0.6.0
+FILE_NAME=Abricotine-${APP_VERSION}-linux-x64
+TAR_FILE=${FILE_NAME}.tar.gz
+URL_STABLE=https://github.com/brrd/Abricotine/releases/download/${APP_VERSION}/${TAR_FILE}
+EXTRACT_FOLDER_NAME=Abricotine-linux-x64
+INSTALL_FOLDER=/usr/local/lib/${APP_NAME}
+
+# Create temp folder if not exists
+[ ! -d ./temp ] && mkdir ./temp
+cd ./temp
+
+# Download file
+wget ${URL_STABLE}
+
+# Extract file
+tar -xvzf ./${TAR_FILE}
+
+# move to lib folder
+sudo mv ${EXTRACT_FOLDER_NAME} ${INSTALL_FOLDER}
+
+# Download desktop file
+sudo cp ../desktop/${APP_NAME}.desktop /usr/share/applications/
+
+echo ${APP_NAME} ${APP_VERSION} installed
+
+cd ..

+ 1 - 0
start.sh

@@ -5,3 +5,4 @@ sh ./install/keeweb.sh
 sh ./install/vscode.sh
 sh ./install/rambox.sh
 sh ./install/postman.sh
+sh ./install/abricote.sh