Skip to content

Commit

Permalink
Added Dear Esther example.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 8, 2013
1 parent 04b6a09 commit 9733497
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/dearesther/details.txt
@@ -0,0 +1,4 @@
APPTITLE="Dear Esther Installer"
DATAFILE="data/dearesther/dearesther.fgd"


Binary file added examples/dearesther/meta/splash.bmp
Binary file not shown.
15 changes: 15 additions & 0 deletions examples/dearesther/scripts/app_localization.lua
@@ -0,0 +1,15 @@
-- 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 = {
["Dear Esther README"] = {
de = "Dear Esther-README",
es = "LEEME",
pl = "Dear Esther README",
it = "Informazioni su Dear Esther",
};
};

-- end of app_localization.lua ...

150 changes: 150 additions & 0 deletions examples/dearesther/scripts/config.lua
@@ -0,0 +1,150 @@
local TOTAL_INSTALL_SIZE = 1415624618;

local _ = MojoSetup.translate

Setup.Package
{
vendor = "dear-esther.com",
id = "dearesther",
description = "Dear Esther",
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 = _("Dear Esther 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 = "Dear Esther",

Setup.File
{
wildcards = "*";
filter = function(dest)
if dest == "dearesther_linux" then
return dest, "0755" -- make sure it's executable.
end
if dest == "Dear_Esther" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/datacache.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/engine.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/filesystem_stdio.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/inputsystem.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/launcher.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/libMiles.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/libSDL2-2.0.so.0" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/libsteam_api.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/libtier0.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/libtogl.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/libvstdlib.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/localize.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/materialsystem.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/scenefilecache.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/shaderapidx9.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/soundemittersystem.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/stdshader_dx9.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/studiorender.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/valve_avi.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/vaudio_miles.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/vgui2.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/vguimatsurface.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/vphysics.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/vscript.so" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/linux32/binkawin.asi" then
return dest, "0755" -- make sure it's executable.
end
if dest == "bin/linux32/mssmp3.asi" 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 = "Dear Esther",
genericname = "Dear Esther",
tooltip = _("An exploration of loss and grief"),
builtin_icon = false,
icon = "dearesther.png",
commandline = "%0/Dear_Esther",
workingdir = "%0",
category = "Game"
}
}
}

-- end of config.lua ...

0 comments on commit 9733497

Please sign in to comment.