diff --git a/CHANGELOG.md b/CHANGELOG.md index c2e9125..56a6b25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,4 +4,4 @@ The first version of FeatBit Agent. # v1.0.1 ( 2023-07-21 ) -Remove featbit.ini config +Replace featbit.ini with appsettings.json. diff --git a/src/Api/appsettings.json b/src/Api/appsettings.json new file mode 100644 index 0000000..49625b5 --- /dev/null +++ b/src/Api/appsettings.json @@ -0,0 +1,10 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning", + "Microsoft.EntityFrameworkCore": "Warning" + } + }, + "AllowedHosts": "*" +} \ No newline at end of file diff --git a/src/Api/publish.ps1 b/src/Api/publish.ps1 index 9b0bb32..b5f77a5 100644 --- a/src/Api/publish.ps1 +++ b/src/Api/publish.ps1 @@ -1,4 +1,4 @@ -$publishBaseDir = 'publish' +$publishBaseDir = '../../publish' $platforms = @('win-x64', 'linux-x64', 'osx-x64') if (-not(Test-Path -Path $publishBaseDir -PathType Container)) @@ -13,10 +13,9 @@ foreach ($platform in $platforms) dotnet publish -r $platform -c Release -p:DebugType=none --self-contained true -o "$publishBaseDir/$platform" if ($LASTEXITCODE -ne 0) { + Write-Error "Failed to publish the application for platform $platform" exit 1 } - Set-Location "$publishBaseDir/$platform" - Compress-Archive -Path * -DestinationPath "../featbit_agent_${platform}_${version}.zip" - Set-Location ../../ + Compress-Archive -Path "$publishBaseDir/$platform/*" -DestinationPath "$publishBaseDir/featbit_agent_${platform}_${version}.zip" } \ No newline at end of file