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");
|
||||
}
|
||||
}
|
||||
1
installer/packages/defaultPackage/meta/license.txt.in
Normal file
1
installer/packages/defaultPackage/meta/license.txt.in
Normal file
@ -0,0 +1 @@
|
||||
The fantastic license, have you heard of the Tea Public License Agreement yet?
|
||||
13
installer/packages/defaultPackage/meta/package.xml.in
Normal file
13
installer/packages/defaultPackage/meta/package.xml.in
Normal 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>
|
||||
Reference in New Issue
Block a user