mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-19 21:17:55 +02:00
TCP сервер
This commit is contained in:
parent
9e3be96410
commit
b7572e319c
1
.gitignore
vendored
1
.gitignore
vendored
@ -22,3 +22,4 @@ target/
|
|||||||
|
|
||||||
!oscript.exe
|
!oscript.exe
|
||||||
addin.zip
|
addin.zip
|
||||||
|
src/addins/tcp_server/OPI_TCPServer.zip
|
||||||
|
16
src/addins/tcp_server/Cargo.lock
generated
16
src/addins/tcp_server/Cargo.lock
generated
@ -2,6 +2,14 @@
|
|||||||
# It is not intended for manual editing.
|
# It is not intended for manual editing.
|
||||||
version = 4
|
version = 4
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "OPI_TCPServer"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"addin1c",
|
||||||
|
"serde_json",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "addin1c"
|
name = "addin1c"
|
||||||
version = "0.5.0"
|
version = "0.5.0"
|
||||||
@ -24,14 +32,6 @@ version = "2.7.4"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "opi_addin"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"addin1c",
|
|
||||||
"serde_json",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "proc-macro2"
|
name = "proc-macro2"
|
||||||
version = "1.0.92"
|
version = "1.0.92"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "opi_addin"
|
name = "OPI_TCPServer"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
:: Установить переменную
|
:: Установить переменную
|
||||||
set LIB_NAME=opi_addin
|
set LIB_NAME=OPI_TCPServer
|
||||||
set OPENSSL_DIR=C:\msys64\mingw64
|
set OPENSSL_DIR=C:\msys64\mingw64
|
||||||
set OPENSSL_LIB_DIR=%OPENSSL_DIR%\lib
|
set OPENSSL_LIB_DIR=%OPENSSL_DIR%\lib
|
||||||
set OPENSSL_INCLUDE_DIR=%OPENSSL_DIR%\include
|
set OPENSSL_INCLUDE_DIR=%OPENSSL_DIR%\include
|
||||||
@ -47,10 +47,15 @@ copy /y MANIFEST.XML "%OUTPUT_DIR%\MANIFEST.XML"
|
|||||||
if errorlevel 1 goto :error
|
if errorlevel 1 goto :error
|
||||||
|
|
||||||
:: Архивация
|
:: Архивация
|
||||||
set ZIP_NAME=addin.zip
|
powershell -Command "Compress-Archive -Path '%OUTPUT_DIR%\*' -Force -DestinationPath '%LIB_NAME%.zip'"
|
||||||
powershell -Command "Compress-Archive -Path '%OUTPUT_DIR%\*' -Force -DestinationPath '%ZIP_NAME%'"
|
|
||||||
if errorlevel 1 goto :error
|
if errorlevel 1 goto :error
|
||||||
|
|
||||||
|
copy /y "%LIB_NAME%.zip" "../../ru/OInt/addins/%LIB_NAME%.zip"
|
||||||
|
copy /y "%LIB_NAME%.zip" "../../en/OInt/addins/%LIB_NAME%.zip"
|
||||||
|
|
||||||
|
copy /y "%LIB_NAME%.zip" "../../ru/OPI/src/CommonTemplates/%LIB_NAME%/Template.addin"
|
||||||
|
copy /y "%LIB_NAME%.zip" "../../en/OPI/src/CommonTemplates/%LIB_NAME%/Template.addin"
|
||||||
|
|
||||||
if exist "%OUTPUT_DIR%" (
|
if exist "%OUTPUT_DIR%" (
|
||||||
rmdir /S /Q "%OUTPUT_DIR%"
|
rmdir /S /Q "%OUTPUT_DIR%"
|
||||||
)
|
)
|
||||||
|
BIN
src/en/OInt/addins/OPI_TCPServer.zip
Normal file
BIN
src/en/OInt/addins/OPI_TCPServer.zip
Normal file
Binary file not shown.
BIN
src/ru/OInt/addins/OPI_TCPServer.zip
Normal file
BIN
src/ru/OInt/addins/OPI_TCPServer.zip
Normal file
Binary file not shown.
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<mdclass:CommonTemplate xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="db1c4d3a-787c-4744-b110-653437f7096e">
|
||||||
|
<name>OPI_TCPServer</name>
|
||||||
|
<synonym>
|
||||||
|
<key>ru</key>
|
||||||
|
<value>TCPServer</value>
|
||||||
|
</synonym>
|
||||||
|
<templateType>AddIn</templateType>
|
||||||
|
</mdclass:CommonTemplate>
|
BIN
src/ru/OPI/src/CommonTemplates/OPI_TCPServer/Template.addin
Normal file
BIN
src/ru/OPI/src/CommonTemplates/OPI_TCPServer/Template.addin
Normal file
Binary file not shown.
@ -40,6 +40,7 @@
|
|||||||
</configurationInformationAddress>
|
</configurationInformationAddress>
|
||||||
<subsystems>Subsystem.OPI_Интеграция</subsystems>
|
<subsystems>Subsystem.OPI_Интеграция</subsystems>
|
||||||
<commonTemplates>CommonTemplate.OPI_TCPClient</commonTemplates>
|
<commonTemplates>CommonTemplate.OPI_TCPClient</commonTemplates>
|
||||||
|
<commonTemplates>CommonTemplate.OPI_TCPServer</commonTemplates>
|
||||||
<commonModules>CommonModule.OPI_Инструменты</commonModules>
|
<commonModules>CommonModule.OPI_Инструменты</commonModules>
|
||||||
<commonModules>CommonModule.OPI_Криптография</commonModules>
|
<commonModules>CommonModule.OPI_Криптография</commonModules>
|
||||||
<commonModules>CommonModule.OPI_ПреобразованиеТипов</commonModules>
|
<commonModules>CommonModule.OPI_ПреобразованиеТипов</commonModules>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user