[chore] 1st release

This commit is contained in:
Peter Sykora 2018-05-25 01:07:48 +02:00
parent dd366eaf5b
commit a143b03e7c
7 changed files with 12 additions and 7 deletions

View File

@ -1,5 +1,6 @@
#include "OSUtils.h"
struct IUnknown; // Workaround for "combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here" when using /permissive-
#include <ShlObj.h>
#include <boost/filesystem.hpp>

View File

@ -15,7 +15,7 @@
<ProjectGuid>{51345E59-83E5-4389-93A9-0131B40522B7}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>libLicenseClient</RootNamespace>
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
@ -60,6 +60,7 @@
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpplatest</LanguageStandard>
<AdditionalOptions>/Zc:strictStrings- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@ -79,6 +80,7 @@
<LanguageStandard>stdcpplatest</LanguageStandard>
<CreateHotpatchableImage>false</CreateHotpatchableImage>
<DebugInformationFormat>None</DebugInformationFormat>
<AdditionalOptions>/Zc:strictStrings- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="..\thirdparty\boost-1.66.0\boost.props" />
<Import Project="..\thirdparty\boost-1.67.0\boost.props" />
<Import Project="..\thirdparty\curl-7.58.0\curl-static.props" />
<Import Project="..\thirdparty\zlib-1.2.11\zlib-static.props" />
<Import Project="..\thirdparty\libzip-1.4.0\libzip-static.props" />

View File

@ -1,5 +1,6 @@
#include "HTTPClient.h"
struct IUnknown; // Workaround for "combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here" when using /permissive-
#include <curl/curl.h>
#include <memory>

View File

@ -52,7 +52,7 @@ namespace
{
static const std::string productId = "coc";
static const std::string serverPath = "http://localhost:3000/api/v1";
static const std::string serverPath = "https://license.apis.sk/api/v1";
static const uint32_t initializationVectorSize = AES::BLOCKSIZE;
static const uint32_t macTagSize = 16;
@ -386,7 +386,7 @@ std::vector<ModuleUpdate> LicenseClient::checkForUpdates(HTTPClient & httpClient
// Something changes - Server sent us updated licenseFile
{
const auto& licenseData = checkUpdatesResponse.licenseFile.value();
std::ofstream os(m_licenseFile);
std::ofstream os(m_licenseFile, std::ofstream::binary);
os.write(licenseData.data(), licenseData.size());
}
loadActivationData();

View File

@ -1,5 +1,6 @@
#include "SystemParamsProvider_win.h"
struct IUnknown; // Workaround for "combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here" when using /permissive-
#define _WIN32_DCOM
#include <comdef.h>
#include <Wbemidl.h>

View File

@ -23,7 +23,7 @@
<ProjectGuid>{E781AE2E-4A02-4D63-9CAC-1AEBACD9CD73}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>libLicenseClientTest</RootNamespace>
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
@ -61,13 +61,13 @@
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="..\..\thirdparty\gtest-20180224\gtest-static.props" />
<Import Project="..\..\thirdparty\gtest-20180224\gmock-static.props" />
<Import Project="..\..\thirdparty\boost-1.66.0\boost.props" />
<Import Project="..\..\thirdparty\boost-1.67.0\boost.props" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="..\..\thirdparty\gtest-20180224\gtest-static.props" />
<Import Project="..\..\thirdparty\gtest-20180224\gmock-static.props" />
<Import Project="..\..\thirdparty\boost-1.66.0\boost.props" />
<Import Project="..\..\thirdparty\boost-1.67.0\boost.props" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />