Skip to content

Commit

Permalink
Merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 7, 2012
2 parents 67bb49e + 0236fc4 commit 233deb1
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/psychonauts/details.txt
@@ -0,0 +1,2 @@
APPTITLE="Psychonauts Installer"
DATAFILE="data/PsychonautsData2.pkg"
Binary file added examples/psychonauts/meta/splash.bmp
Binary file not shown.
23 changes: 23 additions & 0 deletions examples/psychonauts/scripts/app_localization.lua
@@ -0,0 +1,23 @@
-- Lines starting with "--" are comments in this file.
-- You should add your installer's strings here, instead of localization.lua,
-- but localization.lua has instructions on how this file is formatted.

MojoSetup.applocalization = {
["Uninstall complete"] = {
en = "Uninstall complete. You may also delete 'Psychonauts' in your home directory to remove personal savegames and settings.",
de = "Deinstallation komplett. Du kannst auch 'Psychonauts' in deinem Heimverzeichnis löschen, um eigene Spielstände und Einstellungen zu entfernen.",
es = "Desinstalación completa. Puedes borrar 'Psychonauts' en tu directorio home para borrar configuraciones personales y tus juegos grabados.",
pl = "Usuwanie zakończone. By usunąć zapisane stany gry i ustawienia, można również usunąć 'Psychonauts' z domowego katalogu.",
it = "Disinstallazione completata. Se desideri cancellare i salvataggi e le impostazione cancella 'Psychonauts' nella tua directory home.",
};

["Psychonauts README"] = {
de = "Psychonauts-README",
es = "LEEME",
pl = "Psychonauts README",
it = "Informazioni su Psychonauts",
};
};

-- end of app_localization.lua ...

75 changes: 75 additions & 0 deletions examples/psychonauts/scripts/config.lua
@@ -0,0 +1,75 @@
local TOTAL_INSTALL_SIZE = 5485393918;

local _ = MojoSetup.translate

Setup.Package
{
vendor = "doublefine.com",
id = "psychonauts",
description = "Psychonauts",
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 = _("Psychonauts 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 = "Psychonauts",

Setup.File
{
wildcards = "*";
filter = function(dest)
if dest == "Psychonauts" then
return dest, "0755" -- make sure it's executable.
end
if dest == "libSDL-1.2.so.0" then
return dest, "0755" -- make sure it's executable.
end
if dest == "libopenal.so.1" then
return dest, "0755" -- make sure it's executable.
end
return dest -- everything else just goes through as-is.
end
},

Setup.DesktopMenuItem
{
disabled = false,
name = "Psychonauts",
genericname = "Psychonauts",
tooltip = _("A mind-bending platforming adventure"),
builtin_icon = false,
icon = "psychonauts.png",
commandline = "%0/Psychonauts",
workingdir = "%0",
category = "Game"
}
}
}

-- end of config.lua ...

0 comments on commit 233deb1

Please sign in to comment.