Доработка deb/rpm

This commit is contained in:
Anton Titovets
2026-02-16 21:15:05 +03:00
parent c2873bb74f
commit f477f1c1d0
11 changed files with 60 additions and 10 deletions
+1
View File
@@ -32,6 +32,7 @@ src/en/cli/data/Classes/internal/Classes/** linguist-vendored
*.luac binary
*.sh text eol=lf
*.bash text eol=lf
*.desktop text eol=lf
*.bat text eol=crlf
media/** filter=lfs diff=lfs merge=lfs -text
Media/** filter=lfs diff=lfs merge=lfs -text
+4
View File
@@ -470,6 +470,10 @@
"description": "Postinstall script path",
"value": "./service/templates/postinst.sh"
},
"postrmScript": {
"description": "Post-removal script path",
"value": "./service/templates/postrm.sh"
},
"packageTypes": {
"description": "Package data by type",
"value": {
@@ -0,0 +1,15 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=OInt
Name[ru]=OInt
GenericName=API Integration Tool
GenericName[ru]=Инструмент интеграции с API
Comment=CLI toolkit for integrating with popular services and technologies
Comment[ru]=Приложение для работы с различными онлайн-сервисами и технологиями
Exec=oint
Icon=oint
Terminal=true
Categories=Development;Utility;
Keywords=api;integration;cli;telegram;vk;bitrix24;
Keywords[ru]=апи;интеграция;командная строка;телеграм;вк;битрикс24;
Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

+8
View File
@@ -282,13 +282,20 @@
Мейнтейнер = ДанныеПроекта.ПолучитьЗначениеНастройки("packaging.maintainer");
ВидыПакетов = ДанныеПроекта.ПолучитьЗначениеНастройки("packaging.packageTypes");
Постинсталл = ДанныеПроекта.ПолучитьЗначениеНастройки("packaging.postinstScript");
Постудаление = ДанныеПроекта.ПолучитьЗначениеНастройки("packaging.postrmScript");
КонечныйПутьПостинсталл = ОбъединитьПути(ПутьВыгрузки, "postinst.sh");
КонечныйПутьПостудаление = ОбъединитьПути(ПутьВыгрузки, "postrm.sh");
// Нормализация окончаний строк для bash скриптов
ТекстПостинсталл = ПолучитьСтрокуИзДвоичныхДанных(Новый ДвоичныеДанные(Постинсталл));
ТекстПостинсталл = СтрЗаменить(ТекстПостинсталл, Символы.ВК + Символы.ПС, Символы.ПС);
ПолучитьДвоичныеДанныеИзСтроки(ТекстПостинсталл).Записать(КонечныйПутьПостинсталл);
ТекстПостудаление = ПолучитьСтрокуИзДвоичныхДанных(Новый ДвоичныеДанные(Постудаление));
ТекстПостудаление = СтрЗаменить(ТекстПостудаление, Символы.ВК + Символы.ПС, Символы.ПС);
ПолучитьДвоичныеДанныеИзСтроки(ТекстПостудаление).Записать(КонечныйПутьПостудаление);
Описание = Данные["Описание"];
Префикс = Данные["Префикс"];
URL = Данные["URL"];
@@ -329,6 +336,7 @@
КонецЦикла;
УдалитьФайлы(КонечныйПутьПостинсталл);
УдалитьФайлы(КонечныйПутьПостудаление);
УдалитьФайлы(КонечныйПутьОписание);
КонецПроцедуры
+1
View File
@@ -10,5 +10,6 @@ fpm -t deb \
--url "%3" \
--maintainer "%4" \
--after-install postinst.sh \
--after-remove postrm.sh \
--verbose \
../ci/installer_set/=/usr %5=/usr/lib/oint/bin
+1
View File
@@ -12,5 +12,6 @@ fpm -t rpm \
--url "%3" \
--maintainer "%4" \
--after-install postinst.sh \
--after-remove postrm.sh \
--verbose \
../ci/installer_set/=/usr %5=/usr/lib/oint/bin
+3 -5
View File
@@ -4,8 +4,6 @@ CLI toolkit for integrating with popular services and technologies
technologies, including Telegram, VK, Bitrix24, Google and Yandex services, as well
as various DBMS and exchange protocols.
.
Features:
• Simple and intuitive command-line interface
• Comprehensive documentation and usage examples
• Support for various data formats (JSON, XML, CSV)
• Automation capabilities through scripts
Features: simple and intuitive command-line interface, comprehensive documentation
and usage examples, support for various data formats (JSON, XML, CSV), automation
capabilities through scripts.
+2 -4
View File
@@ -4,7 +4,5 @@
технологиях, включая Telegram, VK, Bitrix24, Google и Yandex-сервисы, а также
различные СУБД и протоколы обмена.
.
Особенности:
• Простой и интуитивный интерфейс командной строки
• Подробная документация и примеры использования
• Возможность автоматизации через скрипты
Особенности: простой и интуитивный интерфейс командной строки, подробная
документация и примеры использования, возможность автоматизации через скрипты.
+10
View File
@@ -4,4 +4,14 @@ set -e
chmod +x /usr/bin/oint
chmod +x /usr/lib/oint/bin/oscript
# Update desktop database
if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database /usr/share/applications >/dev/null 2>&1 || true
fi
# Update icon cache
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
gtk-update-icon-cache -f -t /usr/share/pixmaps >/dev/null 2>&1 || true
fi
exit 0
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -e
# Update desktop database
if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database /usr/share/applications >/dev/null 2>&1 || true
fi
# Update icon cache
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
gtk-update-icon-cache -f -t /usr/share/pixmaps >/dev/null 2>&1 || true
fi
exit 0