Skip to content

Commit

Permalink
Added Space Pirates and Zombies installer.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 19, 2012
1 parent c86876c commit 54f8f73
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/spaz/details.txt
@@ -0,0 +1,3 @@
APPTITLE="Space Pirates and Zombies Installer"
DATAFILE="data/game/data/audio/chatter.zom"

Binary file added examples/spaz/meta/splash.bmp
Binary file not shown.
63 changes: 63 additions & 0 deletions examples/spaz/scripts/config.lua
@@ -0,0 +1,63 @@
local TOTAL_INSTALL_SIZE = 168345717;

local _ = MojoSetup.translate

Setup.Package
{
vendor = "spacepiratesandzombies.com",
id = "spaz",
description = "Space Pirates and Zombies",
version = "1.0",
splash = "splash.bmp",
superuser = false,
write_manifest = true,
support_uninstall = true,
recommended_destinations =
{
MojoSetup.info.homedir,
"/opt/games",
"/usr/local/games"
},

Setup.Readme
{
description = _("Space Pirates and Zombies README"),
source = _("README-linux.txt")
},

Setup.Option
{
-- !!! FIXME: All this filter nonsense is because
-- !!! FIXME: source = "base:///some_dir_in_basepath/"
-- !!! FIXME: doesn't work, since it wants a file when drilling
-- !!! FIXME: for the final archive, not a directory. Fixing this
-- !!! FIXME: properly is a little awkward, though.

value = true,
required = true,
disabled = false,
bytes = TOTAL_INSTALL_SIZE,
description = "Space Pirates and Zombies",

Setup.File
{
wildcards = "*";
},

Setup.DesktopMenuItem
{
disabled = false,
name = "Space Pirates and Zombies",
genericname = "Space Pirates and Zombies",
tooltip = _("A space odyssey. With pirates. And zombies."),
builtin_icon = false,
icon = "SPAZ.png",
commandline = "%0/SPAZ",
workingdir = "%0",
category = "Game"
}
}
}

-- end of config.lua ...

0 comments on commit 54f8f73

Please sign in to comment.