Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A bunch of cleanup and work from when I didn't have net access...
- Loading branch information
Showing
12 changed files
with
527 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,98 @@ | ||
-- This is a setup file. Lines that start with "--" are comments. | ||
-- This config file is actually just lua code. Even though you'll only | ||
-- This config file is actually just Lua code. Even though you'll only | ||
-- need a small subset of the language, there's a lot of flexibility | ||
-- available to you if you need it. http://www.lua.org/ | ||
-- | ||
-- All functionality supplied by the installer is encapsulated in the | ||
-- "MojoSetup" table, so you can use any other symbol name without | ||
-- All functionality supplied by the installer is encapsulated in either the | ||
-- "Setup" or "MojoSetup" table, so you can use any other symbol name without | ||
-- namespace clashes, assuming it's not a Lua keyword or a symbol supplied | ||
-- by the standard lua libraries. | ||
-- | ||
-- So here's the actual configuration...we used loki_setup's xml schema | ||
-- as a rough guideline. | ||
|
||
MojoSetup.Install | ||
Setup.Install | ||
{ | ||
product = "mygame"; | ||
desc = "My Game"; | ||
version = "1.0"; | ||
splash = "splash.jpg"; | ||
splashpos = "top"; | ||
superuser = false; | ||
appbundle = true; | ||
reinstall = true; | ||
nouninstall = true; | ||
product = "mygame", | ||
desc = "My Game", | ||
version = "1.0", | ||
splash = "splash.jpg", | ||
splashpos = "top", | ||
superuser = false, | ||
appbundle = true, | ||
reinstall = true, | ||
nouninstall = true, | ||
|
||
-- Things that are Capitalized are internal functions we supply. | ||
-- Things named Setup.Something are internal functions we supply. | ||
-- Generally these return the table you pass to them, but they | ||
-- may sanitize the values, add defaults, and verify the data. | ||
|
||
-- End User License Agreement(s). You can specify multiple files. | ||
MojoSetup.Eula { keepdirs = true, filename = "MyGame/MyGame_EULA.txt" }; | ||
MojoSetup.Eula { keepdirs = true, filename = "MyGame/PunkBuster_EULA.txt" }; | ||
-- Also, Note the "translate" call. | ||
Setup.Eula | ||
{ | ||
name = "My Game License", | ||
ui_stdio = MojoSetup.translate("MyGame_EULA.txt"), | ||
ui_gnome = MojoSetup.translate("MyGame_EULA.html"), | ||
ui_macosx = MojoSetup.translate("MyGame_EULA.html"), | ||
ui_generic = MojoSetup.translate("MyGame_EULA.mtf"), | ||
}, | ||
|
||
Setup.Eula | ||
{ | ||
name = "Punkbuster License", | ||
ui_stdio = MojoSetup.translate("PunkBuster_EULA.txt"), | ||
ui_gnome = MojoSetup.translate("PunkBuster_EULA.html"), | ||
ui_macosx = MojoSetup.translate("PunkBuster_EULA.html"), | ||
ui_generic = MojoSetup.translate("PunkBuster_EULA.mtf"), | ||
}, | ||
|
||
-- README file(s) to show and install. Note the "translate" call. | ||
MojoSetup.Readme { filename = MojoSetup.translate("README.txt") }; | ||
-- README file(s) to show and install. | ||
Setup.Readme | ||
{ | ||
name = "My Game README", | ||
ui_stdio = MojoSetup.translate("README.txt"), | ||
ui_gnome = MojoSetup.translate("README.html"), | ||
ui_macosx = MojoSetup.translate("README.html"), | ||
ui_generic = MojoSetup.translate("README.mtf"), | ||
}, | ||
|
||
-- Specify media (discs) we may need for this install and how to find them. | ||
MojoSetup.Media { id = "cd1", name = "MyGame CD 1", uniquefile = "Sound/blip.wav" }; | ||
MojoSetup.Media { id = "cd2", name = "MyGame CD 2", uniquefile = "Maps/town.map" }; | ||
Setup.Media | ||
{ | ||
id = "cd1", | ||
name = "MyGame CD 1", | ||
uniquefile = "Sound/blip.wav" | ||
}, | ||
|
||
Setup.Media | ||
{ | ||
id = "cd2", | ||
name = "MyGame CD 2", | ||
uniquefile = "Maps/town.map" | ||
}, | ||
|
||
-- Specify chunks to install...optional or otherwise. | ||
MojoSetup.Option | ||
Setup.Option | ||
{ | ||
required = true; | ||
size = "600M"; | ||
description = "Base Install"; | ||
required = true, | ||
size = "600M", | ||
description = "Base Install", | ||
|
||
-- File(s) to install. | ||
MojoSetup.File | ||
Setup.File | ||
{ | ||
cdromid = "cd1"; | ||
dst = "MyGame/MyGame.app"; | ||
unpackarchives = true; | ||
src = { "Maps/Maps.zip", "Sounds/*.wav", "Graphics/*" }; | ||
cdromid = "cd1", | ||
dst = "MyGame/MyGame.app", | ||
unpackarchives = true, | ||
src = { "Maps/Maps.zip", "Sounds/*.wav", "Graphics/*" }, | ||
|
||
-- You can optionally assign a lua function...we'll call this for | ||
-- each file to see if we should avoid installing it. | ||
filter = function(fn) return fn == "Graphics/dontinstall.jpg" end; | ||
}; | ||
}; | ||
}; | ||
filter = function(fn) return fn == "Graphics/dontinstall.jpg" end | ||
}, | ||
}, | ||
} | ||
|
||
-- end of config.lua ... | ||
|
Oops, something went wrong.