Add Windows installer script

To compile an MSI package, use a wix compiler like wixl, e.g.
`wixl ../packaging/*.wx* -o facecam2d-0.2.1.msi`
This commit is contained in:
Epicalert 2021-07-19 23:22:55 +08:00
parent 739f13adf9
commit 78bd3264bf
No known key found for this signature in database
GPG key ID: CAA46F858D0979BD
5 changed files with 244 additions and 2 deletions

View file

@ -9,8 +9,6 @@
## misc
- README
- windows installer?
# Whenever

31
packaging/cvfiles.wxi Normal file
View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Directory Id="dirEBEABA84D32C5D6DE70A4A6B674BD2D0" Name="cvdata">
<Component Id="cmpA0B777BCCEEA8683D7751508689DA336" Guid="*">
<File Id="fil45F5D2B52A0F13B80B47A2F86D2A0048" KeyPath="yes" Source="SourceDir/cvdata/lbfmodel.yaml"/>
</Component>
<Component Id="cmpDF30965B5F823773F74CB922BB8B248C" Guid="*">
<File Id="fil923D81D6213994867CBC44AC773DB8CD" KeyPath="yes" Source="SourceDir/cvdata/haarcascade_frontalface_alt2.xml"/>
</Component>
<Component Id="cmp6EB2ECBBCF438DF6189C9CA6B5A0B29F" Guid="*">
<File Id="fil4C1002244DFDAC508C6D3AB7C43F2FC2" KeyPath="yes" Source="SourceDir/cvdata/deploy.prototxt"/>
</Component>
<Component Id="cmp7B4356888EB93C232AF1046A14A1441A" Guid="*">
<File Id="fil62A01CEFAD572CBCFF243EE610BBFDEA" KeyPath="yes" Source="SourceDir/cvdata/res10_300x300_ssd_iter_140000_fp16.caffemodel"/>
</Component>
</Directory>
</DirectoryRef>
</Fragment>
<Fragment>
<ComponentGroup Id="CVFiles">
<ComponentRef Id="cmpA0B777BCCEEA8683D7751508689DA336"/>
<ComponentRef Id="cmpDF30965B5F823773F74CB922BB8B248C"/>
<ComponentRef Id="cmp6EB2ECBBCF438DF6189C9CA6B5A0B29F"/>
<ComponentRef Id="cmp7B4356888EB93C232AF1046A14A1441A"/>
</ComponentGroup>
</Fragment>
</Wix>
<!-- generated with msitools 0.101 -->
<!-- wixl-heat -p pkg/ -component-group CVFiles -directory-ref INSTALLDIR -->

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Directory Id="dir55B1567418000679922D7A91E9920EC6" Name="models">
<Component Id="cmp21A67720E412E214D9182D5DDCA16BF0" Guid="*">
<File Id="fil8A8C54B40AE10C2C53C60B8CBF9AAD82" KeyPath="yes" Source="SourceDir/models/rms.fma"/>
</Component>
<Component Id="cmp0D14907778E33AA7DEB65E7F00172857" Guid="*">
<File Id="filA7F9E9E4A58E0308995A2329D849667E" KeyPath="yes" Source="SourceDir/models/test.fma"/>
</Component>
</Directory>
</DirectoryRef>
</Fragment>
<Fragment>
<ComponentGroup Id="DefaultModels">
<ComponentRef Id="cmp21A67720E412E214D9182D5DDCA16BF0"/>
<ComponentRef Id="cmp0D14907778E33AA7DEB65E7F00172857"/>
</ComponentGroup>
</Fragment>
</Wix>
<!-- generated with msitools 0.101 -->
<!-- wixl-heat -p pkg/ -component-group DefaultModels -directory-ref INSTALLDIR -->

47
packaging/facecam2d.wxs Normal file
View file

