diff --git a/MAX.Core.dll b/MAX.Core.dll index 1f66b0f..2ca4a23 100644 Binary files a/MAX.Core.dll and b/MAX.Core.dll differ diff --git a/MAX.Core.pdb b/MAX.Core.pdb index f671d27..e8b1dd2 100644 Binary files a/MAX.Core.pdb and b/MAX.Core.pdb differ diff --git a/MAX.Framework.dll b/MAX.Framework.dll index d5cffd3..554459e 100644 Binary files a/MAX.Framework.dll and b/MAX.Framework.dll differ diff --git a/MAX.Framework.pdb b/MAX.Framework.pdb index 24c74a2..2673109 100644 Binary files a/MAX.Framework.pdb and b/MAX.Framework.pdb differ diff --git a/Plugins/Store.CloudProduct/Store.CloudProduct.dll b/Plugins/Store.CloudProduct/Store.CloudProduct.dll index 244e9cc..3c71e22 100644 Binary files a/Plugins/Store.CloudProduct/Store.CloudProduct.dll and b/Plugins/Store.CloudProduct/Store.CloudProduct.dll differ diff --git a/Plugins/Store.CloudProduct/Store.CloudProduct.pdb b/Plugins/Store.CloudProduct/Store.CloudProduct.pdb index c405441..ef9bb80 100644 Binary files a/Plugins/Store.CloudProduct/Store.CloudProduct.pdb and b/Plugins/Store.CloudProduct/Store.CloudProduct.pdb differ diff --git a/Plugins/Store.CloudProduct/Store.CloudProduct.runtimeconfig.json b/Plugins/Store.CloudProduct/Store.CloudProduct.runtimeconfig.json index 52c2c3e..3ca7686 100644 --- a/Plugins/Store.CloudProduct/Store.CloudProduct.runtimeconfig.json +++ b/Plugins/Store.CloudProduct/Store.CloudProduct.runtimeconfig.json @@ -13,7 +13,6 @@ } ], "configProperties": { - "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } diff --git a/Plugins/Store.CloudProduct/Store.Plugins.dll b/Plugins/Store.CloudProduct/Store.Plugins.dll index 79f0e19..fbcba48 100644 Binary files a/Plugins/Store.CloudProduct/Store.Plugins.dll and b/Plugins/Store.CloudProduct/Store.Plugins.dll differ diff --git a/Plugins/Store.CloudProduct/Store.Plugins.pdb b/Plugins/Store.CloudProduct/Store.Plugins.pdb index eb4c464..10921a2 100644 Binary files a/Plugins/Store.CloudProduct/Store.Plugins.pdb and b/Plugins/Store.CloudProduct/Store.Plugins.pdb differ diff --git a/Plugins/Store.ImageCache/Store.ImageCache.dll b/Plugins/Store.ImageCache/Store.ImageCache.dll index 4b568db..8b10440 100644 Binary files a/Plugins/Store.ImageCache/Store.ImageCache.dll and b/Plugins/Store.ImageCache/Store.ImageCache.dll differ diff --git a/Plugins/Store.ImageCache/Store.ImageCache.pdb b/Plugins/Store.ImageCache/Store.ImageCache.pdb index 0ce7c00..eae05ad 100644 Binary files a/Plugins/Store.ImageCache/Store.ImageCache.pdb and b/Plugins/Store.ImageCache/Store.ImageCache.pdb differ diff --git a/Plugins/Store.ImageCache/Store.ImageCache.runtimeconfig.json b/Plugins/Store.ImageCache/Store.ImageCache.runtimeconfig.json index 52c2c3e..3ca7686 100644 --- a/Plugins/Store.ImageCache/Store.ImageCache.runtimeconfig.json +++ b/Plugins/Store.ImageCache/Store.ImageCache.runtimeconfig.json @@ -13,7 +13,6 @@ } ], "configProperties": { - "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } diff --git a/Publish.ps1 b/Publish.ps1 new file mode 100644 index 0000000..a153f15 --- /dev/null +++ b/Publish.ps1 @@ -0,0 +1,47 @@ +param( + [ValidateNotNullOrEmpty()] + [string]$Message = ("Publish StoreWeb " + (Get-Date -Format 'yyyy-MM-dd HH:mm:ss')) +) + +$ErrorActionPreference = 'Stop' + +function Invoke-Git { + & git @args + if ($LASTEXITCODE -ne 0) { throw "Git command failed: git $($args[0])" } +} + +Push-Location -LiteralPath $PSScriptRoot +try { + if (!(Test-Path -LiteralPath .git) -or (Invoke-Git branch --show-current) -ne 'main') { + throw 'Run this script from the StoreWeb publish repository on main.' + } + foreach ($file in '.gitignore', 'Store.Api', 'Store.Api.dll', 'Store.Api.deps.json', 'Store.Api.runtimeconfig.json') { + if (!(Test-Path -LiteralPath $file -PathType Leaf)) { throw "Incomplete publish directory: missing $file" } + } + + Invoke-Git add --all + Invoke-Git update-index --chmod=+x Store.Api + $configs = Invoke-Git ls-files -- 'appsettings.json' 'appsettings.*.json' '**/appsettings.json' '**/appsettings.*.json' + $ignored = Invoke-Git ls-files --cached --ignored --exclude-standard + if ($configs -or $ignored) { throw 'The index contains configuration or ignored files. Check git status before publishing.' } + + & git diff --cached --quiet --exit-code + switch ($LASTEXITCODE) { + 0 { + if ((Invoke-Git rev-parse HEAD) -eq (Invoke-Git rev-parse origin/main)) { + Write-Host 'No changes to publish.' + return + } + } + 1 { Invoke-Git commit -m $Message } + default { throw 'Cannot inspect staged changes.' } + } + + # A commit-based tag makes a failed push safe to retry. + $tag = 'release-' + (Invoke-Git rev-parse --short=12 HEAD) + Invoke-Git push --atomic origin main "HEAD:refs/tags/$tag" + Write-Host "Published $tag" +} +finally { + Pop-Location +} diff --git a/Store.Api.dll b/Store.Api.dll index 29a52c2..ff47fca 100644 Binary files a/Store.Api.dll and b/Store.Api.dll differ diff --git a/Store.Api.pdb b/Store.Api.pdb index 227f27c..6dd0f7f 100644 Binary files a/Store.Api.pdb and b/Store.Api.pdb differ diff --git a/Store.Framework.dll b/Store.Framework.dll index afde215..2a31756 100644 Binary files a/Store.Framework.dll and b/Store.Framework.dll differ diff --git a/Store.Framework.pdb b/Store.Framework.pdb index ad4a913..6437fd8 100644 Binary files a/Store.Framework.pdb and b/Store.Framework.pdb differ diff --git a/Store.Shops.Contracts.dll b/Store.Shops.Contracts.dll index 5654ffa..1039405 100644 Binary files a/Store.Shops.Contracts.dll and b/Store.Shops.Contracts.dll differ diff --git a/Store.Shops.Contracts.pdb b/Store.Shops.Contracts.pdb index da18835..227aacb 100644 Binary files a/Store.Shops.Contracts.pdb and b/Store.Shops.Contracts.pdb differ diff --git a/Store.Shops.dll b/Store.Shops.dll index 430c633..8a6efcc 100644 Binary files a/Store.Shops.dll and b/Store.Shops.dll differ diff --git a/Store.Shops.pdb b/Store.Shops.pdb index 6c7a6cd..00eb163 100644 Binary files a/Store.Shops.pdb and b/Store.Shops.pdb differ diff --git a/Store.Users.dll b/Store.Users.dll index e295994..8e35548 100644 Binary files a/Store.Users.dll and b/Store.Users.dll differ diff --git a/Store.Users.pdb b/Store.Users.pdb index 4360625..6e014ca 100644 Binary files a/Store.Users.pdb and b/Store.Users.pdb differ