Skip to content

Commit

Permalink
New beta release :D
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Aug 19, 2018
1 parent ff7f902 commit d13a1ad
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 24 deletions.
25 changes: 10 additions & 15 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,28 @@ module.exports = function (grunt) {

grunt.initConfig({
pkg: pkg,
nugetpack: {
release: {
src: 'src/' + pkg.name + '/' + pkg.name + '.csproj',
dest: 'releases/nuget/'
}
},
zip: {
release: {
router: function (filepath) {
return path.basename(filepath);
if (filepath.indexOf('/bin/Release/') >= 0) {
return filepath.split('/bin/Release/')[1];
} else {
return path.basename(filepath);
}
},
src: [
'src/' + pkg.name + '/bin/Release/Skybrud.Social.Core.dll',
'src/' + pkg.name + '/bin/Release/Skybrud.Social.Core.xml',
'src/' + pkg.name + '/bin/Release/' + pkg.name + '.dll',
'src/' + pkg.name + '/bin/Release/' + pkg.name + '.xml',
'src/' + pkg.name + '/LICENSE.txt'
src: [
'src/' + pkg.name + '/bin/Release/*/*.dll',
'src/' + pkg.name + '/bin/Release/*/*.xml',
'src/LICENSE.html'
],
dest: 'releases/github/' + pkg.name + '.v' + version + '.zip'
}
}
});

grunt.loadNpmTasks('grunt-nuget');
grunt.loadNpmTasks('grunt-zip');

grunt.registerTask('release', ['nugetpack', 'zip']);
grunt.registerTask('release', ['zip']);

grunt.registerTask('default', ['release']);

Expand Down
5 changes: 5 additions & 0 deletions release.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@echo off
cd src/Skybrud.Social.Microsoft
"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
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions src/Skybrud.Social.Microsoft/Properties/AssemblyInfo.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"title": "Skybrud.Social.Microsoft",
"description": "Authentication and service implementation for the various Microsoft APIs.",
"company": "Skybrud.dk",
"company": "Skybrud.dk a/s",
"product": "Skybrud.Social",
"copyright": "Copyright © 2015",
"copyright": "Copyright © 2018",
"version": "1.0.0.0",
"informationalVersion": "1.0.0-beta1",
"fileVersion": "0.0.170.3"
"informationalVersion": "1.0.0-beta002",
"fileVersion": "0.0.1073.8"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Reflection;

[assembly: AssemblyFileVersion("0.0.170.3")]
[assembly: AssemblyFileVersion("0.0.1073.8")]

8 changes: 4 additions & 4 deletions src/Skybrud.Social.Microsoft/Skybrud.Social.Microsoft.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

<PropertyGroup>
<RootNamespace>Skybrud.Social.Microsoft</RootNamespace>
<Version>1.0.0-beta001</Version>
<Version>1.0.0-beta002</Version>
<Company>Skybrud.dk a/s</Company>
<Product>Skybrud.Social</Product>
<Authors>Anders Bjerner</Authors>
<Copyright>Copyright © 2017</Copyright>
<Copyright>Copyright © 2018</Copyright>
<Description>Authentication and service implementation for the various Microsoft APIs.</Description>
<RepositoryUrl>https://github.com/abjerner/Skybrud.Social.Microsoft</RepositoryUrl>
</PropertyGroup>
Expand All @@ -39,15 +39,15 @@
</ItemGroup>

<PropertyGroup>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(SolutionName).xml</DocumentationFile>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Skybrud.Social.Microsoft.xml</DocumentationFile>
</PropertyGroup>

<Target Name="PreBuildEvent" BeforeTargets="DispatchToInnerBuilds" Condition="'$(RunBuildTargets)'=='true'">
<Exec Command="&quot;$(SolutionDir)build/Skybrud.Social.PreBuildTool.exe&quot; /date=2015-09-11 /projectPath=&quot;$(SolutionDir)Skybrud.Social.Microsoft\Skybrud.Social.Microsoft.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;$(SolutionDir)build\UpdateAssemblyInfoJson.exe&quot; &quot;$(ProjectPath)&quot; &quot;$(TargetPath)&quot;" />
<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>

</Project>

0 comments on commit d13a1ad

Please sign in to comment.