-
Notifications
You must be signed in to change notification settings - Fork 28
/
build-vsix.cmd
103 lines (89 loc) · 3.21 KB
/
build-vsix.cmd
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
set PATH=%PATH%;%~dp0scripts;%WIX%bin
call make-version.cmd VERSION version.h
mkdir "%~dp0_setup/"
set OUTPUT="%~dp0_setup\micro-profiler_x86.v%VERSION%.vsix"
set VSIXID=A42F6081-855F-41CB-8C89-9488AA847290
pushd "%~dp0content"
call sha256 hashpreview micro-profiler_preview.png
popd
pushd "%~dp0deployment\wix"
call sha256 hashlicense license.rtf
popd
pushd "%~dp0legacy"
call sha256 hashinit micro-profiler.initializer.cpp
popd
pushd "%~dp0_build.windows.x86\_bin"
call sha256 hashmpfrontend micro-profiler_frontend.dll
call sha256 hashmpui 1033\micro-profiler.ui.dll
call sha256 hashpkgdef micro-profiler.pkgdef
call sha256 hashmanifest extension.vsixmanifest
call sha256 hashappicon logo.ico
call sha256 hashmpx86 micro-profiler_Win32.dll
call sha256 hashmpx86lib micro-profiler_Win32.lib
call sha256 hashsbxx86 micro-profiler_sandbox_Win32.exe
popd
pushd "%~dp0_build.windows.x64\_bin"
call sha256 hashmpx64 micro-profiler_x64.dll
call sha256 hashmpx64lib micro-profiler_x64.lib
call sha256 hashsbxx64 micro-profiler_sandbox_x64.exe
popd
pushd "%~dp0_build.linux.x86\_bin"
call sha256 hashlinuxmpx86 libmicro-profiler_x86.so
popd
pushd "%~dp0_build.linux.x64\_bin"
call sha256 hashlinuxmpx64 libmicro-profiler_x64.so
popd
rem pushd "%~dp0_build.android.arm\_bin"
rem call sha256 hashandroidarm libmicro-profiler_arm.so
rem popd
pushd "%~dp0redist\dbghelp"
call sha256 hashkernel32downlevelapix64 windows7+\x64\api-ms-win-downlevel-kernel32-l2-1-0.dll
call sha256 hashdbghelpx64 windows7+\x64\dbghelp.dll
call sha256 hashkernel32downlevelapix86 windows7+\x86\api-ms-win-downlevel-kernel32-l2-1-0.dll
call sha256 hashdbghelpx86 windows7+\x86\dbghelp.dll
call sha256 hashdbghelpxpx64 windowsxp+\x64\dbghelp.dll
call sha256 hashdbghelpxpx86 windowsxp+\x86\dbghelp.dll
popd
pushd "%~dp0legacy"
call mkzip micro-profiler.initializer.cpp "%OUTPUT%"
popd
pushd "%~dp0content"
call mkzip micro-profiler_preview.png "%OUTPUT%"
popd
pushd "%~dp0deployment\wix"
call mkzip license.rtf "%OUTPUT%"
popd
pushd "%~dp0_build.windows.x86\_bin"
call mkzip micro-profiler_frontend.dll "%OUTPUT%"
call mkzip 1033\micro-profiler.ui.dll "%OUTPUT%"
call mkzip micro-profiler.pkgdef "%OUTPUT%"
call mkzip extension.vsixmanifest "%OUTPUT%"
call mkzip logo.ico "%OUTPUT%"
call mkzip micro-profiler_Win32.dll "%OUTPUT%"
call mkzip micro-profiler_Win32.lib "%OUTPUT%"
call mkzip micro-profiler_sandbox_Win32.exe "%OUTPUT%"
popd
pushd "%~dp0_build.windows.x64\_bin"
call mkzip micro-profiler_x64.dll "%OUTPUT%"
call mkzip micro-profiler_x64.lib "%OUTPUT%"
call mkzip micro-profiler_sandbox_x64.exe "%OUTPUT%"
popd
pushd "%~dp0_build.linux.x86\_bin"
call mkzip libmicro-profiler_x86.so "%OUTPUT%"
popd
pushd "%~dp0_build.linux.x64\_bin"
call mkzip libmicro-profiler_x64.so "%OUTPUT%"
popd
rem pushd "%~dp0_build.android.arm\_bin"
rem call mkzip libmicro-profiler_arm.so "%OUTPUT%"
rem popd
pushd "%~dp0redist\dbghelp"
call mkzip * "%OUTPUT%"
popd
pushd "%~dp0_setup"
call replace.cmd "%~dp0deployment\vsix\catalog.json" > catalog.json
call mkzip catalog.json "%OUTPUT%"
call replace.cmd "%~dp0deployment\vsix\manifest.json" > manifest.json
call mkzip manifest.json "%OUTPUT%"
call mkzip "%~dp0deployment\vsix\[Content_Types].xml" "%OUTPUT%"
popd