forked from pavel-a/usb-relay-hid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_release_win.bat
56 lines (47 loc) · 1.54 KB
/
make_release_win.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
@echo off
: Make release, Windows binaries
: Run this after binaries are built
: Release tree:
: bin-Win32/
: bin-Win64/
: doc/
: Test/
: usb_relay_device_lib_devel/
: Win32, Win64 ...
: bin-Linux-x86/
: bin-Linux-x64/
: bin-OSX/
set REL=_rel
if not exist _rel mkdir _rel
if not exist %REL%\bin-Win32 mkdir %REL%\bin-Win32
if not exist %REL%\bin-Win64 mkdir %REL%\bin-Win64
@echo Copying x86 binaries...
copy Windows-VS\Release\USB_RELAY_DEVICE.dll %REL%\bin-Win32
: ... vp
copy Windows-VS\Release\hidusb-relay-cmd.exe %REL%\bin-Win32
: ... vp
copy Windows-VS\Release\GUIapp.exe %REL%\bin-Win32
: ... vp
if not exist Windows-VS\x64\Release\* goto L64_1
@echo Copying x64 binaries...
copy Windows-VS\x64\Release\USB_RELAY_DEVICE.dll %REL%\bin-Win64
: ... vp
copy Windows-VS\x64\Release\hidusb-relay-cmd.exe %REL%\bin-Win64
: ... vp
copy Windows-VS\x64\Release\GUIapp.exe %REL%\bin-Win64
: ... vp
:L64_1
@echo Copying docum ...
if not exist %REL%\doc mkdir %REL%\doc
copy doc\Readme_USB-Relay-DLL.md %REL%\doc
copy commandline\README-hidusb-relay-cmd.txt %REL%\doc
@echo Copying developer stuff ...
if not exist %REL%\usb_relay_device_lib_devel mkdir %REL%\usb_relay_device_lib_devel
mkdir %REL%\usb_relay_device_lib_devel\Win32
mkdir %REL%\usb_relay_device_lib_devel\Win64
copy lib\usb_relay_device.h %REL%\usb_relay_device_lib_devel
copy Windows-VS\Release\USB_RELAY_DEVICE.lib %REL%\usb_relay_device_lib_devel\Win32
copy Windows-VS\x64\Release\USB_RELAY_DEVICE.lib %REL%\usb_relay_device_lib_devel\Win64
: ?? Copy also PDBs? debug binaries?
: Test ...
@echo Done.