Fix some windows packaging commands

This commit is contained in:
Epicalert 2021-09-22 01:24:22 +08:00
parent b8a8b8d1a3
commit af8c3b5db9
No known key found for this signature in database
GPG key ID: CAA46F858D0979BD

View file

@ -97,20 +97,20 @@ make -j4
```
mkdir SourceDir
cp -r *.exe lib/Boxer/libBoxer.dll ../packaging/*.ico models/ cvdata/ SourceDir/
cp -r *.exe libs/Boxer/libBoxer.dll ../packaging/*.ico models/ cvdata/ SourceDir/
```
6. Use a utility like peldd to find and copy the DLLs needed
```
for lib in $(peldd -t -r --clear-path -p /usr/x86_64-w64-mingw32/bin -w OPENGL32.dll -w libBoxer.dll fc2d.exe)
for lib in $(peldd -t -r -w OPENGL32.dll -w libBoxer.dll fc2d.exe)
cp $lib SourceDir
for lib in $(peldd -t -r --clear-path -p /usr/x86_64-w64-mingw32/bin fc2dconfig.exe)
for lib in $(peldd -t -r fc2dconfig.exe)
cp $lib SourceDir
```
7. Create MSI package with `wixl`
```
wixl ../packaging/*.wx* -o facecam2d-$(git describe).msi
wixl ../packaging/*.wx(s|i) -o facecam2d-$(git describe).msi
```