mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 17:40:47 +03:00
32 lines
1,008 B
Text
32 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 );
|
|
}
|
|
}
|