Installer works on Linux via command line script build.sh. Based on legacy projects needs refactoring. (./build.sh 0.0.3 linux GenericQtClient org.working_copy.genericQtClient)
This commit is contained in:
24
installer/packages/defaultPackage/meta/installscript.qs.in
Normal file
24
installer/packages/defaultPackage/meta/installscript.qs.in
Normal 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user