PICARD-1669: Use "unplated" taskbar icon for MSIX package

This will Windows use the unmodified Picard icon in the taskbar instead of automatically adding a padding and background. This does not affect the appearance of the start menu tiles.

See https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-manual-conversion#optional-add-target-based-unplated-assets
This commit is contained in:
Philipp Wolfer
2019-11-18 20:06:33 +01:00
committed by Philipp Wolfer
parent 7b7f709e88
commit c3477bc326
3 changed files with 13 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -29,13 +29,23 @@ ThrowOnExeError "setup.py build_ext -i failed"
Write-Output "Building Windows installer..."
pyinstaller --noconfirm --clean picard.spec 2>&1 | %{ "$_" }
ThrowOnExeError "PyInstaller failed"
FinalizePackage dist\picard
$PackageDir = (Resolve-Path dist\picard)
FinalizePackage $PackageDir
# Generate resource files
Copy-Item appxmanifest.xml $PackageDir
$PriConfigFile = (Join-Path (Resolve-Path .\build) priconfig.xml)
Push-Location $PackageDir
MakePri createconfig /ConfigXml $PriConfigFile /Default en-US /Overwrite
ThrowOnExeError "MakePri createconfig failed"
MakePri new /ProjectRoot $PackageDir /ConfigXml $PriConfigFile
ThrowOnExeError "MakePri new failed"
Pop-Location
# Generate msix package
$PicardVersion = (python -c "import picard; print(picard.__version__)")
$PackageFile = "dist\MusicBrainz Picard $PicardVersion.msix"
Copy-Item appxmanifest.xml dist\picard
MakeAppx pack /o /h SHA256 /d dist\picard\ /p $PackageFile
MakeAppx pack /o /h SHA256 /d $PackageDir /p $PackageFile
ThrowOnExeError "MakeAppx failed"
# Sign package