You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-07-13 01:30:17 +02:00
RC5 для Linux
This commit is contained in:
@ -106,6 +106,9 @@
|
|||||||
КаталогиМодулей.Добавить(ОбъединитьПути(Путь, "src", "Модули"));
|
КаталогиМодулей.Добавить(ОбъединитьПути(Путь, "src", "Модули"));
|
||||||
КаталогиМодулей.Добавить(ОбъединитьПути(Путь, "src", "Modules"));
|
КаталогиМодулей.Добавить(ОбъединитьПути(Путь, "src", "Modules"));
|
||||||
|
|
||||||
|
КаталогиВК = Новый Массив;
|
||||||
|
КаталогиВК.Добавить(ОбъединитьПути(Путь, "Components"));
|
||||||
|
КаталогиВК.Добавить(ОбъединитьПути(Путь, "Компоненты"));
|
||||||
|
|
||||||
Для Каждого мКаталог Из КаталогиКлассов Цикл
|
Для Каждого мКаталог Из КаталогиКлассов Цикл
|
||||||
|
|
||||||
@ -119,6 +122,12 @@
|
|||||||
|
|
||||||
КонецЦикла;
|
КонецЦикла;
|
||||||
|
|
||||||
|
Для Каждого мКаталог Из КаталогиВК Цикл
|
||||||
|
|
||||||
|
ОбработатьКаталогВК(мКаталог, СтандартнаяОбработка, Отказ);
|
||||||
|
|
||||||
|
КонецЦикла;
|
||||||
|
|
||||||
КонецПроцедуры
|
КонецПроцедуры
|
||||||
|
|
||||||
Процедура ОбработатьКаталогКлассов(Знач Путь, СтандартнаяОбработка, Отказ)
|
Процедура ОбработатьКаталогКлассов(Знач Путь, СтандартнаяОбработка, Отказ)
|
||||||
@ -161,6 +170,75 @@
|
|||||||
|
|
||||||
КонецПроцедуры
|
КонецПроцедуры
|
||||||
|
|
||||||
|
// По соглашению ВК должны лежать в подпапках, названных, как значения перечисления ТипПлатформы.
|
||||||
|
// Имя файла, являющегося внешней компонентой должно иметь префикс 1script_
|
||||||
|
// Components
|
||||||
|
// net4 (фреймворк .net48
|
||||||
|
// 1script_barcode.dll
|
||||||
|
// dotnet (.net современных версий, он же netcore)
|
||||||
|
// 1script_barcode.dll
|
||||||
|
// NativeApi
|
||||||
|
// Windows_x86
|
||||||
|
// 1script_barcode.dll
|
||||||
|
// Windows_x86_64
|
||||||
|
// 1script_barcode.dll
|
||||||
|
// Linux_x86_64
|
||||||
|
// 1script_barcode.so
|
||||||
|
// остальные не поддерживаются (ЖВПР)
|
||||||
|
//
|
||||||
|
Процедура ОбработатьКаталогВК(Знач Путь, СтандартнаяОбработка, Отказ)
|
||||||
|
|
||||||
|
СИ = Новый СистемнаяИнформация();
|
||||||
|
МажорнаяВерсия = Лев(СИ.Версия,1);
|
||||||
|
|
||||||
|
Если МажорнаяВерсия = "1" Тогда
|
||||||
|
ОбработатьБиблиотекиCLR(ОбъединитьПути(Путь, "net4"));
|
||||||
|
ИначеЕсли МажорнаяВерсия = "2" Тогда
|
||||||
|
ОбработатьБиблиотекиCLR(ОбъединитьПути(Путь, "dotnet"));
|
||||||
|
Иначе
|
||||||
|
Вывести("Неизвестная мажорная версия системы: " + МажорнаяВерсия);
|
||||||
|
КонецЕсли;
|
||||||
|
|
||||||
|
ОбработатьКомпонентыNativeApi(Путь);
|
||||||
|
|
||||||
|
КонецПроцедуры
|
||||||
|
|
||||||
|
Процедура ОбработатьБиблиотекиCLR(Путь)
|
||||||
|
КандидатыВКомпоненты = НайтиФайлы(Путь, "1script_*.dll");
|
||||||
|
Для Каждого Кандидат Из КандидатыВКомпоненты Цикл
|
||||||
|
Если Не Кандидат.ЭтоФайл() Тогда
|
||||||
|
Продолжить;
|
||||||
|
КонецЕсли;
|
||||||
|
|
||||||
|
Вывести("Загружаю файл " + Кандидат.Имя);
|
||||||
|
ЗагрузитьБиблиотеку(Кандидат.ПолноеИмя);
|
||||||
|
|
||||||
|
КонецЦикла;
|
||||||
|
КонецПроцедуры
|
||||||
|
|
||||||
|
Процедура ОбработатьКомпонентыNativeApi(Путь)
|
||||||
|
СИ = Новый СистемнаяИнформация;
|
||||||
|
ИмяПодкаталога = ОбъединитьПути(Путь, Строка(СИ.ТипПлатформы));
|
||||||
|
Вывести("Ищу внешние компоненты в каталоге " + Путь);
|
||||||
|
|
||||||
|
#Если Windows Тогда
|
||||||
|
Расширение = ".dll";
|
||||||
|
#Иначе
|
||||||
|
Расширение = ".so";
|
||||||
|
#КонецЕсли
|
||||||
|
|
||||||
|
КандидатыВКомпоненты = НайтиФайлы(ИмяПодкаталога, "1script_*"+Расширение);
|
||||||
|
Для Каждого Кандидат Из КандидатыВКомпоненты Цикл
|
||||||
|
Если Не Кандидат.ЭтоФайл() Тогда
|
||||||
|
Продолжить;
|
||||||
|
КонецЕсли;
|
||||||
|
|
||||||
|
Вывести("Загружаю файл " + Кандидат.Имя);
|
||||||
|
ПодключитьВнешнююКомпоненту(Кандидат.ПолноеИмя, Кандидат.Имя, ТипВнешнейКомпоненты.Native);
|
||||||
|
|
||||||
|
КонецЦикла;
|
||||||
|
КонецПроцедуры
|
||||||
|
|
||||||
Процедура ДобавитьКлассЕслиРанееНеДобавляли(ПутьФайла, ИмяКласса)
|
Процедура ДобавитьКлассЕслиРанееНеДобавляли(ПутьФайла, ИмяКласса)
|
||||||
Вывести("Добавляю класс, если ранее не добавляли " + ИмяКласса);
|
Вывести("Добавляю класс, если ранее не добавляли " + ИмяКласса);
|
||||||
Если ВыдаватьОшибкуПриЗагрузкеУжеСуществующихКлассовМодулей Тогда
|
Если ВыдаватьОшибкуПриЗагрузкеУжеСуществующихКлассовМодулей Тогда
|
||||||
@ -171,11 +249,12 @@
|
|||||||
|
|
||||||
КлассУжеЕсть = Ложь;
|
КлассУжеЕсть = Ложь;
|
||||||
Попытка
|
Попытка
|
||||||
Объект = Новый(ИмяКласса);
|
ИзвестныйТип = Тип(ИмяКласса);
|
||||||
КлассУжеЕсть = Истина;
|
КлассУжеЕсть = Истина;
|
||||||
Исключение
|
Исключение
|
||||||
СообщениеОшибки = ОписаниеОшибки();
|
СообщениеОшибки = ОписаниеОшибки();
|
||||||
ИскомаяОшибка = СтрШаблон("Конструктор не найден (%1)", ИмяКласса);
|
ШаблонОшибки = НСтр("ru = 'Тип не зарегистрирован (%1)';en = 'Type is not registered (%1)'");
|
||||||
|
ИскомаяОшибка = СтрШаблон(ШаблонОшибки, ИмяКласса);
|
||||||
КлассУжеЕсть = СтрНайти(СообщениеОшибки, ИскомаяОшибка) = 0;
|
КлассУжеЕсть = СтрНайти(СообщениеОшибки, ИскомаяОшибка) = 0;
|
||||||
КонецПопытки;
|
КонецПопытки;
|
||||||
Если Не КлассУжеЕсть Тогда
|
Если Не КлассУжеЕсть Тогда
|
||||||
|
BIN
service/engine/linux/Microsoft.AspNetCore.Antiforgery.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Antiforgery.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Authentication.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Authentication.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Authorization.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Authorization.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Components.Forms.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Components.Forms.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Components.Server.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Components.Server.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Components.Web.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Components.Web.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Components.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Components.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.CookiePolicy.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.CookiePolicy.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Cors.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Cors.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.DataProtection.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.DataProtection.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Diagnostics.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Diagnostics.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.HostFiltering.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.HostFiltering.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Hosting.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Hosting.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Html.Abstractions.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Html.Abstractions.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Http.Abstractions.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Http.Abstractions.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Http.Connections.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Http.Connections.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Http.Extensions.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Http.Extensions.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Http.Features.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Http.Features.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Http.Results.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Http.Results.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Http.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Http.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.HttpLogging.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.HttpLogging.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.HttpOverrides.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.HttpOverrides.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.HttpsPolicy.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.HttpsPolicy.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Identity.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Identity.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Localization.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Localization.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Metadata.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Metadata.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.Abstractions.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.Abstractions.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.ApiExplorer.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.ApiExplorer.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.Core.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.Core.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.Cors.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.Cors.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.Formatters.Xml.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.Formatters.Xml.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.Localization.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.Localization.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.Razor.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.Razor.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.RazorPages.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.RazorPages.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.TagHelpers.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.TagHelpers.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.ViewFeatures.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.ViewFeatures.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Mvc.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Razor.Runtime.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Razor.Runtime.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Razor.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Razor.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.ResponseCaching.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.ResponseCaching.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Rewrite.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Rewrite.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Routing.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Routing.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Server.HttpSys.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Server.HttpSys.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Server.IIS.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Server.IIS.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Server.Kestrel.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Server.Kestrel.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.Session.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.Session.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.SignalR.Common.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.SignalR.Common.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.SignalR.Core.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.SignalR.Core.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.SignalR.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.SignalR.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.StaticFiles.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.StaticFiles.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.WebSockets.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.WebSockets.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.WebUtilities.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.WebUtilities.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.AspNetCore.dll
Normal file
BIN
service/engine/linux/Microsoft.AspNetCore.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.Extensions.Caching.Memory.dll
Normal file
BIN
service/engine/linux/Microsoft.Extensions.Caching.Memory.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.Extensions.Configuration.Ini.dll
Normal file
BIN
service/engine/linux/Microsoft.Extensions.Configuration.Ini.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.Extensions.Configuration.Json.dll
Normal file
BIN
service/engine/linux/Microsoft.Extensions.Configuration.Json.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.Extensions.Configuration.Xml.dll
Normal file
BIN
service/engine/linux/Microsoft.Extensions.Configuration.Xml.dll
Normal file
Binary file not shown.
BIN
service/engine/linux/Microsoft.Extensions.Configuration.dll
Normal file
BIN
service/engine/linux/Microsoft.Extensions.Configuration.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
service/engine/linux/Microsoft.Extensions.Features.dll
Normal file
BIN
service/engine/linux/Microsoft.Extensions.Features.dll
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user