Skip to content

Commit

Permalink
Build stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Jul 4, 2019
1 parent 26d8b10 commit 68a0f61
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 4 deletions.
4 changes: 4 additions & 0 deletions release.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
cd src/Skybrud.Umbraco.Redirects
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\msbuild.exe" /t:rebuild /t:pack /p:Configuration=Release /p:PackageOutputPath=../../releases/nuget
cd ../../
35 changes: 35 additions & 0 deletions skybrud.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"tasks": {
"postBuild": [
{
"alias": "zip",
"destination": "releases/github/{packageName}.v{version}.zip",
"files": [
{
"source": "src/{packageName}/bin/Release/net472/",
"destination": "bin/",
"patterns": [
"{packageName}.dll",
"{packageName}.xml",
"Skybrud.Essentials.dll",
"Skybrud.Essentials.xml",
"Skybrud.WebApi.Json.dll",
"Skybrud.WebApi.Json.xml"
]
},
{
"source": "src/{packageName}/App_Plugins/Skybrud.Umbraco.Redirects",
"destination": "App_Plugins/Skybrud.Umbraco.Redirects/",
"patterns": [
"**/*.js",
"**/*.css",
"**/*.html",
"**/*.xml",
"package.manifest"
]
}
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PropertyGroup>
<PackageId>Skybrud.Umbraco.Redirects</PackageId>
<PackageTags>Umbraco, Redirects, 301, Content, Url</PackageTags>
<PackageLicenseUrl>https://github.com/skybrud/Skybrud.Umbraco.Redirects/blob/master/LICENSE.md</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/skybrud/Skybrud.Umbraco.Redirects</PackageProjectUrl>
<PackageIconUrl>http://www.skybrud.dk/img/5431sk/icon/favicon.ico</PackageIconUrl>
<RepositoryType>git</RepositoryType>
Expand All @@ -41,5 +41,9 @@
<Content Include="App_Plugins\Skybrud.Umbraco.Redirects\Lang\*.xml" />
<Content Include="App_Plugins\Skybrud.Umbraco.Redirects\package.manifest" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(ConfigurationName)'=='Release'">
<Exec Command="&quot;$(ProjectDir)..\build\Skybrud.BuildTools.Tasks.exe&quot; &quot;postBuild&quot; &quot;$(ConfigurationName)&quot; &quot;$(ProjectPath)&quot; &quot;$(TargetPath)&quot;" />
</Target>

</Project>
Binary file modified src/build/Newtonsoft.Json.dll
Binary file not shown.
Binary file added src/build/Skybrud.BuildTools.Tasks.exe
Binary file not shown.
Binary file added src/build/Skybrud.Essentials.dll
Binary file not shown.
Binary file removed src/build/Skybrud.Social.PreBuildTool.exe
Binary file not shown.
Binary file removed src/build/UpdateAssemblyInfoJson.exe
Binary file not shown.
3 changes: 0 additions & 3 deletions src/build/release.bat

This file was deleted.

0 comments on commit 68a0f61

Please sign in to comment.