Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build error with polyhook2 #85

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,24 +97,28 @@ Start a new cmd as admin in the `vcpkg` folder and type:
vcpkg integrate install
```

### Step 2: Installing the libraries
Copy and paste this (in the vcpkg directory if you don't have it in the PATH)
### Step 2: Cloning DiscordTokenProtector
```
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
### (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.
Expand Down
8 changes: 6 additions & 2 deletions vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
"name": "curl",
"features": ["openssl"]
},
"polyhook2",
{
"name": "polyhook2",
"version>=": "2022-03-01"
},
"gl3w"
]
],
"builtin-baseline": "f9f18a0d0325be221ce6f2462593acb20574e758"
}