-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deploy: add install script to create shortcuts after installation
- Loading branch information
1 parent
e214ad8
commit 7b8ae80
Showing
4 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
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
31 changes: 31 additions & 0 deletions
31
windows/deploy/packages/com.pireal.installer/meta/installscript.qs
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,31 @@ | ||
function Component() | ||
{ | ||
// default constructor | ||
} | ||
|
||
Component.prototype.createOperations = function() | ||
{ | ||
// call default implementation to actually install README.txt! | ||
component.createOperations(); | ||
|
||
if (systemInfo.productType === "windows") { | ||
component.addOperation( | ||
"CreateShortcut", | ||
"@TargetDir@/win64/pireal.exe", | ||
"@DesktopDir@/Pireal.lnk", | ||
"workingDirectory=@TargetDir@", | ||
"iconPath=@TargetDir@/win64/icon.ico", | ||
"iconId=0", | ||
"description=Open Pireal" | ||
); | ||
component.addOperation( | ||
"CreateShortcut", | ||
"@TargetDir@/win64/pireal.exe", | ||
"@StartMenuDir@/Pireal.lnk", | ||
"workingDirectory=@TargetDir@", | ||
"iconPath=@TargetDir@/win64/icon.ico", | ||
"iconId=0", | ||
"description=Open README file" | ||
); | ||
} | ||
} |
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