Skip to content

Commit

Permalink
Build stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Sep 8, 2019
1 parent 6c00b7e commit 0c944a0
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 62 deletions.
41 changes: 0 additions & 41 deletions Gruntfile.js

This file was deleted.

12 changes: 0 additions & 12 deletions package.json

This file was deleted.

5 changes: 2 additions & 3 deletions release.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@echo off
cd src/Skybrud.Social.GitHub
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\msbuild.exe" /t:pack /p:Configuration=Release /p:PackageOutputPath=../../releases/nuget /p:RunBuildTargets=false
cd ../../
grunt
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\msbuild.exe" /t:rebuild /t:pack /p:Configuration=Release /p:BuildTools=1 /p:PackageOutputPath=../../releases/nuget
cd ../../
26 changes: 26 additions & 0 deletions skybrud.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"tasks": {
"postBuild": [
{
"alias": "zip",
"destination": "releases/github/{packageName}.v{version}.zip",
"files": [
{
"source": "src/{packageName}/bin/Release/",
"destination": "bin/",
"patterns": [
"**/*.dll",
"**/*.xml"
]
},
{
"source": "src",
"patterns": [
"LICENSE.html"
]
}
]
}
]
}
}
8 changes: 2 additions & 6 deletions src/Skybrud.Social.GitHub/Skybrud.Social.GitHub.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,8 @@
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Skybrud.Social.GitHub.xml</DocumentationFile>
</PropertyGroup>

<Target Name="PreBuildEvent" BeforeTargets="DispatchToInnerBuilds" Condition="'$(RunBuildTargets)'=='true'">
<Exec Command="&quot;$(SolutionDir)build/Skybrud.Social.PreBuildTool.exe&quot; /date=2015-12-27 /projectPath=&quot;$(SolutionDir)Skybrud.Social.GitHub\Skybrud.Social.GitHub.csproj&quot;" />
</Target>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="mkdir $(ProjectDir)bin\Dev\$(TargetFramework)&#xD;&#xA;xcopy $(ProjectDir)bin\$(ConfigurationName)\$(TargetFramework)\$(TargetName).* $(ProjectDir)bin\Dev\$(TargetFramework)\ /y&#xD;&#xA;&quot;$(ProjectDir)..\build\UpdateAssemblyInfoJson.exe&quot; &quot;$(ProjectPath)&quot; &quot;$(TargetPath)&quot;" />
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(ConfigurationName)'=='Release' AND '$(BuildTools)'=='1'">
<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.

0 comments on commit 0c944a0

Please sign in to comment.