mirror of https://github.com/GNOME/gimp.git
build/windows: Update 'project_subdir' in MSIX following 973c2dd7
Also, drops manual removing of test plug-ins since they willn't be installed at build time for stable versions, I suppose.
This commit is contained in:
parent
e53d6df611
commit
f7c5c5a6e0
|
@ -44,6 +44,13 @@ if (-Not $gimp_app_version)
|
|||
Foreach-Object {$_ -replace '#define GIMP_APP_VERSION "',''} | Foreach-Object {$_ -replace '"',''}
|
||||
}
|
||||
|
||||
## GIMP API version (stable_major.0)
|
||||
if (-Not $gimp_api_version)
|
||||
{
|
||||
$gimp_api_version = Get-Content -Path "$config_path" | Select-String 'GIMP_PKGCONFIG_VERSION "' |
|
||||
Foreach-Object {$_ -replace '#define GIMP_PKGCONFIG_VERSION "',''} | Foreach-Object {$_ -replace '"',''}
|
||||
}
|
||||
|
||||
## GIMP arch folders
|
||||
$vfs_a64 = "$arch_a64\VFS\ProgramFilesX64\GIMP ${gimp_app_version}"
|
||||
$vfs_x64 = "$arch_x64\VFS\ProgramFilesX64\GIMP ${gimp_app_version}"
|
||||
|
@ -131,7 +138,7 @@ Copy-Item -Path "..\..\..\$arch_a64" -Destination "$vfs_a64" -Recurse
|
|||
Copy-Item -Path "..\..\..\$arch_x64" -Destination "$vfs_x64" -Recurse
|
||||
|
||||
## Remove uneeded files (to match the Inno Windows Installer artifact)
|
||||
$omissions = ("include\", "lib\gimp\${gimp_app_version}\plug-ins\test-sphere-v3\", "lib\gimp\${gimp_app_version}\plug-ins\ts-helloworld\", "share\gir-1.0\", "share\man\", "share\vala\", "gimp.cmd", "README.txt")
|
||||
$omissions = ("include\", "share\gir-1.0\", "share\man\", "share\vala\", "gimp.cmd", "README.txt")
|
||||
Set-Location $vfs_a64
|
||||
Remove-Item $omissions -Recurse
|
||||
Set-Location ..\..\..\..\$vfs_x64
|
||||
|
@ -141,7 +148,7 @@ Set-Location ..\..\..\..\
|
|||
## Disable Update check (since the package is auto updated)
|
||||
foreach ($vfs in $vfsArray)
|
||||
{
|
||||
Add-Content $vfs\share\gimp\$gimp_app_version\gimp-release "check-update=false"
|
||||
Add-Content $vfs\share\gimp\$gimp_api_version\gimp-release "check-update=false"
|
||||
}
|
||||
|
||||
## Remove uncompliant files (to fix 'signtool' issues)
|
||||
|
|
Loading…
Reference in New Issue