@ -0,0 +1,47 @@
<?xml version='1.0' encoding='utf-8'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Product Name='Facecam2D 0.2.1' Manufacturer='Epicalert'
Id='A427AE0E-7C4D-4468-B0EB-8B22371521F7'
UpgradeCode='79747C48-F311-47D9-8D53-9DE577C49EDB'
Language='1033' Codepage='1252' Version='0.2.1'>
<Package Id='*' Keywords='Installer' Description='Facecam2D Installer'
Comments='Facecam2D is licensed under the GNU GPLv3.'
Manufacturer='Epicalert'
InstallerVersion='100' Languages='1033' Compressed='yes'
SummaryCodepage='1252'/>
<Media Id='1' Cabinet='Sample.cab' EmbedCab='yes'/>
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFiles64Folder' Name='PFiles'>
<Directory Id='INSTALLDIR' Name='Facecam2D'>
<Component Id='MainExecutable' Guid='8E7EE50A-14BB-4A4A-9B91-DE0CD66DBAA8'>
<File Id='fc2dEXE' Name='fc2d.exe' DiskId='1' Source='SourceDir/fc2d.exe' KeyPath='yes'>
<Shortcut Id='fc2dShortcut' Directory='ProgramMenuFolder' Name='Facecam2D'
WorkingDirectory='INSTALLDIR' Icon='facecam2d.ico' IconIndex='0' Advertise='yes'/>
</File>
</Component>
<Component Id='ConfigExecutable' Guid='B8FD8A58-D18B-4E6D-A935-EA2B2FFC04A9'>
<File Id='fc2dconfigEXE' Name='fc2dconfig.exe' DiskId='1' Source='SourceDir/fc2dconfig.exe' KeyPath='yes'>
<Shortcut Id='configureShortcut' Directory='ProgramMenuFolder' Name='Facecam2D Configuration'
WorkingDirectory='INSTALLDIR' Icon='facecam2d-config.ico' IconIndex='0' Advertise='yes'/>
</File>
</Component>
<Directory Id='CVData' Name='cvdata'/>
<Directory Id='Models' Name='models'/>
</Directory>
</Directory>
</Directory>
<Feature Id='Complete' Level='1'>
<ComponentRef Id='MainExecutable'/>
<ComponentRef Id='ConfigExecutable'/>
<ComponentGroupRef Id='SharedLibs'/>
<ComponentGroupRef Id='CVFiles'/>
<ComponentGroupRef Id='DefaultModels'/>
</Feature>
<Icon Id='facecam2d.ico' SourceFile='SourceDir/facecam2d.ico'/>
<Icon Id='facecam2d-config.ico' SourceFile='SourceDir/facecam2d-config.ico'/>
</Product>
</Wix>

143
packaging/sharedlibs.wxi Normal file
View file

