MegaGlest/mk/linux/mojosetup/megaglest-installer/scripts/config.lua

106 lines
2.7 KiB
Lua
Raw Normal View History

local GAME_INSTALL_SIZE = 680000000;
2011-04-01 03:40:15 +02:00
local GAME_VERSION = "3.5.0-beta1";
2010-04-25 05:01:17 +02:00
local _ = MojoSetup.translate
Setup.Package
{
vendor = "megaglest.org",
2010-04-25 05:01:17 +02:00
id = "megaglest",
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)
MojoSetup.launchbrowser("http://www.megaglest.org")
2010-04-25 05:01:17 +02:00
end,
Setup.Eula
{
description = _("Megaglest License"),
source = _("docs/LICENSE")
2010-04-25 05:01:17 +02:00
},
Setup.Readme
{
description = _("Megaglest README"),
source = _("docs/README")
2010-04-25 05:01:17 +02:00
},
Setup.Option
{
value = true,
required = true,
disabled = false,
bytes = GAME_INSTALL_SIZE,
description = _("Mega Glest v" .. GAME_VERSION),
2010-04-25 05:01:17 +02:00
Setup.File
{
-- Just install everything we see...
source = "base:///mgdata.tar.xz",
2010-04-25 05:01:17 +02:00
},
Setup.DesktopMenuItem
{
disabled = false,
name = _("MegaGlest v" .. GAME_VERSION),
2010-04-25 05:01:17 +02:00
genericname = _("MegaGlest"),
tooltip = _("A real time strategy game."),
builtin_icon = false,
icon = "megaglest.ico",
2010-04-25 05:01:17 +02:00
commandline = "%0/glest",
category = "Game;StrategyGame"
},
Setup.DesktopMenuItem
{
disabled = false,
name = _("MegaGlest Map Editor v" .. GAME_VERSION),
genericname = _("MegaGlest"),
tooltip = _("A real time strategy game."),
builtin_icon = false,
icon = "editor.ico",
commandline = "%0/editor",
category = "Game;StrategyGame"
},
Setup.DesktopMenuItem
{
disabled = false,
name = _("MegaGlest G3D Model Viewer v" .. GAME_VERSION),
genericname = _("MegaGlest"),
tooltip = _("A real time strategy game."),
builtin_icon = false,
icon = "g3dviewer.ico",
commandline = "%0/g3dviewer",
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-04-25 05:01:17 +02:00
}
}
-- end of config.lua ...