Merge pull request #4937 from sbwalker/dev

use CompressionEnabled switch to disable static asset compression during publish - eliminates need to cleanup files manually in release.cmd
This commit is contained in:
Shaun Walker 2024-12-20 11:46:52 -05:00 committed by GitHub
commit 655e84072d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 11 deletions

View File

@ -36,17 +36,6 @@ if "%%~nxi" == "%%j" set /A found=1
)
if not !found! == 1 rmdir /Q/S "%%i"
)
del "..\Oqtane.Server\bin\Release\net9.0\publish\Oqtane.Server.staticwebassets.endpoints.json"
del /S "..\Oqtane.Server\bin\Release\net9.0\publish\wwwroot\css\*.br"
del /S "..\Oqtane.Server\bin\Release\net9.0\publish\wwwroot\images\*.br"
del /S "..\Oqtane.Server\bin\Release\net9.0\publish\wwwroot\js\*.br"
del /S "..\Oqtane.Server\bin\Release\net9.0\publish\wwwroot\Modules\*.br"
del /S "..\Oqtane.Server\bin\Release\net9.0\publish\wwwroot\Themes\*.br"
del /S "..\Oqtane.Server\bin\Release\net9.0\publish\wwwroot\css\*.gz"
del /S "..\Oqtane.Server\bin\Release\net9.0\publish\wwwroot\images\*.gz"
del /S "..\Oqtane.Server\bin\Release\net9.0\publish\wwwroot\js\*.gz"
del /S "..\Oqtane.Server\bin\Release\net9.0\publish\wwwroot\Modules\*.gz"
del /S "..\Oqtane.Server\bin\Release\net9.0\publish\wwwroot\Themes\*.gz"
del "..\Oqtane.Server\bin\Release\net9.0\publish\appsettings.json"
ren "..\Oqtane.Server\bin\Release\net9.0\publish\appsettings.release.json" "appsettings.json"
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ".\install.ps1"

View File

@ -19,6 +19,7 @@
<DefineConstants>$(DefineConstants);OQTANE;OQTANE3</DefineConstants>
<PreserveCompilationContext>true</PreserveCompilationContext>
<SatelliteResourceLanguages>none</SatelliteResourceLanguages>
<CompressionEnabled>false</CompressionEnabled>
</PropertyGroup>
<ItemGroup>
<Compile Remove="wwwroot\Modules\Templates\**" />