aboutsummaryrefslogtreecommitdiffstats
path: root/release/installbuilder/mitmproxy.xml
blob: e4ad00a3fa4c82b0d0c4978d6117716e36f42391 (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
<project>
    <shortName>mitmproxy</shortName>
    <fullName>mitmproxy</fullName>
    <version>1.0</version>
    <leftImage>logo-installer.png</leftImage>
    <logoImage>logo-installer-icon.png</logoImage>
    <componentList>
        <component>
            <name>default</name>
            <description>Default Component</description>
            <canBeEdited>1</canBeEdited>
            <selected>1</selected>
            <show>1</show>
            <folderList>
                <folder>
                    <description>Program Files</description>
                    <destination>${installdir}</destination>
                    <name>programfiles</name>
                    <platforms>all</platforms>
                    <distributionFileList>
                        <distributionFile>
                            <origin>logo.ico</origin>
                        </distributionFile>
                    </distributionFileList>
                </folder>
                <folder>
                    <description>Program Files/bin</description>
                    <destination>${installdir}/bin</destination>
                    <name>binaries</name>
                    <platforms>all</platforms>
                    <distributionFileList>
                        <distributionFile>
                            <allowWildcards>1</allowWildcards>
                            <excludeFiles>*/patho*</excludeFiles>
                            <origin>../build/binaries/${platform_name}/*</origin>
                        </distributionFile>
                    </distributionFileList>
                </folder>
            </folderList>
            <postInstallationActionList>
                <addDirectoryToPath>
                    <insertAt>end</insertAt>
                    <path>${installdir}/bin</path>
                    <scope>user</scope>
                </addDirectoryToPath>
            </postInstallationActionList>
            <postUninstallationActionList>
                <removeDirectoryFromPath>
                    <path>${installdir}/bin</path>
                    <scope>user</scope>
                </removeDirectoryFromPath>
            </postUninstallationActionList>
            <startMenuShortcutList>
                <startMenuShortcut>
                    <comment></comment>
                    <name>mitmproxy ui</name>
                    <runAsAdmin>0</runAsAdmin>
                    <runInTerminal>0</runInTerminal>
                    <windowsExec>${installdir}\bin\mitmweb.exe</windowsExec>
                    <windowsExecArgs></windowsExecArgs>
                    <windowsIcon>${installdir}/logo.ico</windowsIcon>
                    <windowsPath>${installdir}</windowsPath>
                </startMenuShortcut>
                <startMenuShortcut>
                    <comment></comment>
                    <name>mitmdump</name>
                    <runAsAdmin>0</runAsAdmin>
                    <runInTerminal>0</runInTerminal>
                    <windowsExec>${installdir}\bin\mitmdump.exe</windowsExec>
                    <windowsExecArgs></windowsExecArgs>
                    <windowsIcon>${installdir}/logo.ico</windowsIcon>
                    <windowsPath>${installdir}</windowsPath>
                </startMenuShortcut>
            </startMenuShortcutList>
        </component>
    </componentList>
    <createOsxBundleDmg>1</createOsxBundleDmg>
    <disableSplashScreen>1</disableSplashScreen>
    <enableRollback>1</enableRollback>
    <enableTimestamp>1</enableTimestamp>
    <outputDirectory>../dist</outputDirectory>
    <productDisplayIcon>logo.ico</productDisplayIcon>
    <saveRelativePaths>1</saveRelativePaths>
    <vendor>mitmproxy.org</vendor>
    <windowsExecutableIcon>logo.ico</windowsExecutableIcon>
    <finalPageActionList>
        <runProgram>
            <program>cmd</program>
            <programArguments>/c start "mitmproxy ui" "${installdir}\bin\mitmweb.exe" &amp;</programArguments>
            <progressText>Launch mitmproxy ui now</progressText>
            <ruleList>
                <platformTest>
                    <type>windows</type>
                </platformTest>
            </ruleList>
        </runProgram>
        <runProgram>
            <program>${installdir}/mitmproxy</program>
            <programArguments>&amp;</programArguments>
            <progressText>Launch mitmproxy now</progressText>
            <ruleList>
                <platformTest>
                    <negate>1</negate>
                    <type>windows</type>
                </platformTest>
            </ruleList>
        </runProgram>
    </finalPageActionList>
    <parameterList>
        <directoryParameter>
            <name>installdir</name>
            <description>Installer.Parameter.installdir.description</description>
            <explanation>Installer.Parameter.installdir.explanation</explanation>
            <value></value>
            <default>${platform_install_prefix}/${product_shortname}</default>
            <allowEmptyValue>0</allowEmptyValue>
            <ask>yes</ask>
            <cliOptionName>prefix</cliOptionName>
            <mustBeWritable>yes</mustBeWritable>
            <mustExist>0</mustExist>
            <width>40</width>
            <postShowPageActionList>
                <!-- This will skip the readytoinstall page -->
                <setInstallerVariable name="next_page" value="installation"/>
            </postShowPageActionList>
            <preShowPageActionList>
                <setInstallerVariable>
                    <name>ui.button(next).text</name>
                    <value>${msg(Installer.Button.Install)}</value>
                </setInstallerVariable>
            </preShowPageActionList>
        </directoryParameter>
    </parameterList>
</project>