You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
Изменение формирования пакетов
This commit is contained in:
@@ -0,0 +1 @@
|
||||
mono /usr/share/bin/oint/oscript.exe /usr/share/lib/oint/oint-cli/core/Classes/app.os "$@"
|
||||
@@ -0,0 +1,2 @@
|
||||
@call "%~dp0/share/bin/oint/oscript.exe" "%~dp0/share/lib/oint/oint-cli/core/Classes/app.os" %*
|
||||
@exit /b %ERRORLEVEL%
|
||||
Binary file not shown.
Binary file not shown.
@@ -1 +0,0 @@
|
||||
mono /bin/oint/oscript.exe /lib/oint/oint-cli/core/Classes/app.os "$@"
|
||||
@@ -1,2 +0,0 @@
|
||||
@call "%~dp0/bin/oint/oscript.exe" "%~dp0/lib/oint/oint-cli/core/Classes/app.os" %*
|
||||
@exit /b %ERRORLEVEL%
|
||||
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
</configuration>
|
||||
@@ -0,0 +1,8 @@
|
||||
@echo off
|
||||
|
||||
setlocal
|
||||
|
||||
set lib="%~dp0..\lib"
|
||||
set opm=%lib%\opm\src\cmd\opm.os
|
||||
|
||||
oscript.exe %opm% %*
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
</configuration>
|
||||
+26
-15
@@ -6,6 +6,7 @@
|
||||
Перем Сервер;
|
||||
Перем ПутьВыгрузки;
|
||||
Перем Кугвин;
|
||||
Перем Оскрипт;
|
||||
|
||||
|
||||
Процедура НачалоРаботы()
|
||||
@@ -18,6 +19,7 @@
|
||||
Файл1С = """C:\Program Files\1cv8\8.3.18.1208\bin\1cv8.exe""";
|
||||
Сервер = "AIONIOTISCORE:1742";
|
||||
Кугвин = "C:\cygwin64\bin\";
|
||||
ОСкрипт = "C:\Program Files\OneScript\";
|
||||
|
||||
ПутьКРепозиторию = "C:\ProgramData\Jenkins\.jenkins\workspace\Release";
|
||||
//ПутьКРепозиторию = "C:\Repos\OPI";
|
||||
@@ -66,14 +68,17 @@
|
||||
|
||||
Для Каждого Локализация Из МассивЛокализаций Цикл
|
||||
|
||||
СоздатьXML(Локализация);
|
||||
СоздатьCFE(Локализация);
|
||||
СоздатьEDT(Локализация);
|
||||
СоздатьOSPX(Локализация);
|
||||
СоздатьEXE(Локализация);
|
||||
//СоздатьXML(Локализация);
|
||||
//СоздатьCFE(Локализация);
|
||||
//СоздатьEDT(Локализация);
|
||||
//СоздатьOSPX(Локализация);
|
||||
//СоздатьEXE(Локализация);
|
||||
СоздатьПакеты(Локализация);
|
||||
СоздатьУстановщик(Локализация);
|
||||
//СоздатьУстановщик(Локализация);
|
||||
|
||||
УдалитьФайлы(".\ci\installer_set\share\oint\lib\oint");
|
||||
УдалитьФайлы(".\ci\installer_set\share\oint\lib\oint-cli");
|
||||
|
||||
КонецЦикла;
|
||||
|
||||
//Draft
|
||||
@@ -83,8 +88,8 @@
|
||||
Сообщить("Start GHCLI");
|
||||
|
||||
Для Каждого ФайлРелиза Из ФайлыРелиза Цикл
|
||||
ЗапуститьПриложение("""C:\Program Files\GitHub CLI\gh.exe"" release delete-asset draft --yes --repo " + Репозиторий + " """ + ФайлРелиза.Имя + """", , Истина);
|
||||
ЗапуститьПриложение("""C:\Program Files\GitHub CLI\gh.exe"" release upload draft --repo " + Репозиторий + " """ + ФайлРелиза.ПолноеИмя + """", , Истина);
|
||||
//ЗапуститьПриложение("""C:\Program Files\GitHub CLI\gh.exe"" release delete-asset draft --yes --repo " + Репозиторий + " """ + ФайлРелиза.Имя + """", , Истина);
|
||||
//ЗапуститьПриложение("""C:\Program Files\GitHub CLI\gh.exe"" release upload draft --repo " + Репозиторий + " """ + ФайлРелиза.ПолноеИмя + """", , Истина);
|
||||
КонецЦикла;
|
||||
|
||||
Сообщить("End GHCLI");
|
||||
@@ -198,6 +203,10 @@
|
||||
|
||||
ЗапуститьПриложение(СборкаCLI, ПутьCLIP, Истина);
|
||||
|
||||
ЗапуститьПриложение("xcopy """ + ОСкрипт + "lib\oint"" "".\ci\installer_set\share\oint\lib\oint"" /e /y /i", , Истина);
|
||||
ЗапуститьПриложение("xcopy """ + ОСкрипт + "lib\oint-cli"" "".\ci\installer_set\share\oint\lib\oint-cli"" /e /y /i", , Истина);
|
||||
УдалитьФайлы(".\ci\installer_set\share\oint\lib\oint\tests");
|
||||
|
||||
Сообщить("End OSPX");
|
||||
|
||||
КонецПроцедуры
|
||||
@@ -222,6 +231,9 @@
|
||||
|
||||
Сообщить("Start Пакеты");
|
||||
|
||||
|
||||
|
||||
|
||||
ТекстSh = "--name oint"
|
||||
+ " -s dir"
|
||||
+ " --license mit"
|
||||
@@ -232,7 +244,7 @@
|
||||
+ " --url ""https://openintegrations.dev/"""
|
||||
+ " --maintainer ""Anton Titovets <bayselonarrend@gmail.com>"""
|
||||
+ " --verbose"
|
||||
+ " ./ci/installer_set=/";
|
||||
+ " ../ci/installer_set/=/usr";
|
||||
|
||||
СоответствиеПакетов = Новый Соответствие();
|
||||
СоответствиеПакетов.Вставить("deb", "oint_" + Версия + "_all_" + Данные["Префикс"] + ".deb");
|
||||
@@ -244,11 +256,12 @@
|
||||
|
||||
Для Каждого Пакет Из СоответствиеПакетов Цикл
|
||||
|
||||
MakeSh = ПутьКРепозиторию + "make" + Пакет.Ключ + ".sh";
|
||||
MakeBat = ПутьКРепозиторию + "make" + Пакет.Ключ + ".bat";
|
||||
MakeSh = ПутьВыгрузки + "make" + Пакет.Ключ + ".sh";
|
||||
MakeBat = ПутьВыгрузки + "make" + Пакет.Ключ + ".bat";
|
||||
|
||||
|
||||
FPM = "chmod +x oint
|
||||
FPM = "chmod +x ../ci/installer_set/share/oint/bin/oscript.exe
|
||||
|chmod +x ../ci/installer_set/bin/oint
|
||||
|fpm -t " + Пакет.Ключ + " -p " + Пакет.Значение + " " + СоответствиеДополнений[Пакет.Ключ] + ТекстSh;
|
||||
FPM = ПолучитьДвоичныеДанныеИзСтроки(FPM);
|
||||
FPM.Записать(MakeSh);
|
||||
@@ -257,15 +270,13 @@
|
||||
ТекстBat = ПолучитьДвоичныеДанныеИзСтроки(ТекстBat, "CP866");
|
||||
ТекстBat.Записать(MakeBat);
|
||||
|
||||
ЗапуститьПриложение("make" + Пакет.Ключ + ".bat", ПутьКРепозиторию, Истина);
|
||||
ЗапуститьПриложение("make" + Пакет.Ключ + ".bat", ПутьВыгрузки, Истина);
|
||||
|
||||
УдалитьФайлы(MakeBat);
|
||||
УдалитьФайлы(MakeSh);
|
||||
|
||||
КонецЦикла;
|
||||
|
||||
УдалитьФайлы(ПутьВыгрузки + "oint");
|
||||
УдалитьФайлы(ПутьКомандыRPM);
|
||||
Сообщить("End Пакеты");
|
||||
|
||||
КонецПроцедуры
|
||||
|
||||
+1
-5
@@ -4,7 +4,6 @@
|
||||
#define MyAppURL "https://github.com/Bayselonarrend/OpenIntegrations"
|
||||
#define MyAppExeName "oint.bat"
|
||||
#define Repo "C:\ProgramData\Jenkins\.jenkins\workspace\Release\"
|
||||
#define OScript "C:\Program Files\OneScript\"
|
||||
|
||||
[Setup]
|
||||
DisableWelcomePage = no
|
||||
@@ -29,10 +28,7 @@ OutputBaseFilename = oint_{#MyAppVersion}_installer_en
|
||||
|
||||
[Files]
|
||||
Source: "{#Repo}\ci\installer_set\*"; DestDir: "{app}"; Flags: recursesubdirs
|
||||
|
||||
Source: "{#OScript}\lib\oint\*"; DestDir: "{app}\lib\oint"; Flags: recursesubdirs; Excludes: "tests"
|
||||
Source: "{#OScript}\lib\oint-cli\*"; DestDir: "{app}\lib\oint-cli"; Flags: recursesubdirs
|
||||
|
||||
Source: "{#Repo}\src\ru\cli\start.bat"; DestDir: "{app}"
|
||||
Source: "{#Repo}\Media\logo.bmp"; Flags: dontcopy
|
||||
|
||||
[Icons]
|
||||
|
||||
+3
-7
@@ -2,9 +2,8 @@
|
||||
#define MyAppVersion "1.15.1"
|
||||
#define MyAppPublisher "bayselonarrend"
|
||||
#define MyAppURL "https://github.com/Bayselonarrend/OpenIntegrations"
|
||||
#define MyAppExeName "oint.bat"
|
||||
#define MyAppExeName "bin\oint.bat"
|
||||
#define Repo "C:\ProgramData\Jenkins\.jenkins\workspace\Release\"
|
||||
#define OScript "C:\Program Files\OneScript\"
|
||||
|
||||
[Setup]
|
||||
DisableWelcomePage = no
|
||||
@@ -32,10 +31,7 @@ Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
|
||||
|
||||
[Files]
|
||||
Source: "{#Repo}\ci\installer_set\*"; DestDir: "{app}"; Flags: recursesubdirs
|
||||
|
||||
Source: "{#OScript}\lib\oint\*"; DestDir: "{app}\lib\oint"; Flags: recursesubdirs; Excludes: "tests"
|
||||
Source: "{#OScript}\lib\oint-cli\*"; DestDir: "{app}\lib\oint-cli"; Flags: recursesubdirs
|
||||
|
||||
Source: "{#Repo}\src\ru\cli\start.bat"; DestDir: "{app}"
|
||||
Source: "{#Repo}\Media\logo.bmp"; Flags: dontcopy
|
||||
|
||||
[Icons]
|
||||
@@ -57,7 +53,7 @@ Filename: "https://openintegrations.dev/docs/Start/CLI_version"; Flags: shellexe
|
||||
[Registry]
|
||||
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; \
|
||||
ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}"; \
|
||||
Check: NeedsAddPath(ExpandConstant('{app}'))
|
||||
Check: NeedsAddPath(ExpandConstant('{app}\bin'))
|
||||
|
||||
[Code]
|
||||
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
cmd /k oint.exe
|
||||
@echo off
|
||||
cmd /k "@call share\bin\oint\oscript.exe share\lib\oint\oint-cli\core\Classes\app.os"
|
||||
Reference in New Issue
Block a user