Education applications/Ramus: различия между версиями

Материал из ALT Linux Wiki
Нет описания правки
Нет описания правки
Строка 12: Строка 12:
rm -r -f /opt/ramus
rm -r -f /opt/ramus
rm -f /usr/share/applications/ramus.desktop
rm -f /usr/share/applications/ramus.desktop
rm /usr/bin/gradlew
mkdir /tmp/ramus-install
mkdir /tmp/ramus-install
cd /tmp/ramus-install
cd /tmp/ramus-install
apt-get install git java-11-openjdk-devel -y
apt-get install -y git java-11-openjdk
git clone https://github.com/Vitaliy-Yakovchuk/ramus.git
git clone https://github.com/Vitaliy-Yakovchuk/ramus.git
mkdir /opt/ramus
cp -r ramus /opt
cd /tmp/ramus-install/ramus
cp -r * /opt/ramus/
chmod ugo+rx -R /opt/ramus/
touch /usr/share/applications/ramus.desktop
touch /usr/share/applications/ramus.desktop
echo "[Desktop Entry]" >> /usr/share/applications/ramus.desktop
echo "[Desktop Entry]" >> /usr/share/applications/ramus.desktop
Строка 30: Строка 26:
echo "Name=Ramus" >> /usr/share/applications/ramus.desktop
echo "Name=Ramus" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Comment=Программа для построения диаграмм бизнесс-процессов" >> /usr/share/applications/ramus.desktop
echo "Comment=Основанный на Java инструмент моделирования IDEF0 и DFD" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Path=/opt/ramus/" >> /usr/share/applications/ramus.desktop
echo "Path=/opt/ramus/" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Exec=./gradlew runLocal" >> /usr/share/applications/ramus.desktop
echo "Exec=/opt/ramus/gradlew runLocal" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Icon=/opt/ramus/dest/win32-bin/icon.ico" >> /usr/share/applications/ramus.desktop
echo "Icon=/opt/ramus/gui-framework-common/src/main/resources/com/ramussoft/gui/application.png" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Terminal=false" >> /usr/share/applications/ramus.desktop
echo "Terminal=false" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Categories=Development;" >> /usr/share/applications/ramus.desktop
echo "Categories=Education;" >> /usr/share/applications/ramus.desktop
ln /opt/ramus/gradlew /usr/bin/gradlew
chmod +x /usr/share/applications/ramus.desktop
chmod -R 777 /opt/ramus
cd
cd
rm -r -f /tmp/ramus-install
rm -r -f /tmp/ramus-install
Строка 68: Строка 65:
rm -r -f /opt/ramus
rm -r -f /opt/ramus
rm -f /usr/share/applications/ramus.desktop
rm -f /usr/share/applications/ramus.desktop
rm /usr/bin/gradlew
rm /usr/share/applications/ramus.desktop
</syntaxhighlight>
</syntaxhighlight>
|}
|}

Версия от 19:36, 7 сентября 2023

Stub.png
Данная страница находится в разработке.
Эта страница ещё не закончена. Информация, представленная здесь, может оказаться неполной или неверной.


Установка

1. Для установки создайте файл ramus-install.sh с содержимым указанным ниже:

ramus-install.sh
rm -r -f /tmp/ramus-install
rm -r -f /opt/ramus
rm -f /usr/share/applications/ramus.desktop
mkdir /tmp/ramus-install
cd /tmp/ramus-install
apt-get install -y git java-11-openjdk
git clone https://github.com/Vitaliy-Yakovchuk/ramus.git
cp -r ramus /opt
touch /usr/share/applications/ramus.desktop
echo "[Desktop Entry]" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Type=Application" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Version=1.0" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Name=Ramus" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Comment=Основанный на Java инструмент моделирования IDEF0 и DFD" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Path=/opt/ramus/" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Exec=/opt/ramus/gradlew runLocal" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Icon=/opt/ramus/gui-framework-common/src/main/resources/com/ramussoft/gui/application.png" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Terminal=false" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Categories=Education;" >> /usr/share/applications/ramus.desktop
chmod +x /usr/share/applications/ramus.desktop
chmod -R 777 /opt/ramus
cd
rm -r -f /tmp/ramus-install

2. повысьте права

su -

3.сделайте скрипт исполняемым

chmod +x ./ramus-install.sh

4.выполните скрипт

./ramus-install.sh

Удаление

1. Для удаления создайте файл ramus-remove.sh с содержимым указанным ниже:

ramus-remove.sh
rm -r -f /tmp/ramus-install
rm -r -f /opt/ramus
rm -f /usr/share/applications/ramus.desktop
rm /usr/share/applications/ramus.desktop

2. повысьте права

su -

3.сделайте скрипт исполняемым

chmod +x ./ramus-remove.sh

4.выполните скрипт

./ramus-remove.sh