387ab6ce31955ee5e119bf167ce9a9608c5df888
[usb-relay-hid.git] / make_release_win.bat
1 @echo off
2 : Make release, Windows binaries
3 : Run this after binaries are built
4
5 : Release tree:
6 : bin-Win32/
7 : bin-Win64/
8 : doc/
9 : Test/
10 : usb_relay_device_lib_devel/
11 : Win32, Win64 ...
12 : bin-Linux-x86/
13 : bin-Linux-x64/
14 : bin-OSX/
15
16 set REL=_rel
17 if not exist _rel mkdir _rel
18 if not exist %REL%\bin-Win32 mkdir %REL%\bin-Win32
19 if not exist %REL%\bin-Win64 mkdir %REL%\bin-Win64
20
21 @echo Copying x86 binaries...
22 copy Windows-VS\Release\USB_RELAY_DEVICE.dll %REL%\bin-Win32
23 : ... vp
24 copy Windows-VS\Release\hidusb-relay-cmd.exe %REL%\bin-Win32
25 : ... vp
26 copy Windows-VS\Release\GUIapp.exe %REL%\bin-Win32
27 : ... vp
28
29 if not exist Windows-VS\x64\Release\* goto L64_1
30 @echo Copying x64 binaries...
31 copy Windows-VS\x64\Release\USB_RELAY_DEVICE.dll %REL%\bin-Win64
32 : ... vp
33 copy Windows-VS\x64\Release\hidusb-relay-cmd.exe %REL%\bin-Win64
34 : ... vp
35 copy Windows-VS\x64\Release\GUIapp.exe %REL%\bin-Win64
36 : ... vp
37 :L64_1
38
39 @echo Copying docum ...
40 if not exist %REL%\doc mkdir %REL%\doc
41 copy doc\Readme_USB-Relay-DLL.md %REL%\doc
42 copy commandline\README-hidusb-relay-cmd.txt %REL%\doc
43
44 @echo Copying developer stuff ...
45 if not exist %REL%\usb_relay_device_lib_devel mkdir %REL%\usb_relay_device_lib_devel
46 mkdir %REL%\usb_relay_device_lib_devel\Win32
47 mkdir %REL%\usb_relay_device_lib_devel\Win64
48 copy lib\usb_relay_device.h %REL%\usb_relay_device_lib_devel
49 copy Windows-VS\Release\USB_RELAY_DEVICE.lib %REL%\usb_relay_device_lib_devel\Win32
50 copy Windows-VS\x64\Release\USB_RELAY_DEVICE.lib %REL%\usb_relay_device_lib_devel\Win64
51
52 : ?? Copy also PDBs? debug binaries?
53
54 : Test ...
55
56 @echo Done.