mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 16:06:30 +00:00
add publish script, check its work
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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="Вхід"
|
||||
|
||||
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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%"
|
||||
|
||||
Reference in New Issue
Block a user