forked from Stichting-MINIX-Research-Foundation/minix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkmanifest
More file actions
executable file
·33 lines (31 loc) · 758 Bytes
/
Copy pathmkmanifest
File metadata and controls
executable file
·33 lines (31 loc) · 758 Bytes
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
#!/bin/sh
makeone() {
local name="$(basename "$1" .exe)"
case $name in
*instal*|*patch*|*update*|*setup*)
;;
*)
return;;
esac
cat << _EOF > ${1%.exe}.exe.manifest
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- $NetBSD: mkmanifest,v 1.1 2013/02/17 00:36:40 christos Exp $ -->
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86"
name="$name"
type="win32"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
_EOF
}
for i
do
makeone "$i"
done