-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Change to 7-zip self extracting archive #103
Conversation
7-zip version can be done automatically by setting this line to I've uploaded a version of the 7z build for you to checkout on my server https://bd.zerebos.com/BetterDiscord-Windows.exe |
I forced pushed this before I saw your comment, just updating the readme a bit better. Its unfortunate that this version would trigger antivirus more frequently apparently. The one you provided still uses the NSIS install framework, which is what I suspect was causing the issues. My version uses only 7-zip and no NSIS script or anything like that. |
The main reason I use 7-zip is to get a self extracting portable archive that runs a file from inside it easily, because some users have issues with the NSIS based self extracting archive. I didn't choose 7-zip because of better compression or anything like that. I'm not sure how to fix the antivirus issue, but if the EXE changes anyway between installer releases, I feel like the antivirus problem would be the same for both NSIS and 7-Zip. |
Well I'd want more than a suspicion before I consider a change like this 😓 |
It is also of general note that this change would also seem to introduce:
|
Well, if it helps, providing people who cannot open the installer my version of the .exe seems to fix their issues. I'm not exactly sure what happens with the current installer to prevent it from working correctly, but I strongly suspect its to do with self extraction, as my version (which works for them) is basically identical except for the self-extraction process. I think a much easier and less intrusive change to consider would be upgrading electron-builder. Its several versions out of date, and the updates change the NSIS version. I will test if this solves the extraction issue for users. |
It seems that upgrading electron-builder does not fix the issue for those affected. If you'd like, I can try adding some commands that will prevent the installer from seeking administrator, or we can just continue with my somewhat fixed version being in support channel pins for people who the released version doesn't work for+close this pull request. |
Instead of complicating the build process by running a batch file which relies on user-installed files that may not even be in the locations it expects, you could use |
These are very useful, but I don't think we are moving forward with switching to another packaging method anyway. Additionally, I would still need the LZMA SDK in the correct location for it to work with those. |
This pull request changes the windows self extraction method from NSIS to 7-zip self extracting archive.
It adds some additional external dependencies to the build process, but they are very lightweight.
I also updated dependencies to the latest security patch version.