diff --git a/DEVELOPER.md b/DEVELOPER.md index a5d4fa1..5025a74 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -24,6 +24,10 @@ There is no fully native tests. * All tests are automatically invoked by `mvn clean verify`. * Tests run from Maven, and the selected 32/64-bit mode depends on the Java version, which can be passed to maven using the `JAVA_HOME` environment variable. +* Generally you need to run `mvn clean verify` and `mvn clean verify -Dnative.configuration=Debug` on 3 configurations: + * 32-bit Windows, 32-bit Java + * 64-bit Windows, 64-bit Java + * 64-bit Windows, 32-bit Java (WoW64 mode) Note that WinP behavior may differ depending on the Windows version, permissions, run mode (desktop/service), etc. Ideally, tests should be executed on all target platforms. diff --git a/build.cmd b/build.cmd index 62e923e..d490cbb 100644 --- a/build.cmd +++ b/build.cmd @@ -72,6 +72,8 @@ if %errorlevel% neq 0 exit /b %errorlevel% COPY native\sendctrlc\Win32\%configuration%\sendctrlc.exe target\classes\ if %errorlevel% neq 0 exit /b %errorlevel% COPY native\sendctrlc\x64\%configuration%\sendctrlc.x64.exe target\classes\ +if %errorlevel% neq 0 exit /b %errorlevel% +goto :exit :exit endlocal diff --git a/install.sh b/install.sh deleted file mode 100755 index 62e5691..0000000 --- a/install.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -ex -cp native/Release/winp.dll src/main/resources/winp.dll -cp native/x64/Release/winp.dll src/main/resources/winp.x64.dll diff --git a/native/signing.txt b/native/signing.txt old mode 100755 new mode 100644 index 2bc4728..9abe1a1 --- a/native/signing.txt +++ b/native/signing.txt @@ -2,6 +2,6 @@ Reminder to myself. To digitally sign the DLLs, -signtool sign /f PATH-TO-PFX /p PASSWORD /t http://timestamp.comodoca.com/authenticode Release\winp.dll +signtool sign /f PATH-TO-PFX /p PASSWORD /t http://timestamp.comodoca.com/authenticode native\Win32\Release\winp.dll -and ditto for x64\Release\winp.dll \ No newline at end of file +and ditto for native\x64\Release\winp.x64.dll \ No newline at end of file