aboutsummaryrefslogtreecommitdiff
path: root/src/msi/sok.wxs
blob: 2a15cfa8b36017d30cbe6c082586989b397b97a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?xml version='1.0' encoding='utf-8'?>
<!-- 
To build:
  wixl -o sok.msi \
    -D BUILD_DIR=../../build-w64 \
    -D SDL_LIB_DIR=/usr/local/x86_64-w64-mingw32/bin \
    sok.wxs

GUIDs (wget -qO- https://www.uuidgenerator.net/api/guid/10):
# 3626b379-ca7b-4fae-990e-b00cdeb0f2d7
# dd702ed3-2b65-4d05-bc99-205aafbb8c37
# ca5c1c3c-4bb5-4123-b8ff-e1228e3457eb
# be925023-1bc1-4e05-a5bf-64b831106651
# 29d288a3-09f7-408b-8412-8d0e6176a235
# 8089e94a-61f3-402e-b1b4-6b7346dc96e9
# 1e8a655d-7370-410c-95f2-2e42c41d9031
# 67058335-6a4e-4cf0-bc34-c8cc2e2e2578
# e9383c16-e1cb-432a-b8db-d799c8225c85
# 58de5bfd-4962-4fbc-a2e7-01da77bd050b

-->
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
  <Product
    Name='Sokoban'
    Id='3626b379-ca7b-4fae-990e-b00cdeb0f2d7'
    UpgradeCode='dd702ed3-2b65-4d05-bc99-205aafbb8c37'
    Language='1033'
    Codepage='1252'
    Version='1.0'
    Manufacturer='Pablotron'
  >
    <Package
      Id='*'
      Keywords='Installer'
      Description="Pablotron Sokoban installer."
      Comments='Pablotron sokoban.'
      Manufacturer='Pablotron'
      InstallerVersion='100'
      Languages='1033'
      Compressed='yes'
      SummaryCodepage='1252'
    />

    <Media
      Id='1'
      Cabinet='sok.cab'
      EmbedCab='yes'
      DiskPrompt="CD-ROM #1"
    />

    <Property
      Id='DiskPrompt'
      Value="Pablotron Sokoban 1.0 Installation [1]"
    />

    <Directory Id='TARGETDIR' Name='SourceDir'>
      <Directory Id='ProgramFilesFolder' Name='PFiles'>
        <Directory Id='Pablotron' Name='Pablotron'>
          <Directory Id='INSTALLDIR' Name='Sokoban 1.0'>

            <Component
              Id='cmp-sok-exe'
              Guid='ca5c1c3c-4bb5-4123-b8ff-e1228e3457eb'
            >
              <File
                Id='file-sok-exe'
                Name='sok.exe'
                DiskId='1'
                Source='$(var.BUILD_DIR)/sok.exe'
                KeyPath='yes'
              />
            </Component>

            <Component
              Id='cmp-solve-exe'
              Guid='be925023-1bc1-4e05-a5bf-64b831106651'
            >
              <File
                Id='file-solve-exe'
                Name='solve.exe'
                DiskId='1'
                Source='$(var.BUILD_DIR)/solve.exe'
                KeyPath='yes'
              />
            </Component>

            <Component
              Id='cmp-text-exe'
              Guid='29d288a3-09f7-408b-8412-8d0e6176a235'
            >
              <File
                Id='file-text-exe'
                Name='text.exe'
                DiskId='1'
                Source='$(var.BUILD_DIR)/text.exe'
                KeyPath='yes'
              />
            </Component>

            <Component
              Id='cmp-libfreetype-dll'
              Guid='8089e94a-61f3-402e-b1b4-6b7346dc96e9'
            >
              <File
                Id='file-libfreetype-6-dll'
                Name='libfreetype-6.dll'
                DiskId='1'
                Source='$(var.SDL_LIB_DIR)/libfreetype-6.dll'
                KeyPath='yes'
              />
            </Component>

            <Component
              Id='cmp-sdl2-ttf-dll'
              Guid='1e8a655d-7370-410c-95f2-2e42c41d9031'
            >
              <File
                Id='file-sdl2-ttf-dll'
                Name='SDL2_ttf.dll'
                DiskId='1'
                Source='$(var.SDL_LIB_DIR)/SDL2_ttf.dll'
                KeyPath='yes'
              />
            </Component>

            <Component
              Id='cmp-sdl2-dll'
              Guid='67058335-6a4e-4cf0-bc34-c8cc2e2e2578'
            >
              <File
                Id='file-sdl2-dll'
                Name='SDL2.dll'
                DiskId='1'
                Source='$(var.SDL_LIB_DIR)/SDL2.dll'
                KeyPath='yes'
              />
            </Component>

            <Component
              Id='cmp-zlib1-dll'
              Guid='e9383c16-e1cb-432a-b8db-d799c8225c85'
            >
              <File
                Id='file-zlib1-dll'
                Name='zlib1.dll'
                DiskId='1'
                Source='$(var.SDL_LIB_DIR)/zlib1.dll'
                KeyPath='yes'
              />
            </Component>
          </Directory>
        </Directory>
      </Directory>
    </Directory>

    <Feature Id='Complete' Level='1'>
      <ComponentRef Id='cmp-sok-exe'/>
      <ComponentRef Id='cmp-solve-exe'/>
      <ComponentRef Id='cmp-text-exe'/>
      <ComponentRef Id='cmp-libfreetype-dll'/>
      <ComponentRef Id='cmp-sdl2-ttf-dll'/>
      <ComponentRef Id='cmp-sdl2-dll'/>
      <ComponentRef Id='cmp-zlib1-dll'/>
    </Feature>
  </Product>
</Wix>