Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions platform.h → include/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
#include <cstdint>

#ifdef _WIN32
# define PACKCOM_WINDOWS
# ifndef PACKCOM_WINDOWS
# define PACKCOM_WINDOWS
# endif
# define NOMINMAX
# include <windows.h>
# include <conio.h>
#else
Expand Down Expand Up @@ -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;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions installer/PackCom.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@
<!-- Embed all files inside the MSI -->
<MediaTemplate EmbedCab="yes" />

<!-- ------------------------------------------------------------------ -->
<!-- ============================================================ -->
<!-- UI – WiX built-in WixUI_Minimal dialog set -->
<!-- ------------------------------------------------------------------ -->
<!-- ============================================================ -->
<ui:WixUI Id="WixUI_InstallDir" />
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />

<!-- Licence text shown in the UI -->
<WixVariable Id="WixUILicenseRtf" Value="..\LICENSE.rtf" />

<!-- ------------------------------------------------------------------ -->
<!-- ============================================================ -->
<!-- Directory structure -->
<!-- ------------------------------------------------------------------ -->
<!-- ============================================================ -->
<StandardDirectory Id="ProgramFiles64Folder">
<Directory Id="INSTALLFOLDER" Name="PackCom" />
</StandardDirectory>
Expand All @@ -48,9 +48,9 @@

<StandardDirectory Id="DesktopFolder" />

<!-- ------------------------------------------------------------------ -->
<!-- ============================================================ -->
<!-- Components -->
<!-- ------------------------------------------------------------------ -->
<!-- ============================================================ -->
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">

<!-- Main executable -->
Expand Down Expand Up @@ -108,9 +108,9 @@

</ComponentGroup>

<!-- ------------------------------------------------------------------ -->
<!-- ============================================================ -->
<!-- Feature tree -->
<!-- ------------------------------------------------------------------ -->
<!-- ============================================================ -->
<Feature Id="ProductFeature"
Title="PackCom"
Level="1"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading