Windows installer
This commit is contained in:
BIN
res/wxsbanner.bmp
Normal file
BIN
res/wxsbanner.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
BIN
res/wxsdialog.bmp
Normal file
BIN
res/wxsdialog.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 601 KiB |
@@ -1,4 +1,8 @@
|
|||||||
if (-not (Test-Path env:APP_VERSION)) { echo "APP_VERSION is not set. Please set it to the version you want to build, like 0.1.6"; exit; }
|
if (-not (Test-Path env:APP_VERSION)) {
|
||||||
|
echo "APP_VERSION is not set. Please set it to the version you want to build";
|
||||||
|
echo '$Env:APP_VERSION = "0.3.0"'
|
||||||
|
exit;
|
||||||
|
}
|
||||||
$target="zec-qt-wallet-v$Env:APP_VERSION"
|
$target="zec-qt-wallet-v$Env:APP_VERSION"
|
||||||
|
|
||||||
echo "Building Installer"
|
echo "Building Installer"
|
||||||
@@ -6,7 +10,12 @@ Remove-Item -Path release/wininstaller -Recurse | Out-Null
|
|||||||
New-Item release/wininstaller -itemtype directory | Out-Null
|
New-Item release/wininstaller -itemtype directory | Out-Null
|
||||||
|
|
||||||
Copy-Item release/$target/zec-qt-wallet.exe release/wininstaller/
|
Copy-Item release/$target/zec-qt-wallet.exe release/wininstaller/
|
||||||
Copy-Item src/scripts/zec-qt-wallet.wxs release/wininstaller/
|
Copy-Item release/$target/LICENSE release/wininstaller/
|
||||||
|
Copy-Item release/$target/README.md release/wininstaller/
|
||||||
|
Copy-Item release/$target/zcashd.exe release/wininstaller/
|
||||||
|
Copy-Item release/$target/zcash-cli.exe release/wininstaller/
|
||||||
|
|
||||||
|
cat src/scripts/zec-qt-wallet.wxs | % { $_ -replace "RELEASE_VERSION", "$Env:APP_VERSION" } > release/wininstaller/zec-qt-wallet.wxs
|
||||||
|
|
||||||
candle.exe release/wininstaller/zec-qt-wallet.wxs -o release/wininstaller/zec-qt-wallet.wixobj
|
candle.exe release/wininstaller/zec-qt-wallet.wxs -o release/wininstaller/zec-qt-wallet.wixobj
|
||||||
light.exe -ext WixUIExtension -cultures:en-us release/wininstaller/zec-qt-wallet.wixobj -out release/wininstaller/zec-qt-wallet.msi
|
light.exe -ext WixUIExtension -cultures:en-us release/wininstaller/zec-qt-wallet.wixobj -out release/wininstaller/zec-qt-wallet.msi
|
||||||
|
|||||||
@@ -1,17 +1,24 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||||
<Product Id="*" Name="zec-qt-wallet v1.0.0.0" Language="1033" Version="1.0.0.0" Manufacturer="zec-qt-wallet-org" UpgradeCode="fb9bf166-b55f-46b5-a990-9189bdf64533">
|
<Product Id="*" Name="zec-qt-wallet vRELEASE_VERSION" Language="1033" Version="RELEASE_VERSION" Manufacturer="zec-qt-wallet-org" UpgradeCode="fb9bf166-b55f-46b5-a990-9189bdf64533">
|
||||||
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
|
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
|
||||||
|
|
||||||
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
|
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
|
||||||
<MediaTemplate EmbedCab="yes"/>
|
<MediaTemplate EmbedCab="yes"/>
|
||||||
|
|
||||||
|
<Icon Id="icon.ico" SourceFile="res/icon.ico"/>
|
||||||
|
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
|
||||||
|
|
||||||
<Feature Id="ProductFeature" Title="zec-qt-wallet" Level="1">
|
<Feature Id="ProductFeature" Title="zec-qt-wallet" Level="1">
|
||||||
<ComponentGroupRef Id="ProductComponents" />
|
<ComponentGroupRef Id="ProductComponents" />
|
||||||
<ComponentRef Id="ProgramMenuDir"/>
|
<ComponentRef Id="ProgramMenuDir"/>
|
||||||
</Feature>
|
</Feature>
|
||||||
|
|
||||||
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
|
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
|
||||||
|
|
||||||
|
<WixVariable Id="WixUIBannerBmp" Value="res/wxsbanner.bmp" />
|
||||||
|
<WixVariable Id="WixUIDialogBmp" Value="res/wxsdialog.bmp" />
|
||||||
|
|
||||||
<UI>
|
<UI>
|
||||||
<UIRef Id="WixUI_InstallDir" />
|
<UIRef Id="WixUI_InstallDir" />
|
||||||
<Publish Dialog="WelcomeDlg"
|
<Publish Dialog="WelcomeDlg"
|
||||||
@@ -49,13 +56,16 @@
|
|||||||
<Fragment>
|
<Fragment>
|
||||||
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
|
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
|
||||||
<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
|
<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
|
||||||
<Component Id="ProductComponent">
|
<Component Id="ProductComponent" Guid="0D210F5A-53E0-4E7E-CAAD-15A26995505E">
|
||||||
<File Source="zec-qt-wallet.exe">
|
<File Source="zec-qt-wallet.exe">
|
||||||
<Shortcut Id="startMenuShotcut" Advertise="yes" Directory="ApplicationProgramsFolder"
|
<Shortcut Id="startMenuShotcut" Advertise="yes" Directory="ApplicationProgramsFolder"
|
||||||
Name="zec-qt-wallet" WorkingDirectory="INSTALLFOLDER" >
|
Name="zec-qt-wallet" WorkingDirectory="INSTALLFOLDER" Icon="icon.ico" >
|
||||||
</Shortcut>
|
</Shortcut>
|
||||||
</File>
|
</File>
|
||||||
<File Source="LICENSE" />
|
<File Source="LICENSE" />
|
||||||
|
<File Source="zcashd.exe" />
|
||||||
|
<File Source="zcash-cli.exe" />
|
||||||
|
<File Source="README.md" />
|
||||||
</Component>
|
</Component>
|
||||||
</ComponentGroup>
|
</ComponentGroup>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
|
|||||||
Reference in New Issue
Block a user