Initial commit based on GenericQtClient v0.3.0

This commit is contained in:
2026-02-04 19:02:41 +01:00
parent debb462f70
commit b24bda2d95
79 changed files with 5014 additions and 0 deletions

View File

@ -0,0 +1,24 @@
function Component() {}
Component.prototype.isDefault = function() {
return true;
}
Component.prototype.createOperations = function() {
try {
component.createOperations();
} catch (e) {
print(e);
}
if (installer.value("os") === "win")
{
component.addOperation("CreateShortcut", "@TargetDir@/${PROJECT_NAME}.exe", "@DesktopDir@/${PROJECT_NAME}.lnk");
}
if (installer.value("os") === "x11")
{
component.addOperation("CreateDesktopEntry", "/usr/share/applications/${PROJECT_NAME}.desktop", "Version=1.0\nType=Application\nTerminal=false\nCategories=Utility\nExec=@TargetDir@/${PROJECT_NAME}\nName=${PROJECT_NAME}\nIcon=@TargetDir@/${PROJECT_NAME}.png\nName[en_US]=${PROJECT_NAME}");
//component.addElevatedOperation("Copy", "/usr/share/applications/${PROJECT_NAME}.desktop", "@HomeDir@/Desktop/${PROJECT_NAME}.desktop");
}
}