add publish script, check its work

This commit is contained in:
Alex Bezdieniezhnykh
2025-02-14 23:08:50 +02:00
parent 961d2499de
commit 0d6ea4264f
11 changed files with 97 additions and 43 deletions
+1 -1
View File
@@ -57,7 +57,7 @@
<MakeDir Directories="$(TargetDir)dummy" />
<Move SourceFiles="$(TargetDir)Azaion.Annotator.dll" DestinationFolder="$(TargetDir)dummy" />
<Move SourceFiles="$(TargetDir)Azaion.Dataset.dll" DestinationFolder="$(TargetDir)dummy" />
<Exec Command="upload.cmd $(ConfigurationName)" />
<Exec Command="upload.cmd $(ConfigurationName) stage" />
</Target>
</Project>
+1 -3
View File
@@ -74,7 +74,6 @@
BorderBrush="DimGray"
BorderThickness="0,0,0,1"
HorizontalAlignment="Left"
Text="admin@azaion.com"
/>
<TextBlock Text="Пароль"
Grid.Row="2"
@@ -88,8 +87,7 @@
Padding="0,5"
Width="300"
BorderThickness="0,0,0,1"
HorizontalAlignment="Left"
Password="Az@1on1000Odm$n"/>
HorizontalAlignment="Left"/>
</Grid>
<Button x:Name="LoginBtn"
Content="Вхід"
+3 -4
View File
@@ -1,7 +1,6 @@
{
{
"ApiConfig": {
"TimeoutSeconds": 20.0,
"ResourcesFolder": "stage"
"TimeoutSeconds": 20.0
},
"DirectoriesConfig": {
"VideosDirectory": "E:\\Azaion6",
@@ -42,4 +41,4 @@
"TrackingIntersectionThreshold": 0.8
},
"ThumbnailConfig": { "Size": "240,135", "Border": 10 }
}
}
+6 -4
View File
@@ -3,7 +3,7 @@ set CONFIG=%1
@echo off
set API_URL=https://api.azaion.com
set RESOURCES_FOLDER=stage
set RESOURCES_FOLDER=%2
set EMAIL=uploader@azaion.com
set PASSWORD=Az@1on_10Upl0@der
@@ -28,14 +28,16 @@ for /f "tokens=2 delims=:" %%a in ('echo %RESPONSE% ^| findstr /i "token"') do (
:: Step 2: Upload the DLL file
echo Uploading files to resources...
set UPLOAD_URL=%API_URL%/resources/%RESOURCES_FOLDER%
curl --location %API_URL%/resources/%RESOURCES_FOLDER% ^
echo Uploading file %FILE1_TO_UPLOAD% to %UPLOAD_URL%...
curl --location %UPLOAD_URL% ^
-H "Authorization: Bearer %TOKEN%" ^
-H "Content-Type: multipart/form-data" ^
--form "data=@%FILE1_TO_UPLOAD%"
curl --location %API_URL%/resources/%RESOURCES_FOLDER% ^
echo Uploading file %FILE2_TO_UPLOAD% to %UPLOAD_URL%...
curl --location %UPLOAD_URL% ^
-H "Authorization: Bearer %TOKEN%" ^
-H "Content-Type: multipart/form-data" ^
--form "data=@%FILE2_TO_UPLOAD%"