diff --git a/Oqtane.Package/Oqtane.Framework.nuspec b/Oqtane.Package/Oqtane.Framework.nuspec index 6cb5271d8..1dd4434fc 100644 --- a/Oqtane.Package/Oqtane.Framework.nuspec +++ b/Oqtane.Package/Oqtane.Framework.nuspec @@ -17,12 +17,7 @@ A modular application framework for Blazor - - - - - - - + + \ No newline at end of file diff --git a/Oqtane.Package/install.ps1 b/Oqtane.Package/install.ps1 new file mode 100644 index 000000000..dce82dabc --- /dev/null +++ b/Oqtane.Package/install.ps1 @@ -0,0 +1 @@ +Compress-Archive -Path "..\Oqtane.Server\bin\Release\netcoreapp3.1\publish\*" -DestinationPath "..\Oqtane.Server\bin\Release\Oqtane.Framework.Install.zip" -Force \ No newline at end of file diff --git a/Oqtane.Package/release.cmd b/Oqtane.Package/release.cmd index d70e92ff5..014083b1c 100644 --- a/Oqtane.Package/release.cmd +++ b/Oqtane.Package/release.cmd @@ -1,8 +1,18 @@ del "*.nupkg" dotnet clean -c Release ..\Oqtane.sln dotnet build -c Release ..\Oqtane.sln -dotnet publish ..\Oqtane.Server\Oqtane.Server.csproj /p:Configuration=Release -nuget.exe pack Oqtane.Framework.nuspec nuget.exe pack Oqtane.Client.nuspec nuget.exe pack Oqtane.Server.nuspec nuget.exe pack Oqtane.Shared.nuspec +del /F/Q/S "..\Oqtane.Server\bin\Release\netcoreapp3.1\publish" > NUL +rmdir /Q/S "..\Oqtane.Server\bin\Release\netcoreapp3.1\publish" +dotnet publish ..\Oqtane.Server\Oqtane.Server.csproj /p:Configuration=Release +del "..\Oqtane.Server\bin\Release\netcoreapp3.1\publish\appsettings.json" +ren "..\Oqtane.Server\bin\Release\netcoreapp3.1\publish\appsettings.release.json" "appsettings.json" +C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ".\install.ps1" +del "..\Oqtane.Server\bin\Release\netcoreapp3.1\publish\appsettings.json" +C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ".\upgrade.ps1" +del "..\Oqtane.Server\bin\Release\netcoreapp3.1\publish\Oqtane.Upgrade.*" +nuget.exe pack Oqtane.Framework.nuspec + + diff --git a/Oqtane.Package/upgrade.ps1 b/Oqtane.Package/upgrade.ps1 new file mode 100644 index 000000000..868d188df --- /dev/null +++ b/Oqtane.Package/upgrade.ps1 @@ -0,0 +1 @@ +Compress-Archive -Path "..\Oqtane.Server\bin\Release\netcoreapp3.1\publish\*" -DestinationPath "..\Oqtane.Server\bin\Release\Oqtane.Framework.Upgrade.zip" -Force \ No newline at end of file diff --git a/Oqtane.Server/Oqtane.Server.csproj b/Oqtane.Server/Oqtane.Server.csproj index cfc40988a..9f2c78aae 100644 --- a/Oqtane.Server/Oqtane.Server.csproj +++ b/Oqtane.Server/Oqtane.Server.csproj @@ -51,7 +51,9 @@ + + diff --git a/Oqtane.Server/appsettings.release.json b/Oqtane.Server/appsettings.release.json new file mode 100644 index 000000000..4fe3a03af --- /dev/null +++ b/Oqtane.Server/appsettings.release.json @@ -0,0 +1,15 @@ +{ + "Runtime": "Server", + "ConnectionStrings": { + "DefaultConnection": "" + }, + "Installation": { + "DefaultAlias": "", + "HostPassword": "", + "HostEmail": "", + "SiteTemplate": "", + "DefaultTheme": "", + "DefaultLayout": "", + "DefaultContainer": "" + } +} \ No newline at end of file