mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-22 09:18:18 +00:00
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:
committed by
Philipp Wolfer
parent
7b7f709e88
commit
c3477bc326
BIN
resources/win10/Square44x44Logo.targetsize-44.png
Normal file
BIN
resources/win10/Square44x44Logo.targetsize-44.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user