diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d105d1a..919c77c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,10 +29,11 @@ jobs: # ----- Install WiX v4 ----------------------------------------------- - name: Install WiX Toolset v4 - run: dotnet tool install --global wix + run: dotnet tool install --global wix --version 4.0.5 - name: Add WiX UI extension - run: wix extension add WixToolset.UI.wixext + working-directory: installer + run: wix extension add WixToolset.UI.wixext/4.0.5 # ----- Determine version from git tag -------------------------------- # Tag v0.75 becomes MSI version 0.75.0.0 (4-part dotted form required) diff --git a/app.h b/include/app.h similarity index 100% rename from app.h rename to include/app.h diff --git a/config.h b/include/config.h similarity index 100% rename from config.h rename to include/config.h diff --git a/fileops.h b/include/fileops.h similarity index 100% rename from fileops.h rename to include/fileops.h diff --git a/input.h b/include/input.h similarity index 100% rename from input.h rename to include/input.h diff --git a/keys.h b/include/keys.h similarity index 100% rename from keys.h rename to include/keys.h diff --git a/packcom.h b/include/packcom.h similarity index 100% rename from packcom.h rename to include/packcom.h diff --git a/platform.h b/include/platform.h similarity index 96% rename from platform.h rename to include/platform.h index 634af04..946910a 100644 --- a/platform.h +++ b/include/platform.h @@ -11,7 +11,10 @@ #include #ifdef _WIN32 -# define PACKCOM_WINDOWS +# ifndef PACKCOM_WINDOWS +# define PACKCOM_WINDOWS +# endif +# define NOMINMAX # include # include #else @@ -75,7 +78,7 @@ void beep(); #ifdef PACKCOM_WINDOWS using SerialHandle = HANDLE; -constexpr SerialHandle INVALID_SERIAL = INVALID_HANDLE_VALUE; +static const SerialHandle INVALID_SERIAL = INVALID_HANDLE_VALUE; #else using SerialHandle = int; constexpr SerialHandle INVALID_SERIAL = -1; diff --git a/serial.h b/include/serial.h similarity index 100% rename from serial.h rename to include/serial.h diff --git a/terminal.h b/include/terminal.h similarity index 100% rename from terminal.h rename to include/terminal.h diff --git a/yapp.h b/include/yapp.h similarity index 100% rename from yapp.h rename to include/yapp.h diff --git a/installer/PackCom.wxs b/installer/PackCom.wxs index 44fb2b9..ac03c78 100644 --- a/installer/PackCom.wxs +++ b/installer/PackCom.wxs @@ -26,18 +26,18 @@ - + - + - + - + @@ -48,9 +48,9 @@ - + - + @@ -108,9 +108,9 @@ - + - +