diff --git a/Gruntfile.js b/Gruntfile.js index 92f33f3..9b4e6aa 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -13,35 +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.Essentials.dll', - 'src/' + pkg.name + '/bin/Release/Skybrud.Essentials.xml', - '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']); diff --git a/release.bat b/release.bat new file mode 100644 index 0000000..7c54fd5 --- /dev/null +++ b/release.bat @@ -0,0 +1,5 @@ +@echo off +cd src/Skybrud.Social.Twitter +"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 \ No newline at end of file diff --git a/releases/github/Skybrud.Social.Twitter.v1.0.0-beta004.zip b/releases/github/Skybrud.Social.Twitter.v1.0.0-beta004.zip new file mode 100644 index 0000000..d8cc67a Binary files /dev/null and b/releases/github/Skybrud.Social.Twitter.v1.0.0-beta004.zip differ diff --git a/releases/nuget/Skybrud.Social.Twitter.1.0.0-beta004.nupkg b/releases/nuget/Skybrud.Social.Twitter.1.0.0-beta004.nupkg new file mode 100644 index 0000000..979d24f Binary files /dev/null and b/releases/nuget/Skybrud.Social.Twitter.1.0.0-beta004.nupkg differ diff --git a/src/LICENSE.html b/src/LICENSE.html new file mode 100644 index 0000000..3323899 --- /dev/null +++ b/src/LICENSE.html @@ -0,0 +1,121 @@ + + + + + + Skybrud.Social.Twitter + + + +
+

Skybrud.Social.Twitter

+

The MIT License (MIT)

+ +

+ Copyright © 2018 Anders Bjerner +

+

+ Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: +

+

+ The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +

+

+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. +

+ +
+ + \ No newline at end of file diff --git a/src/Skybrud.Social.Twitter/Properties/AssemblyInfo.json b/src/Skybrud.Social.Twitter/Properties/AssemblyInfo.json index c00dff8..0b28b11 100644 --- a/src/Skybrud.Social.Twitter/Properties/AssemblyInfo.json +++ b/src/Skybrud.Social.Twitter/Properties/AssemblyInfo.json @@ -1,10 +1,10 @@ { "title": "Skybrud.Social.Twitter", "description": "Authentication and service implementation for the Twitter API.", - "company": "Skybrud.dk", + "company": "Skybrud.dk a/s", "product": "Skybrud.Social", "copyright": "Copyright © 2018", "version": "1.0.0.0", - "informationalVersion": "1.0.0-beta003", - "fileVersion": "0.0.2004.16" + "informationalVersion": "1.0.0-beta004", + "fileVersion": "0.0.2008.2" } \ No newline at end of file diff --git a/src/Skybrud.Social.Twitter/Properties/AssemblyInfoGenerated.cs b/src/Skybrud.Social.Twitter/Properties/AssemblyInfoGenerated.cs index 54f7d34..9c77cfa 100644 --- a/src/Skybrud.Social.Twitter/Properties/AssemblyInfoGenerated.cs +++ b/src/Skybrud.Social.Twitter/Properties/AssemblyInfoGenerated.cs @@ -1,4 +1,4 @@ using System.Reflection; -[assembly: AssemblyFileVersion("0.0.2004.16")] +[assembly: AssemblyFileVersion("0.0.2008.2")] diff --git a/src/Skybrud.Social.Twitter/Skybrud.Social.Twitter.csproj b/src/Skybrud.Social.Twitter/Skybrud.Social.Twitter.csproj index 53e149c..4993e07 100644 --- a/src/Skybrud.Social.Twitter/Skybrud.Social.Twitter.csproj +++ b/src/Skybrud.Social.Twitter/Skybrud.Social.Twitter.csproj @@ -8,7 +8,7 @@ Skybrud.Social.Twitter - 1.0.0-beta003 + 1.0.0-beta004 Skybrud.dk a/s Skybrud.Social Anders Bjerner