forked from electron-userland/electron-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: NSIS target (electron-userland#495)
- Loading branch information
Showing
29 changed files
with
1,256 additions
and
68 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
rm -rf Docs | ||
rm -rf NSIS.chm | ||
rm -rf Examples | ||
rm -rf Plugins/x86-ansi | ||
|
||
# nsProcess plugin | ||
curl -L http://nsis.sourceforge.net/mediawiki/images/1/18/NsProcess.zip > a.zip | ||
7za x a.zip -oa | ||
mv a/Plugin/nsProcessW.dll Plugins/x86-unicode/nsProcess.dll | ||
mv a/Include/nsProcess.nsh Include/nsProcess.nsh | ||
unlink a.zip | ||
rm -rf a | ||
|
||
# UAC plugin | ||
curl -L http://nsis.sourceforge.net/mediawiki/images/8/8f/UAC.zip > a.zip | ||
7za x a.zip -oa | ||
mv a/Plugins/x86-unicode/UAC.dll Plugins/x86-unicode/UAC.dll | ||
mv a/UAC.nsh Include/UAC.nsh | ||
unlink a.zip | ||
rm -rf a | ||
|
||
# WinShell | ||
curl -L http://nsis.sourceforge.net/mediawiki/images/5/54/WinShell.zip > a.zip | ||
7za x a.zip -oa | ||
mv a/Plugins/x86-unicode/WinShell.dll Plugins/x86-unicode/WinShell.dll | ||
unlink a.zip | ||
rm -rf a | ||
|
||
dir=${PWD##*/} | ||
cd .. | ||
rm -rf ${dir}.7z | ||
7za a -m0=lzma2 -mx=9 -mfb=64 -md=64m -ms=on ${dir}.7z ${dir} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# GUID vs Application Name | ||
|
||
Windows requires to use registry keys (e.g. INSTALL/UNINSTALL info). Squirrel.Windows simply uses application name as key. | ||
But it is not robust — Google can use key Google Chrome SxS, because it is a Google. | ||
|
||
So, it is better to use [GUID](http://stackoverflow.com/a/246935/1910191). | ||
You are not forced to explicitly specify it — name-based [UUID v5](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_5_.28SHA-1_hash_.26_namespace.29) will be generated from your [appId](https://github.com/electron-userland/electron-builder/wiki/Options#BuildMetadata-appId) or [name](https://github.com/electron-userland/electron-builder/wiki/Options#AppMetadata-name). | ||
It means that you **should not change appId** once your application in use (or name if `appId` was not set). Application product name (title) or description can be safely changed. | ||
|
||
You can explicitly set guid using option [nsis.guid](https://github.com/electron-userland/electron-builder/wiki/Options#NsisOptions-guid), but it is not recommended — consider using [appId](https://github.com/electron-userland/electron-builder/wiki/Options#BuildMetadata-appId). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.