-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathpackage.bat
72 lines (54 loc) · 1.7 KB
/
package.bat
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
@echo off
setlocal
IF NOT EXIST env.bat (
echo env.bat is not set. Exiting.
exit /b 1
)
call env.bat
IF "%BUILD_FOLDER%"=="" (
echo BUILD_FOLDER is not set. Exiting.
exit /b
)
IF "%OPENVINO_DIR%"=="" (
echo OPENVINO_DIR is not set. Exiting.
exit /b
)
IF "%LIBTORCH_DIR%"=="" (
echo LIBTORCH_DIR is not set. Exiting.
exit /b
)
IF "%AUDACITY_BUILD_CONFIG%"=="" (
echo AUDACITY_BUILD_CONFIG is not set. Exiting.
exit /b
)
IF "%AI_PLUGIN_VERSION%"=="" (
echo AI_PLUGIN_VERSION is not set. Exiting.
exit /b
)
IF "%AI_PLUGIN_REPO_SOURCE_FOLDER%"=="" (
echo AI_PLUGIN_REPO_SOURCE_FOLDER is not set. Exiting.
exit /b
)
IF "%OPENCL_SDK_DIR%"=="" (
echo OPENCL_SDK_DIR is not set. Exiting.
exit /b
)
set "bat_path=%~dp0"
set "audacity_ai_plugins_iss_path=%bat_path%audacity_ai_plugins.iss
iscc /O+ %audacity_ai_plugins_iss_path% ^
/DBUILD_FOLDER=%BUILD_FOLDER% ^
/DOPENVINO_DIR=%OPENVINO_DIR% ^
/DLIBTORCH_DIR=%LIBTORCH_DIR% ^
/DAUDACITY_BUILD_CONFIG=%AUDACITY_BUILD_CONFIG% ^
/DAI_PLUGIN_VERSION=%AI_PLUGIN_VERSION% ^
/DAI_PLUGIN_REPO_SOURCE_FOLDER=%AI_PLUGIN_REPO_SOURCE_FOLDER% ^
/DOPENCL_SDK_DIR=%OPENCL_SDK_DIR% ^
/O%BUILD_FOLDER% ^
/Faudacity-win-%AI_PLUGIN_VERSION%-64bit-OpenVINO-AI-Plugins
:: Get date and time in YYYYMMDD_HHMMSS format
set "datestamp=%DATE:~-4%%DATE:~4,2%%DATE:~7,2%"
set "timestamp=%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%"
set "timestamp=%timestamp: =0%"
rename audacity-win-%AI_PLUGIN_VERSION%-64bit-OpenVINO-AI-Plugins.exe audacity-win-%AI_PLUGIN_VERSION%-64bit-OpenVINO-AI-Plugins-%datestamp%_%timestamp%.exe
echo Done! Generated %cd%\audacity-win-%AI_PLUGIN_VERSION%-64bit-OpenVINO-AI-Plugins-%datestamp%_%timestamp%.exe
endlocal