mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-27 05:28:48 +03:00
33 lines
1,008 B
Text
33 lines
1,008 B
Text
|
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 );
|
||
|
}
|
||
|
}
|