6
Component.prototype.createOperations = function()
8
component.createOperations();
10
if (installer.value("os") == "win")
12
var editPath = "@TargetDir@/bin/simodo-shell.exe";
13
var iconName = "simodo-loom.ico";
15
component.addOperation( "CreateShortcut"
16
, "@TargetDir@/bin/simodo-shell.exe"
17
, "@StartMenuDir@/SimodoEdit.lnk",
20
component.addOperation( "CreateShortcut"
21
, "@TargetDir@/maintenancetool.exe"
22
, "@StartMenuDir@/UninstallSimodoEdit.lnk"
25
var sc0FileType = "sc0";
27
//component.addOperation("RegisterFileType",
29
// editPath + " '%1'",
30
// "ScriptC stage 0 file type",
32
// "@TargetDir@/icons/" + iconName,
33
// "ProgId=BMSTU.SIMODOedit." + sc0FileType);
36
if (installer.value("os") == "x11")
38
//component.addOperation( "Mkdir", "@HomeDir@/lib" );
39
//component.addOperation( "CopyDirectory", "@TargetDir@/lib", "@HomeDir@/lib" );
40
component.addOperation( "InstallIcons", "@TargetDir@/icons" );
42
component.addOperation( "CreateDesktopEntry"
43
, "codes.bmstu.simodo.simodoedit.desktop"
44
, "Type=Application\nExec=@TargetDir@/bin/simodo-shell\nName=SIMODO shell\nGenericName=The IDE of SIMODO modeling system.\nGenericName[ru]=Интегрированная среда разработки SIMODO.\nIcon=simodo-loom\nTerminal=false\nCategories=Development;IDE;SIMODO;\n\n"