File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ @ echo off
2
+
3
+ SET DIR = %~dp0
4
+ cd %DIR\..
5
+ SET PROJECT_ROOT = %cd%
6
+ SET PORTABLE_DIR_REL_PATH = " build\portable"
7
+ SET PORTABLE_ARCHIVE_NAME = " usbrelaymodule-portable"
8
+
9
+ rd /s /q build\ 2 > nul
10
+ mkdir build && cd build
11
+
12
+ cmake -G " Visual Studio 17 2022" -A Win32 ..
13
+ cmake --build . --config Release
14
+
15
+ cd %PROJECT_ROOT%
16
+
17
+ mkdir %PORTABLE_DIR_REL_PATH%
18
+
19
+ copy build\app-cli\Release\getrelay.exe %PORTABLE_DIR_REL_PATH%
20
+ copy build\app-cli\Release\setrelay.exe %PORTABLE_DIR_REL_PATH%
21
+ copy build\libusbrelaymodule\Release\usbrelaymodule.dll %PORTABLE_DIR_REL_PATH%
22
+ copy external\hidapi\windows\Release\hidapi.dll %PORTABLE_DIR_REL_PATH%
23
+
24
+ cd %PORTABLE_DIR_REL_PATH%
25
+
26
+ tar -czf ../%PORTABLE_ARCHIVE_NAME% .tar.gz *
You can’t perform that action at this time.
0 commit comments