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(deps): statically link vcruntime140.dll into smartdnsblock.exe #1165

Merged
merged 6 commits into from
Feb 4, 2022

Conversation

jyyi1
Copy link
Contributor

@jyyi1 jyyi1 commented Jan 27, 2022

Previously smartdnsblock.exe depends on VCRUNTIME140.dll which was not included in the electron installer, therefore some users might not be able to connect to a VPN server if they did not install any VC runtimes before. (following is the binary dump for the previous smartdnsblock.exe)

image

In this PR, I statically linked the VC runtime library into the smartdnsblock.exe itself. So the binary size increases a lot, but now the dependencies are much simpler:

image

Note the smartdnsblock.exe is currently a released version in x86 instead of a x64.

Fixes #1130

@jyyi1 jyyi1 temporarily deployed to Test January 27, 2022 20:56 Inactive
@jyyi1 jyyi1 changed the title fix(deps): statically link vcruntime140.dll into smartdnsblock.exe ➖ fix(deps): statically link vcruntime140.dll into smartdnsblock.exe Jan 27, 2022
Copy link
Collaborator

@fortuna fortuna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did you build it? Maybe we need instructions somewhere.

@jyyi1 jyyi1 temporarily deployed to Test January 28, 2022 17:45 Inactive
@jyyi1
Copy link
Contributor Author

jyyi1 commented Jan 28, 2022

How did you build it? Maybe we need instructions somewhere.

Good suggestion, I added devdoc.md in smartdnsblock folder.

@jyyi1 jyyi1 force-pushed the junyi/use-static-vcruntime branch from 170a6ce to 9aa5e6d Compare January 28, 2022 17:47
@jyyi1 jyyi1 temporarily deployed to Test January 28, 2022 17:47 Inactive
Copy link
Collaborator

@fortuna fortuna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor change

@@ -0,0 +1,22 @@
# `smartdnsblock`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's rename it to README.md so it shows up on the Github UI.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did that for you :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄 I did that as well but forgot to push.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to merge :-)

@fortuna fortuna marked this pull request as ready for review January 28, 2022 22:52
@jyyi1 jyyi1 temporarily deployed to Test January 28, 2022 22:53 Inactive
@@ -0,0 +1,22 @@
# `smartdnsblock`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did that for you :-)

@fortuna fortuna temporarily deployed to Test January 29, 2022 00:53 Inactive
@jyyi1 jyyi1 temporarily deployed to Test January 29, 2022 01:01 Inactive
@jyyi1 jyyi1 merged commit b115c14 into master Feb 4, 2022
@jyyi1 jyyi1 deleted the junyi/use-static-vcruntime branch February 15, 2022 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Outline cannot run on a clean Windows machine
2 participants