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:
2025-10-29 11:09:04 +01:00
parent 0acc36454c
commit fc083f527a
12 changed files with 360 additions and 3 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");
}
}

View File

@ -0,0 +1 @@
The fantastic license, have you heard of the Tea Public License Agreement yet?

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Package>
<DisplayName>The application itself</DisplayName>
<Description>Installs the ${PROJECT_NAME} executable.</Description>
<Version>${PROJECT_VERSION}</Version>
<ReleaseDate>${CURRENT_DATE}</ReleaseDate>
<Licenses>
<License name="GNU General Public License Agreement" file="license.txt" />
</Licenses>
<ForcedInstallation>true</ForcedInstallation>
<Default>script</Default>
<Script>installscript.qs</Script>
</Package>