build/windows: Fix Start Menu and alias clashes with "GIMP (Insider)" MSIX

This commit is contained in:
Bruno Lopes 2025-05-24 15:07:17 -03:00
parent 5918e2b4d3
commit e019f1cce3
No known key found for this signature in database
2 changed files with 8 additions and 7 deletions

View file

@ -229,15 +229,16 @@ foreach ($bundle in $supported_archs)
(Get-Content $msix_arch\AppxManifest.xml) | Foreach-Object {$_ -replace "@CUSTOM_GIMP_VERSION@","$CUSTOM_GIMP_VERSION"} |
Set-Content $msix_arch\AppxManifest.xml
### Set GIMP mutex version (major.minor or major)
if ($GIMP_UNSTABLE)
if (-not $GIMP_RELEASE -or $GIMP_IS_RC_GIT)
{
$gimp_mutex_version="$GIMP_APP_VERSION"
$channel_suffix=" (Insider)"
}
else
{
$gimp_mutex_version="$major"
$mutex_suffix="-$GIMP_MUTEX_VERSION"
}
(Get-Content $msix_arch\AppxManifest.xml) | Foreach-Object {$_ -replace "@GIMP_MUTEX_VERSION@","$gimp_mutex_version"} |
(Get-Content $msix_arch\AppxManifest.xml) | Foreach-Object {$_ -replace "@GIMP_MUTEX_VERSION@","$GIMP_MUTEX_VERSION"} |
Foreach-Object {$_ -replace "@CHANNEL_SUFFIX@","$channel_suffix"} | Foreach-Object {$_ -replace "@MUTEX_SUFFIX@","$mutex_suffix"} |
Set-Content $msix_arch\AppxManifest.xml
### Match supported filetypes
$file_types = Get-Content 'build\windows\installer\data_associations.list' | Foreach-Object {" <uap:FileType>." + $_} |

View file

@ -29,8 +29,8 @@
<Resource uap:Scale="400" />
</Resources>
<Applications>
<Application Id="GIMP" Executable="VFS\ProgramFilesX64\GIMP\bin\gimp-@GIMP_MUTEX_VERSION@.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements DisplayName="GIMP @GIMP_MUTEX_VERSION@" Description="GNU Image Manipulation Program" BackgroundColor="transparent" Square150x150Logo="Assets\MedTile.png" Square44x44Logo="Assets\AppList.png">
<Application Id="GIMP" Executable="VFS\ProgramFilesX64\GIMP\bin\gimp@MUTEX_SUFFIX@.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements DisplayName="GIMP @GIMP_MUTEX_VERSION@@CHANNEL_SUFFIX@" Description="GNU Image Manipulation Program" BackgroundColor="transparent" Square150x150Logo="Assets\MedTile.png" Square44x44Logo="Assets\AppList.png">
<uap:DefaultTile Wide310x150Logo="Assets\WideTile.png" Square310x310Logo="Assets\LargeTile.png" Square71x71Logo="Assets\SmallTile.png">
<uap:ShowNameOnTiles>
<uap:ShowOn Tile="square150x150Logo" />
@ -67,7 +67,7 @@
</uap:Extension>
<uap5:Extension Category="windows.appExecutionAlias" EntryPoint="Windows.FullTrustApplication">
<uap5:AppExecutionAlias>
<uap5:ExecutionAlias Alias="gimp-@GIMP_MUTEX_VERSION@.exe"/>
<uap5:ExecutionAlias Alias="gimp@MUTEX_SUFFIX@.exe"/>
</uap5:AppExecutionAlias>
</uap5:Extension>
</Extensions>