Skip to content

Latest commit

 

History

History
113 lines (102 loc) · 3.07 KB

config.lua

File metadata and controls

113 lines (102 loc) · 3.07 KB
 
Dec 18, 2010
Dec 18, 2010
1
2
3
local GAME_INSTALL_SIZE = 144119222
local X86_INSTALL_SIZE = 14440962
local AMD64_INSTALL_SIZE = 20224358
4
5
6
local _ = MojoSetup.translate
Dec 18, 2010
Dec 18, 2010
7
8
9
-- If we decide you have a 32-bit machine, we don't give you the install
-- choice. If we think you're on 64-bit, we'll ask which you want, defaulting
-- to 64.
Dec 18, 2010
Dec 18, 2010
10
local is32bit =
Dec 18, 2010
Dec 18, 2010
11
MojoSetup.cmdline("32bit") or
Dec 18, 2010
Dec 18, 2010
12
13
14
15
16
MojoSetup.info.machine == "x86" or
MojoSetup.info.machine == "i386" or
MojoSetup.info.machine == "i586" or
MojoSetup.info.machine == "i686"
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Setup.Package
{
vendor = "number-none.com",
id = "braid",
description = "Braid",
version = "1.5.2",
splash = "splash.bmp",
superuser = false,
write_manifest = true,
support_uninstall = true,
recommended_destinations =
{
MojoSetup.info.homedir,
"/opt/games",
"/usr/local/games"
},
Setup.Readme
{
description = _("Braid README"),
Dec 18, 2010
Dec 18, 2010
37
source = _("gamedata/README-linux.txt")
38
39
40
41
},
Setup.Option
{
Dec 18, 2010
Dec 18, 2010
42
43
44
45
46
47
-- !!! 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.
48
49
50
51
52
53
value = true,
required = true,
disabled = false,
bytes = GAME_INSTALL_SIZE,
description = "Braid",
Dec 18, 2010
Dec 18, 2010
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Setup.OptionGroup
{
description = _("CPU Architecture"),
Setup.Option
{
value = is32bit,
required = is32bit,
disabled = false,
bytes = X86_INSTALL_SIZE,
description = "x86",
Setup.File
{
wildcards = "x86/*";
filter = function(fn)
return string.gsub(fn, "^x86/", "", 1), nil
end
},
},
Setup.Option
{
value = not is32bit,
required = false,
disabled = is32bit,
bytes = AMD64_INSTALL_SIZE,
description = "amd64",
Setup.File
{
wildcards = "amd64/*";
filter = function(fn)
return string.gsub(fn, "^amd64/", "", 1), nil
end
},
},
},
89
90
Setup.File
{
Dec 18, 2010
Dec 18, 2010
91
92
93
94
wildcards = "gamedata/*";
filter = function(fn)
return string.gsub(fn, "^gamedata/", "", 1), nil
end
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
},
Setup.DesktopMenuItem
{
disabled = false,
name = "Braid",
genericname = "Braid",
tooltip = _("Time-bending puzzle video game"),
builtin_icon = false,
icon = "braid.png",
commandline = "%0/braid",
workingdir = "%0",
category = "Game"
}
}
}
-- end of config.lua ...