Skip to content

Latest commit

 

History

History
110 lines (99 loc) · 2.89 KB

config.lua

File metadata and controls

110 lines (99 loc) · 2.89 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
10
11
12
13
-- grumble.
local is32bit =
MojoSetup.info.machine == "x86" or
MojoSetup.info.machine == "i386" or
MojoSetup.info.machine == "i586" or
MojoSetup.info.machine == "i686"
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
34
source = _("gamedata/README-linux.txt")
35
36
37
38
},
Setup.Option
{
Dec 18, 2010
Dec 18, 2010
39
40
41
42
43
44
-- !!! 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.
45
46
47
48
49
50
value = true,
required = true,
disabled = false,
bytes = GAME_INSTALL_SIZE,
description = "Braid",
Dec 18, 2010
Dec 18, 2010
51
52
53
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
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
},
},
},
86
87
Setup.File
{
Dec 18, 2010
Dec 18, 2010
88
89
90
91
wildcards = "gamedata/*";
filter = function(fn)
return string.gsub(fn, "^gamedata/", "", 1), nil
end
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
},
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 ...