Automatically detect version number from Cargo.toml
This commit is contained in:
parent
6df085106d
commit
c1b9b59a5f
1 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Get-ChildItem "Cargo.toml" | % {
|
||||||
|
$conf = $_ | Get-Content -raw
|
||||||
|
$conf -match 'version\s+=\s+"(.*)"' | out-null
|
||||||
|
$POLARIS_VERSION = $matches[1]
|
||||||
|
}
|
||||||
|
|
||||||
"Compiling resource file"
|
"Compiling resource file"
|
||||||
RC /fo res\windows\application\application.res res\windows\application\application.rc
|
RC /fo res\windows\application\application.res res\windows\application\application.rc
|
||||||
|
|
||||||
|
@ -21,8 +27,8 @@ Copy-Item .\web\ .\release\tmp\ -recurse
|
||||||
|
|
||||||
""
|
""
|
||||||
"Creating installer"
|
"Creating installer"
|
||||||
candle -wx -ext WixUtilExtension -arch x64 -out .\release\tmp\installer.wixobj .\res\windows\installer\installer.wxs
|
candle -wx -ext WixUtilExtension -arch x64 -out .\release\tmp\installer.wixobj .\res\windows\installer\installer.wxs
|
||||||
light -wx -ext WixUtilExtension -ext WixUIExtension -spdb -sw1076 -out .\release\Polaris_0.6.0.msi .\release\tmp\installer.wixobj
|
light -wx -ext WixUtilExtension -ext WixUIExtension -spdb -sw1076 -out .\release\Polaris_$POLARIS_VERSION.msi .\release\tmp\installer.wixobj
|
||||||
|
|
||||||
"Cleaning up"
|
"Cleaning up"
|
||||||
Remove-Item -Recurse .\release\tmp
|
Remove-Item -Recurse .\release\tmp
|
||||||
|
|
Loading…
Add table
Reference in a new issue