-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add explicit icon path during --createShortcut on install #10
Conversation
By the way looks like your CI is jammed up on rake call? Thanks for providing this lib! |
Ugh. Squirrel has line "if (zp.IconUrl != null && !File.Exists(targetIco))" in UpdateManager.InstallHelpers.cs, wherein it decides to bail entirely on the Uninstall entry having an icon if the icon already exists. https://github.com/Squirrel/Squirrel.Windows/blob/913b3e730070f2d0461902cd65a6f0cba1f2fcb5/src/Squirrel/UpdateManager.InstallHelpers.cs#L53 Would PR in to adjust that behavior, but that routine's dependency on a remote url for uninstall icon warrants more work than just this fix o.O (Flaky connection on install == no uninstall icon??) Anywho -- updated to use app's name as icon name (or _app if conflict) |
return output; | ||
}; | ||
|
||
var check = function(options) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding an options
object seems ok. Let's clearly document options
using JSDoc
@JBLatenight thanks for submitting this! I have seen those shortcut icons go bad and I had no idea why it was happening. Great catch. Breaking change is fine, not a concern. Please "npm i" and run "npm run check". I see a number of linter errors currently on this branch:
|
Update: please rebase on latest master, then "npm i" to get our latest & greatest linter rules.
|
@JBLatenight
Thanks for pointing this out! Travis setup sorted in #11 |
Hey @kangas sorry I've been off on other work. Just checked this out and it seems the project has conflicting lint rules; Each time I fix one-var I get a no-mixed-requires, and vice versa. Thoughts? |
Cleaning up old PR's. Please reopen if this should be reconsidered. |
As-is, this module creates shortcuts that point the the EXE in the version folder. This means that all shortcuts have invalid icons after each upgrade, and all shortcuts must be updated. Unfortunately, Windows' shell caches some of this information, does fancy stuff for shortcut-to-exe matching, etc. Further, the user may have copied a shortcut, in which case it will just go bad.
A better solution is to use Squirrel's --icon flag and copy an icon to a known place. Squirrel already uses app.ico in the Update.exe directory for uninstall icon, so seems like a good place. (Though-- that icon will fail to be placed if it doesn't download at time of install, oddly.)
NOTE: This is a breaking change so not really eligible for merge :( What do you recommend / Any review suggestions?
This change is