From c00666be736524938720645aca944a7396e161cc Mon Sep 17 00:00:00 2001 From: GuardianN06 <104389989+GuardianN06@users.noreply.github.com> Date: Sun, 17 Mar 2024 13:30:41 +0100 Subject: [PATCH 1/4] Fix Polyhook2 dependency build error --- vcpkg.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vcpkg.json b/vcpkg.json index cd6742e..f54b713 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -12,7 +12,11 @@ "name": "curl", "features": ["openssl"] }, - "polyhook2", + { + "name": "polyhook2", + "version>=": "2022-03-01" + }, "gl3w" - ] + ], + "builtin-baseline": "f9f18a0d0325be221ce6f2462593acb20574e758" } From 3f1a2075e390c57bac7d8af3ed241db6093bb421 Mon Sep 17 00:00:00 2001 From: GuardianN06 <104389989+GuardianN06@users.noreply.github.com> Date: Sun, 17 Mar 2024 13:35:04 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1aa88a5..d682ede 100644 --- a/README.md +++ b/README.md @@ -97,21 +97,26 @@ Start a new cmd as admin in the `vcpkg` folder and type: vcpkg integrate install ``` -### Step 2: Installing the libraries +### Step 2: Cloning DiscordTokenProtector Copy and paste this (in the vcpkg directory if you don't have it in the PATH) ``` -vcpkg install imgui:x86-windows-static imgui[glfw-binding]:x86-windows-static imgui[opengl3-binding]:x86-windows-static imgui[glfw-binding]:x86-windows-static imgui[win32-binding]:x86-windows-static nlohmann-json:x86-windows-static cryptopp:x86-windows-static curl[openssl]:x86-windows-static polyhook2:x86-windows-static gl3w:x86-windows-static +git clone https://github.com/andro2157/DiscordTokenProtector ``` -*This process might take some time as it's building these libraries (for the static link)* -### Step 3: Cloning DiscordTokenProtector + +### Step 3: Installing the libraries using manifest mode ``` -git clone https://github.com/andro2157/DiscordTokenProtector +cd DiscordTokenProtector +vcpkg install --triplet x86-windows-static ``` +*This process might take some time as it's building these libraries (for the static link)* ### Step 4: Open the project in VS Open `DiscordTokenProtector.sln` +### Step 5: Open the project settings +Set "Use Vcpkg Manifest" to Yes + Everything should be setup, you just need to compile it with the `PROD` or `PROD-NOSTARTUP` config in **x86**. ### (Optional) Step 5: Compile with YubiKey support From 259881758fba1bc52c487ec87315e80da172bf65 Mon Sep 17 00:00:00 2001 From: GuardianN06 <104389989+GuardianN06@users.noreply.github.com> Date: Sun, 17 Mar 2024 13:35:33 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d682ede..424e334 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ Set "Use Vcpkg Manifest" to Yes Everything should be setup, you just need to compile it with the `PROD` or `PROD-NOSTARTUP` config in **x86**. -### (Optional) Step 5: Compile with YubiKey support +### (Optional) Step 6: Compile with YubiKey support * Download the latest yubico-piv-tool source code here: https://developers.yubico.com/yubico-piv-tool/Releases/ \ **Don't clone from the repo, it won't compile on Windows!** * Follow the instructions [here](https://github.com/Yubico/yubico-piv-tool#building-on-windows) to create the project. From af16786c4232d66078e3001ef74aaba338dacbaa Mon Sep 17 00:00:00 2001 From: GuardianN06 <104389989+GuardianN06@users.noreply.github.com> Date: Sun, 17 Mar 2024 13:36:08 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 424e334..6f98b95 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,6 @@ vcpkg integrate install ``` ### Step 2: Cloning DiscordTokenProtector -Copy and paste this (in the vcpkg directory if you don't have it in the PATH) ``` git clone https://github.com/andro2157/DiscordTokenProtector ```