Created
August 2, 2019 18:07
-
-
Save chelovekula/c3e5d6c5f7efab76aab7b7069031fbd1 to your computer and use it in GitHub Desktop.
maybebash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Скачать Билд | |
wget aezakmi-linux-installer https://github.com/chelovekula/aezakmi-linux-installer/blob/master/installer.tar.zg | |
#Распаковать архив | |
tar -zxvf aezakmi-linux-installer/installer.tar.zg | |
#Войти в папку | |
cd aezakmi-linux-installer | |
#Создадим папку .fonts если она еще не существует | |
if ! [ -d ~/.fonts/ ]; then | |
mkdir ~/.fonts | |
fi | |
#Копируем Шрифты | |
cp fonts/* ~/.fonts | |
#Обновляем кэш шрифтов системы | |
fc-cache -f -v | |
#создаем папку для хранения браузера | |
mkdir ~/.local/share/applications/aezakmi-browser | |
#Копируем файлы браузера в соотвествующую директорию | |
cp aezakmi-browser/* ~/.local/share/applications/aezakmi-browser | |
#Создаем алиас на бинарник браузера | |
ln -s ~/.local/share/applications/aezakmi-browser/chrome.exe /usr/bin/aezakmi-browser | |
#Создаем ярлык на рабочем столе | |
cp aezakmi-browser/Aezakmi.desktop ~/desktop | |
#Разрешаем скрипту запуск | |
chmod u+x ~/.local/share/applications/aezakmi-browser/aezakmi-profiles/AezakmiAdd.sh | |
#Создаем файл счетчик-профилей | |
echo "2" > ~/.local/share/applications/aezakmi-browser/aezakmi-profiles/profile-numbers | |
#!/usr/bin/env xdg-open | |
[Desktop Entry] | |
Name=Aezakmi | |
Exec=chrome.exe --load-extension=~/.local/share/applications/aezakmi-browser/aezakmi-browser/core --user-data-dir=~/.local/share/applications/aezakmi-browser/aezakmi-profiles/1 | |
Type=Application | |
StartupNotify=true | |
Path=~/.local/share/applications/aezakmi-browser/ | |
Icon=~/.local/share/applications/aezakmi-browser/icons/favicon.ico | |
#!/usr/bin/env xdg-open | |
[Desktop Entry] | |
Name=CreateAezakmiProfile | |
Exec=AezakmiAdd.sh | |
Type=Application | |
StartupNotify=true | |
Path=~/.local/share/applications/aezakmi-browser/aezakmi-profiles/ | |
Icon=~/.local/share/applications/aezakmi-browser/icons/faviconadd.ico | |
currentProfile = $(cat ~/.local/share/applications/aezakmi-browser/aezakmi-profiles/profile-numbers) | |
echo "[Desktop Entry] | |
Name=Aezakmi $currentProfile | |
Exec=chrome.exe --load-extension=~/.local/share/applications/aezakmi-browser/aezakmi-browser/core --user-data-dir=~/.local/share/applications/aezakmi-browser/aezakmi-profiles/$currentProfile | |
Type=Application | |
StartupNotify=true | |
Path=~/.local/share/applications/aezakmi-browser/ | |
Icon=~/.local/share/applications/aezakmi-browser/icons/favicon.ico" > ~/desktop/Aezakmi$currentProfile.desktop | |
secondProfile = 1 + $currentProfile | |
echo "$secondProfile" > ~/.local/share/applications/aezakmi-browser/aezakmi-profiles/profile-numbers | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment