Skip to content

Commit

Permalink
Added compilation in MSI builder, added MSI to LFS ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
okynos committed Dec 11, 2022
1 parent 1b82c22 commit 03d5115
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.rpm filter=lfs diff=lfs merge=lfs -text
*.deb filter=lfs diff=lfs merge=lfs -text
*.msi filter=lfs diff=lfs merge=lfs -text
7 changes: 7 additions & 0 deletions pkg/msi/builder.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
$version = (gc ..\..\Cargo.toml | findstr "version" | select -First 1).split(" ")[2].trim("`"", " ")

cd ..\..\
cargo build --release
cd pkg\msi

cp ..\..\target\release\fim.exe .\
cp ..\..\config\windows\config.yml .\

Invoke-Expression "& `"C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe`" .\fim.wxs -o .\fim.wixobj"

Invoke-Expression "& `"C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe`" -ext WixUIExtension .\fim.wixobj -o fim-$version-1-x64.msi"
Expand Down

0 comments on commit 03d5115

Please sign in to comment.