2011-02-04 00:18:21 +01:00
|
|
|
local GAME_INSTALL_SIZE = 680000000;
|
2011-01-22 07:20:09 +01:00
|
|
|
local GAME_VERSION = "3.4.0";
|
2010-04-25 05:01:17 +02:00
|
|
|
|
|
|
|
local _ = MojoSetup.translate
|
|
|
|
|
|
|
|
Setup.Package
|
|
|
|
{
|
2011-01-22 07:20:09 +01:00
|
|
|
vendor = "megaglest.org",
|
2010-04-25 05:01:17 +02:00
|
|
|
id = "megaglest",
|
2010-08-12 08:23:42 +02:00
|
|
|
description = _("Mega Glest v" .. GAME_VERSION),
|
|
|
|
version = GAME_VERSION,
|
2010-04-25 05:01:17 +02:00
|
|
|
splash = "glestforumsheader.bmp",
|
|
|
|
superuser = false,
|
|
|
|
write_manifest = true,
|
|
|
|
support_uninstall = true,
|
|
|
|
recommended_destinations =
|
|
|
|
{
|
|
|
|
MojoSetup.info.homedir,
|
|
|
|
"/opt/games",
|
|
|
|
"/usr/local/games"
|
|
|
|
},
|
|
|
|
|
|
|
|
postinstall = function(package)
|
2011-01-22 07:20:09 +01:00
|
|
|
MojoSetup.launchbrowser("http://www.megaglest.org")
|
2010-04-25 05:01:17 +02:00
|
|
|
end,
|
|
|
|
|
|
|
|
Setup.Eula
|
|
|
|
{
|
|
|
|
description = _("Megaglest License"),
|
2011-01-22 22:39:16 +01:00
|
|
|
source = _("docs/LICENSE")
|
2010-04-25 05:01:17 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
Setup.Readme
|
|
|
|
{
|
|
|
|
description = _("Megaglest README"),
|
2011-01-22 22:39:16 +01:00
|
|
|
source = _("docs/README")
|
2010-04-25 05:01:17 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
Setup.Option
|
|
|
|
{
|
|
|
|
value = true,
|
|
|
|
required = true,
|
|
|
|
disabled = false,
|
|
|
|
bytes = GAME_INSTALL_SIZE,
|
2010-08-12 08:23:42 +02:00
|
|
|
description = _("Mega Glest v" .. GAME_VERSION),
|
2010-04-25 05:01:17 +02:00
|
|
|
|
|
|
|
Setup.File
|
|
|
|
{
|
|
|
|
-- Just install everything we see...
|
2011-01-24 16:47:21 +01:00
|
|
|
source = "base:///mgdata.tar.xz",
|
2010-04-25 05:01:17 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
Setup.DesktopMenuItem
|
|
|
|
{
|
|
|
|
disabled = false,
|
2011-02-04 00:18:21 +01:00
|
|
|
name = _("MegaGlest v" .. GAME_VERSION),
|
2010-04-25 05:01:17 +02:00
|
|
|
genericname = _("MegaGlest"),
|
|
|
|
tooltip = _("A real time strategy game."),
|
|
|
|
builtin_icon = false,
|
2010-06-26 00:04:40 +02:00
|
|
|
icon = "megaglest.ico",
|
2010-04-25 05:01:17 +02:00
|
|
|
commandline = "%0/glest",
|
2011-02-04 00:18:21 +01:00
|
|
|
category = "Game;StrategyGame"
|
2010-06-26 20:19:57 +02:00
|
|
|
},
|
|
|
|
|
2010-06-26 00:04:40 +02:00
|
|
|
Setup.DesktopMenuItem
|
|
|
|
{
|
|
|
|
disabled = false,
|
2011-02-04 00:18:21 +01:00
|
|
|
name = _("MegaGlest Map Editor v" .. GAME_VERSION),
|
2010-06-26 00:04:40 +02:00
|
|
|
genericname = _("MegaGlest"),
|
|
|
|
tooltip = _("A real time strategy game."),
|
|
|
|
builtin_icon = false,
|
|
|
|
icon = "editor.ico",
|
2010-10-08 00:17:05 +02:00
|
|
|
commandline = "%0/editor",
|
2011-02-04 00:18:21 +01:00
|
|
|
category = "Game;StrategyGame"
|
2010-06-26 20:19:57 +02:00
|
|
|
},
|
|
|
|
|
2010-06-26 00:04:40 +02:00
|
|
|
Setup.DesktopMenuItem
|
|
|
|
{
|
|
|
|
disabled = false,
|
2011-02-04 00:18:21 +01:00
|
|
|
name = _("MegaGlest G3D Model Viewer v" .. GAME_VERSION),
|
2010-06-26 00:04:40 +02:00
|
|
|
genericname = _("MegaGlest"),
|
|
|
|
tooltip = _("A real time strategy game."),
|
|
|
|
builtin_icon = false,
|
|
|
|
icon = "g3dviewer.ico",
|
2010-10-08 00:17:05 +02:00
|
|
|
commandline = "%0/g3dviewer",
|
2011-02-04 00:18:21 +01:00
|
|
|
category = "Game;StrategyGame"
|
|
|
|
},
|
|
|
|
|
|
|
|
Setup.DesktopMenuItem
|
|
|
|
{
|
|
|
|
disabled = false,
|
|
|
|
name = _("MegaGlest Uninstall v" .. GAME_VERSION),
|
|
|
|
genericname = _("MegaGlest"),
|
|
|
|
tooltip = _("A real time strategy game."),
|
|
|
|
builtin_icon = false,
|
|
|
|
icon = "megaglest_uninstall.ico",
|
|
|
|
commandline = "%0/uninstall-megaglest.sh",
|
|
|
|
category = "Game;StrategyGame"
|
2010-06-26 00:04:40 +02:00
|
|
|
}
|
|
|
|
|
2010-04-25 05:01:17 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- end of config.lua ...
|
|
|
|
|