@ -0,0 +1,143 @@
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Directory Id="dir006B6F76FC1764FFF2960A2FA816D493" Name=".">
<Component Id="cmpA290827F995E856CD74D215933C2F5E2" Guid="*">
<File Id="filEF7D70B7A1DE416932CCEFE8D494CAE0" KeyPath="yes" Source="SourceDir/glew32.dll"/>
</Component>
<Component Id="cmpA04E1FFEBE5AD368BB262EB5BF62C530" Guid="*">
<File Id="fil64650DDC786F0F0B7F4A9AC08328B364" KeyPath="yes" Source="SourceDir/libblas.dll"/>
</Component>
<Component Id="cmp28392322DC42E13C9B2B268E4FAC9767" Guid="*">
<File Id="fil76A0FDD1257D4078D5C511D2CE7FB4C2" KeyPath="yes" Source="SourceDir/libBoxer.dll"/>
</Component>
<Component Id="cmp36B722012E47433F9A178AE42B6DCBD4" Guid="*">
<File Id="fil7BA235EF2670E450CD446EC473D5F1AD" KeyPath="yes" Source="SourceDir/libbz2-1.dll"/>
</Component>
<Component Id="cmpA2698EEBD1A820D77EFA922EA58EB085" Guid="*">
<File Id="filB48074E2A358408CEF0A5FD97A6C309D" KeyPath="yes" Source="SourceDir/libcblas.dll"/>
</Component>
<Component Id="cmp4345A1AB7F1F905A5805689544F1E545" Guid="*">
<File Id="filFF0204DE24B1E61CA373E96456C3DD1E" KeyPath="yes" Source="SourceDir/libfmt.dll"/>
</Component>
<Component Id="cmpFD8287CC0BDBD5F48941708D444EE89D" Guid="*">
<File Id="filB11F5A0634D15D57BB6EC925CE32703D" KeyPath="yes" Source="SourceDir/libfreeglut.dll"/>
</Component>
<Component Id="cmp6E85BD83A86D61B7A1E3149FB16CB014" Guid="*">
<File Id="fil758BA70FDEC25745EEE6D2C8E4EC286C" KeyPath="yes" Source="SourceDir/libgcc_s_seh-1.dll"/>
</Component>
<Component Id="cmp33702A39BC98D258964FBD71D830C9B9" Guid="*">
<File Id="fil9160D8114BF9F8655BB2660B7BD62891" KeyPath="yes" Source="SourceDir/libgfortran-5.dll"/>
</Component>
<Component Id="cmp191A21FBBD7E1A80B0472E8B1EDA1255" Guid="*">
<File Id="fil8760B5872563CC6599C4A61681241134" KeyPath="yes" Source="SourceDir/libjpeg-8.dll"/>
</Component>
<Component Id="cmp8D34D9F7A306600DA2CB21824897B358" Guid="*">
<File Id="fil6E46F55F002FC941822EC3BF5E3967FA" KeyPath="yes" Source="SourceDir/liblapack.dll"/>
</Component>
<Component Id="cmpA7C68176BDED1A04952BF6AC78F5FE21" Guid="*">
<File Id="fil3D0A49550919F794655EA243E079E024" KeyPath="yes" Source="SourceDir/liblzma-5.dll"/>
</Component>
<Component Id="cmp34DD798C24CAFD33C7C4DF299C1F5A38" Guid="*">
<File Id="fil508899D22719B28624F2052A7891600D" KeyPath="yes" Source="SourceDir/libopencv_calib3d452.dll"/>
</Component>
<Component Id="cmp9BD00883985FD04945AA4DEF1B61823D" Guid="*">
<File Id="filCDEB1B6E606C75398508F53080206284" KeyPath="yes" Source="SourceDir/libopencv_core452.dll"/>
</Component>
<Component Id="cmp504FA1A800F8303BD0BB901623B31857" Guid="*">
<File Id="filC245869AA2ED57AC3BA003443A145FC0" KeyPath="yes" Source="SourceDir/libopencv_dnn452.dll"/>
</Component>
<Component Id="cmpE36EE8C704C6A97D831FC81AAC0380F5" Guid="*">
<File Id="fil26C36F102940AAAE64DC2348DE6E64B5" KeyPath="yes" Source="SourceDir/libopencv_face452.dll"/>
</Component>
<Component Id="cmp49BE6C603548CF2FB499E887198241E0" Guid="*">
<File Id="filE7754134D14E2A62750E6687F51FE515" KeyPath="yes" Source="SourceDir/libopencv_features2d452.dll"/>
</Component>
<Component Id="cmp8F056D48931F78E745181EE92D6414E9" Guid="*">
<File Id="fil9F5488E52C4E202FBD3DE91D47A2EFAF" KeyPath="yes" Source="SourceDir/libopencv_flann452.dll"/>
</Component>
<Component Id="cmpD7E60DB0C6B9505AD3E7B65565B7A313" Guid="*">
<File Id="fil6587A5CB6C8757DF2947E130F06835D9" KeyPath="yes" Source="SourceDir/libopencv_highgui452.dll"/>
</Component>
<Component Id="cmpA28EF1662FD7ECAFA8CDEF45AFCA0445" Guid="*">
<File Id="fil747FD253601ED21CD49C121F8CB122EC" KeyPath="yes" Source="SourceDir/libopencv_imgcodecs452.dll"/>
</Component>
<Component Id="cmp86FF379D811D68E9731EE13AEEC3E846" Guid="*">
<File Id="filDAACB19F005BA538B1E2811D136D3392" KeyPath="yes" Source="SourceDir/libopencv_imgproc452.dll"/>
</Component>
<Component Id="cmp18C6FC82AB7491086D439E8C6BB4B352" Guid="*">
<File Id="fil9C8153BB7D0CD9AA6AFA9DF6F7292A61" KeyPath="yes" Source="SourceDir/libopencv_objdetect452.dll"/>
</Component>
<Component Id="cmp04B3A2361350F5F17FEBC08D8A26048E" Guid="*">
<File Id="filD058476071BAED0E7EDD601C79E60AAE" KeyPath="yes" Source="SourceDir/libopencv_videoio452.dll"/>
</Component>
<Component Id="cmp89817E86E2B8AACF8B563C9FF9B7E223" Guid="*">
<File Id="fil88C7A6309D4C6DC1AF4FAF736BE8CE86" KeyPath="yes" Source="SourceDir/libpng16-16.dll"/>
</Component>
<Component Id="cmpAF56FBEA26934FB8F2F089B3DED2FB75" Guid="*">
<File Id="fil2D2038443EE59222EAE20B4C090B629D" KeyPath="yes" Source="SourceDir/libquadmath-0.dll"/>
</Component>
<Component Id="cmpE59D1E680CBF535F052C35C827E48876" Guid="*">
<File Id="fil81BAFA39BBB774C68C653AD0C6F661A1" KeyPath="yes" Source="SourceDir/libssp-0.dll"/>
</Component>
<Component Id="cmpDD049F7326FC8B2AB2F723C261895A3F" Guid="*">
<File Id="fil78FA3D6939714F0FA79DF8953C83EC34" KeyPath="yes" Source="SourceDir/libstdc++-6.dll"/>
</Component>
<Component Id="cmpD0C99F0CF42AAF7CFD21964941AC498B" Guid="*">
<File Id="fil3F11A170F82A67D7E1110080C6044DCB" KeyPath="yes" Source="SourceDir/libtiff-5.dll"/>
</Component>
<Component Id="cmp53FD548358354A0213459B11591C79F5" Guid="*">
<File Id="filF82B968E05DFF980C08685754983EFE9" KeyPath="yes" Source="SourceDir/libwebp-7.dll"/>
</Component>
<Component Id="cmp5648F8ED8EFC91809ECF3B09E70ECFC7" Guid="*">
<File Id="fil5A70AA822BB510BC0A33CDF7FC2B380A" KeyPath="yes" Source="SourceDir/libwinpthread-1.dll"/>
</Component>
<Component Id="cmp279448E7328361008484395BA39D2443" Guid="*">
<File Id="fil9FBEA2F71AAC61508F0126B8E7E82CA5" KeyPath="yes" Source="SourceDir/libzip.dll"/>
</Component>
<Component Id="cmp1F5A4A2169D296F6DD9036E46F2E15CD" Guid="*">
<File Id="filC0FD696F90C7384E3A59729732554553" KeyPath="yes" Source="SourceDir/zlib1.dll"/>
</Component>
</Directory>
</DirectoryRef>
</Fragment>
<Fragment>
<ComponentGroup Id="SharedLibs">
<ComponentRef Id="cmpA290827F995E856CD74D215933C2F5E2"/>
<ComponentRef Id="cmpA04E1FFEBE5AD368BB262EB5BF62C530"/>
<ComponentRef Id="cmp28392322DC42E13C9B2B268E4FAC9767"/>
<ComponentRef Id="cmp36B722012E47433F9A178AE42B6DCBD4"/>
<ComponentRef Id="cmpA2698EEBD1A820D77EFA922EA58EB085"/>
<ComponentRef Id="cmp4345A1AB7F1F905A5805689544F1E545"/>
<ComponentRef Id="cmpFD8287CC0BDBD5F48941708D444EE89D"/>
<ComponentRef Id="cmp6E85BD83A86D61B7A1E3149FB16CB014"/>
<ComponentRef Id="cmp33702A39BC98D258964FBD71D830C9B9"/>
<ComponentRef Id="cmp191A21FBBD7E1A80B0472E8B1EDA1255"/>
<ComponentRef Id="cmp8D34D9F7A306600DA2CB21824897B358"/>
<ComponentRef Id="cmpA7C68176BDED1A04952BF6AC78F5FE21"/>
<ComponentRef Id="cmp34DD798C24CAFD33C7C4DF299C1F5A38"/>
<ComponentRef Id="cmp9BD00883985FD04945AA4DEF1B61823D"/>
<ComponentRef Id="cmp504FA1A800F8303BD0BB901623B31857"/>
<ComponentRef Id="cmpE36EE8C704C6A97D831FC81AAC0380F5"/>
<ComponentRef Id="cmp49BE6C603548CF2FB499E887198241E0"/>
<ComponentRef Id="cmp8F056D48931F78E745181EE92D6414E9"/>
<ComponentRef Id="cmpD7E60DB0C6B9505AD3E7B65565B7A313"/>
<ComponentRef Id="cmpA28EF1662FD7ECAFA8CDEF45AFCA0445"/>
<ComponentRef Id="cmp86FF379D811D68E9731EE13AEEC3E846"/>
<ComponentRef Id="cmp18C6FC82AB7491086D439E8C6BB4B352"/>
<ComponentRef Id="cmp04B3A2361350F5F17FEBC08D8A26048E"/>
<ComponentRef Id="cmp89817E86E2B8AACF8B563C9FF9B7E223"/>
<ComponentRef Id="cmpAF56FBEA26934FB8F2F089B3DED2FB75"/>
<ComponentRef Id="cmpE59D1E680CBF535F052C35C827E48876"/>
<ComponentRef Id="cmpDD049F7326FC8B2AB2F723C261895A3F"/>
<ComponentRef Id="cmpD0C99F0CF42AAF7CFD21964941AC498B"/>
<ComponentRef Id="cmp53FD548358354A0213459B11591C79F5"/>
<ComponentRef Id="cmp5648F8ED8EFC91809ECF3B09E70ECFC7"/>
<ComponentRef Id="cmp279448E7328361008484395BA39D2443"/>
<ComponentRef Id="cmp1F5A4A2169D296F6DD9036E46F2E15CD"/>
</ComponentGroup>
</Fragment>
</Wix>
<!-- generated with msitools 0.101 -->
<!-- wixl-heat -p pkg/ -component-group SharedLibs -directory-ref INSTALLDIR -->