1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-17 21:08:03 +02:00

TCP сервер

This commit is contained in:
Anton Titovets 2024-12-20 11:07:03 +03:00
parent 9e3be96410
commit b7572e319c
9 changed files with 28 additions and 12 deletions

1
.gitignore vendored
View File

@ -22,3 +22,4 @@ target/
!oscript.exe
addin.zip
src/addins/tcp_server/OPI_TCPServer.zip

View File

@ -2,6 +2,14 @@
# It is not intended for manual editing.
version = 4
[[package]]
name = "OPI_TCPServer"
version = "0.1.0"
dependencies = [
"addin1c",
"serde_json",
]
[[package]]
name = "addin1c"
version = "0.5.0"
@ -24,14 +32,6 @@ version = "2.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
[[package]]
name = "opi_addin"
version = "0.1.0"
dependencies = [
"addin1c",
"serde_json",
]
[[package]]
name = "proc-macro2"
version = "1.0.92"

View File

@ -1,5 +1,5 @@
[package]
name = "opi_addin"
name = "OPI_TCPServer"
version = "0.1.0"
edition = "2021"

View File

@ -1,7 +1,7 @@
@echo off
:: Установить переменную
set LIB_NAME=opi_addin
set LIB_NAME=OPI_TCPServer
set OPENSSL_DIR=C:\msys64\mingw64
set OPENSSL_LIB_DIR=%OPENSSL_DIR%\lib
set OPENSSL_INCLUDE_DIR=%OPENSSL_DIR%\include
@ -47,10 +47,15 @@ copy /y MANIFEST.XML "%OUTPUT_DIR%\MANIFEST.XML"
if errorlevel 1 goto :error
:: Архивация
set ZIP_NAME=addin.zip
powershell -Command "Compress-Archive -Path '%OUTPUT_DIR%\*' -Force -DestinationPath '%ZIP_NAME%'"
powershell -Command "Compress-Archive -Path '%OUTPUT_DIR%\*' -Force -DestinationPath '%LIB_NAME%.zip'"
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%" (
rmdir /S /Q "%OUTPUT_DIR%"
)

Binary file not shown.

Binary file not shown.

View File

@ -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>

View File

@ -40,6 +40,7 @@
</configurationInformationAddress>
<subsystems>Subsystem.OPI_Интеграция</subsystems>
<commonTemplates>CommonTemplate.OPI_TCPClient</commonTemplates>
<commonTemplates>CommonTemplate.OPI_TCPServer</commonTemplates>
<commonModules>CommonModule.OPI_Инструменты</commonModules>
<commonModules>CommonModule.OPI_Криптография</commonModules>
<commonModules>CommonModule.OPI_ПреобразованиеТипов</commonModules>