forked from aleksandrm8/ONVIF-Device-Manager
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpackage.bat
More file actions
47 lines (37 loc) · 1.9 KB
/
package.bat
File metadata and controls
47 lines (37 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
rem Collect release artifacts after building odm.sln (Release|x64).
rem
rem Prerequisite: odm.sln must be built (Release|x64) — see .github/workflows/odm.yml.
rem The full solution build compiles the native C++/CLI player projects
rem (live555, odm.player.lib, odm.player.net) and copies all project references
rem into the odm.ui.app output directory via CopyToOutputDirectory.
rem
rem The build\ folder produced here is consumed by BOTH:
rem - the odm-build-zip CI artifact (portable run-from-folder)
rem - the installer (odm.setup.vdproj references all DLLs from build\)
if not exist build mkdir build
rem --- managed app + all copied project references (incl. odm.player.net.dll) ---
copy /Y .\odm\odm.ui.app\bin\Release\x64\*.* build\
rem --- native player DLL: copy from its own output as an explicit fallback in
rem case the project-reference copy was skipped (e.g. incremental build) ---
if exist .\odm\odm.player\odm.player.net\bin\x64\Release\odm.player.net.dll (
copy /Y .\odm\odm.player\odm.player.net\bin\x64\Release\odm.player.net.dll build\
)
rem --- FFmpeg shared DLLs (LGPL build, x64) ---
copy /Y libs\ffmpeg-n7.1-lgpl-shared\x64\bin\*.dll build\
if not exist build\images mkdir build\images
copy /Y .\odm\odm.ui.views\images\wheel_zoom.cur build\images
if not exist build\locales mkdir build\locales
copy /Y .\odm\odm.localization\locales\*.* build\locales
if not exist build\meta mkdir build\meta
copy /Y .\odm\odm.ui.app\meta\*.* build\meta
if not exist build\logs mkdir build\logs
copy /Y .\odm\odm.ui.app\logs\*.* build\logs
rem --- Verify that the critical native DLL made it into build\ ---
if not exist build\odm.player.net.dll (
echo ERROR: build\odm.player.net.dll is missing.
echo Build the native player solution first:
echo msbuild odm\odm.player\odm.player.sln /p:Configuration=Release /p:Platform=x64 /p:SolutionDir=%%CD%%\
exit /b 1
)
echo Package complete.