mirror of https://github.com/Nheko-Reborn/nheko
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1008 B
33 lines
1008 B
7 years ago
|
function Component()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
Component.prototype.createOperations = function()
|
||
|
{
|
||
|
component.createOperations();
|
||
|
|
||
|
try
|
||
|
{
|
||
|
if( installer.value("os") === "win" )
|
||
|
{
|
||
|
/**
|
||
|
* Start Menu Shortcut
|
||
|
*/
|
||
|
component.addOperation( "CreateShortcut", "@TargetDir@\\nheko.exe", "@StartMenuDir@\\nheko.lnk",
|
||
|
"workingDirectory=@TargetDir@", "iconPath=@TargetDir@\\nheko.exe",
|
||
|
"iconId=0", "description=Desktop client for the Matrix protocol");
|
||
|
|
||
|
/**
|
||
|
* Desktop Shortcut
|
||
|
*/
|
||
|
component.addOperation( "CreateShortcut", "@TargetDir@\\nheko.exe", "@DesktopDir@\\nheko.lnk",
|
||
|
"workingDirectory=@TargetDir@", "iconPath=@TargetDir@\\nheko.exe",
|
||
|
"iconId=0", "description=Desktop client for the Matrix protocol");
|
||
|
}
|
||
|
}
|
||
|
catch( e )
|
||
|
{
|
||
|
print( e );
|
||
|
}
|
||
|
}
|