mirror of https://github.com/SixLabors/ImageSharp
76 changed files with 293 additions and 60 deletions
@ -0,0 +1,15 @@ |
|||
# to create a new package you create a new release/tag |
|||
# in github appveyor will build it without the -cixxx tag |
|||
# it will then be deployable cleanly to nuget.org |
|||
|
|||
next-version: 1.0.0 |
|||
legacy-semver-padding: 6 |
|||
branches: |
|||
master: |
|||
tag: alpha- |
|||
mode: ContinuousDeployment |
|||
increment: Minor |
|||
prevent-increment-of-merged-branch-version: false |
|||
track-merge-target: true |
|||
ignore: |
|||
sha: [] |
|||
@ -0,0 +1,37 @@ |
|||
|
|||
|
|||
@echo Off |
|||
ECHO Starting build |
|||
|
|||
call build\config.cmd |
|||
|
|||
ECHO Restoring packages |
|||
for %%s in (%projects%) do dotnet restore %%s |
|||
|
|||
call build\update-versions.cmd |
|||
|
|||
set buildRoot="%~dp0" |
|||
SET cli=dotnet pack --configuration Release --output "artifacts\bin\ImageSharp" |
|||
where gitversion |
|||
if not "%errorlevel%"=="0" ( |
|||
REM gitversion was not availible lets make a local build |
|||
SET cli=%cli% --version-suffix "local-build" |
|||
) |
|||
|
|||
ECHO Building packages |
|||
for %%s in (%projects%) do %cli% %%s |
|||
|
|||
REM reset local version numbers |
|||
call build\reset-versions.cmd |
|||
|
|||
:success |
|||
ECHO successfully built project |
|||
REM exit 0 |
|||
goto end |
|||
|
|||
:failure |
|||
ECHO failed to build. |
|||
REM exit -1 |
|||
goto end |
|||
|
|||
:end |
|||
@ -1,13 +0,0 @@ |
|||
var jsonfile = require("jsonfile"); |
|||
var semver = require("semver"); |
|||
|
|||
var file = "../src/imagesharp/project.json"; |
|||
|
|||
var semversion = semver.valid(process.env.mssemver); |
|||
|
|||
jsonfile.readFile(file, function (err, project) { |
|||
project.version = semversion; |
|||
jsonfile.writeFile(file, project, {spaces: 2}, function(err) { |
|||
console.error(err); |
|||
}); |
|||
}) |
|||
@ -1,17 +0,0 @@ |
|||
$version=[Version]$Env:APPVEYOR_BUILD_VERSION |
|||
$version_suffix=$Env:version_suffix |
|||
|
|||
$basever=$version.Major.ToString() + "." + $version.Minor.ToString() + "." + $version.Build.ToString() |
|||
|
|||
$semver = $basever + "-" + $version_suffix + "." + $version.Revision.ToString().PadLeft(6,"0") |
|||
$mssemver = $basever + "-" + $version_suffix + "-" + $version.Revision.ToString().PadLeft(6,"0") |
|||
$appveyor_version = $mssemver |
|||
|
|||
$Env:semver = $semver |
|||
$Env:mssemver = $mssemver |
|||
$Env:appveyor_version = $appveyor_version |
|||
$Env:ms_file_version = $version.ToString() |
|||
|
|||
"Envrionment variable 'semver' set:" + $Env:semver |
|||
"Envrionment variable 'mssemver' set:" + $Env:mssemver |
|||
"Envrionment variable 'appveyor_version' set:" + $Env:appveyor_version |
|||
@ -0,0 +1,8 @@ |
|||
@echo Off |
|||
REM ====================== |
|||
REM = Configure settings = |
|||
|
|||
REM Space seperated list of projects to version and package |
|||
SET projects=".\src\ImageSharp" ".\src\ImageSharp.Drawing" |
|||
|
|||
REM ====================== |
|||
@ -1,6 +0,0 @@ |
|||
{ |
|||
"dependencies": { |
|||
"jsonfile": "^2.2.3", |
|||
"semver": "^5.0.3" |
|||
} |
|||
} |
|||
@ -0,0 +1,25 @@ |
|||
|
|||
|
|||
@echo Off |
|||
REM include project configs |
|||
call %~dp0\config.cmd |
|||
|
|||
set buildRoot="%cd%" |
|||
|
|||
ECHO Reseting build version numbers |
|||
for %%s in (%projects%) do ( |
|||
cd %%s |
|||
ECHO %GitVersion_NuGetVersion% |
|||
dotnet version "1.0.0-*" |
|||
cd %buildRoot% |
|||
) |
|||
|
|||
:success |
|||
REM exit 0 |
|||
goto end |
|||
|
|||
:failure |
|||
REM exit -1 |
|||
goto end |
|||
|
|||
:end |
|||
@ -0,0 +1,41 @@ |
|||
|
|||
|
|||
@echo Off |
|||
REM include project configs |
|||
call %~dp0\config.cmd |
|||
|
|||
REM gitversion not already been set in this build |
|||
if "%GitVersion_NuGetVersion%" == "" ( |
|||
rem can I call gitversion |
|||
where gitversion |
|||
if "%errorlevel%"=="0" ( |
|||
REM call gitversion and then recall this build script with the envArgs set |
|||
ECHO calculating correct version number |
|||
|
|||
REM call this file from itself with the args set |
|||
gitversion /output buildserver /exec "%~dp0\update-versions.cmd" |
|||
|
|||
REM we looped skip to the end |
|||
goto end |
|||
) |
|||
) |
|||
|
|||
set buildRoot="%cd%" |
|||
|
|||
ECHO Updating build version numbers |
|||
for %%s in (%projects%) do ( |
|||
cd %%s |
|||
ECHO %GitVersion_NuGetVersion% |
|||
dotnet version %GitVersion_NuGetVersion% |
|||
cd %buildRoot% |
|||
) |
|||
|
|||
:success |
|||
REM exit 0 |
|||
goto end |
|||
|
|||
:failure |
|||
REM exit -1 |
|||
goto end |
|||
|
|||
:end |
|||
@ -0,0 +1,25 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup> |
|||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> |
|||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> |
|||
</PropertyGroup> |
|||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> |
|||
<PropertyGroup Label="Globals"> |
|||
<ProjectGuid>2e33181e-6e28-4662-a801-e2e7dc206029</ProjectGuid> |
|||
<RootNamespace>ImageSharp.Drawing</RootNamespace> |
|||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> |
|||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> |
|||
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion> |
|||
</PropertyGroup> |
|||
<PropertyGroup> |
|||
<SchemaVersion>2.0</SchemaVersion> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
|||
<ProduceOutputsOnBuild>True</ProduceOutputsOnBuild> |
|||
</PropertyGroup> |
|||
<ItemGroup> |
|||
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" /> |
|||
</ItemGroup> |
|||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" /> |
|||
</Project> |
|||
@ -0,0 +1,40 @@ |
|||
// <copyright file="AssemblyInfo.cs" company="James Jackson-South">
|
|||
// Copyright (c) James Jackson-South and contributors.
|
|||
// Licensed under the Apache License, Version 2.0.
|
|||
// </copyright>
|
|||
|
|||
using System.Reflection; |
|||
using System.Resources; |
|||
using System.Runtime.CompilerServices; |
|||
|
|||
// General Information about an assembly is controlled through the following
|
|||
// set of attributes. Change these attribute values to modify the information
|
|||
// associated with an assembly.
|
|||
[assembly: AssemblyTitle("ImageSharp")] |
|||
[assembly: AssemblyDescription("A cross-platform library for processing of image files; written in C#")] |
|||
[assembly: AssemblyConfiguration("")] |
|||
[assembly: AssemblyCompany("James Jackson-South")] |
|||
[assembly: AssemblyProduct("ImageSharp")] |
|||
[assembly: AssemblyCopyright("Copyright (c) James Jackson-South and contributors.")] |
|||
[assembly: AssemblyTrademark("")] |
|||
[assembly: AssemblyCulture("")] |
|||
[assembly: NeutralResourcesLanguage("en")] |
|||
|
|||
// Version information for an assembly consists of the following four values:
|
|||
//
|
|||
// Major Version
|
|||
// Minor Version
|
|||
// Build Number
|
|||
// Revision
|
|||
//
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
|||
// by using the '*' as shown below:
|
|||
// [assembly: AssemblyVersion("1.0.*")]
|
|||
[assembly: AssemblyVersion("1.0.0.0")] |
|||
[assembly: AssemblyFileVersion("1.0.0.0")] |
|||
[assembly: AssemblyInformationalVersion("1.0.0.0")] |
|||
|
|||
// Ensure the internals can be tested.
|
|||
[assembly: InternalsVisibleTo("ImageSharp.Benchmarks")] |
|||
[assembly: InternalsVisibleTo("ImageSharp.Tests")] |
|||
[assembly: InternalsVisibleTo("ImageSharp.Tests46")] |
|||
@ -0,0 +1,78 @@ |
|||
{ |
|||
"version": "1.0.0-*", |
|||
"title": "ImageSharp.Drawing", |
|||
"description": "A cross-platform library for the processing of image files; written in C#", |
|||
"authors": [ |
|||
"James Jackson-South and contributors" |
|||
], |
|||
"packOptions": { |
|||
"owners": [ |
|||
"James Jackson-South and contributors" |
|||
], |
|||
"projectUrl": "https://github.com/JimBobSquarePants/ImageSharp", |
|||
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0", |
|||
"iconUrl": "https://raw.githubusercontent.com/JimBobSquarePants/ImageSharp/master/build/icons/imagesharp-logo-128.png", |
|||
"requireLicenseAcceptance": false, |
|||
"repository": { |
|||
"type": "git", |
|||
"url": "https://github.com/JimBobSquarePants/ImageSharp" |
|||
}, |
|||
"tags": [ |
|||
"Image Resize Crop Gif Jpg Jpeg Bitmap Png Core" |
|||
] |
|||
}, |
|||
"buildOptions": { |
|||
"allowUnsafe": true, |
|||
"xmlDoc": true, |
|||
"additionalArguments": [ |
|||
"/additionalfile:stylecop.json" |
|||
] |
|||
}, |
|||
"configurations": { |
|||
"Release": { |
|||
"buildOptions": { |
|||
"warningsAsErrors": true, |
|||
"optimize": true |
|||
} |
|||
} |
|||
}, |
|||
"dependencies": { |
|||
"ImageSharp": "1.0.0-*", |
|||
"StyleCop.Analyzers": { |
|||
"version": "1.0.0", |
|||
"type": "build" |
|||
}, |
|||
"System.Buffers": "4.0.0", |
|||
"System.Numerics.Vectors": "4.1.1", |
|||
"System.Runtime.CompilerServices.Unsafe": "4.0.0" |
|||
}, |
|||
"frameworks": { |
|||
"netstandard1.1": { |
|||
"dependencies": { |
|||
"System.Collections": "4.0.11", |
|||
"System.Diagnostics.Debug": "4.0.11", |
|||
"System.Diagnostics.Tools": "4.0.1", |
|||
"System.IO": "4.1.0", |
|||
"System.IO.Compression": "4.1.0", |
|||
"System.Linq": "4.1.0", |
|||
"System.ObjectModel": "4.0.12", |
|||
"System.Resources.ResourceManager": "4.0.1", |
|||
"System.Runtime.Extensions": "4.1.0", |
|||
"System.Runtime.InteropServices": "4.1.0", |
|||
"System.Runtime.Numerics": "4.0.1", |
|||
"System.Text.Encoding.Extensions": "4.0.11", |
|||
"System.Threading": "4.0.11", |
|||
"System.Threading.Tasks": "4.0.11", |
|||
"System.Threading.Tasks.Parallel": "4.0.1" |
|||
} |
|||
}, |
|||
"net45": { |
|||
"dependencies": { |
|||
"System.Runtime": "4.0.0" |
|||
} |
|||
} |
|||
}, |
|||
"tools": { |
|||
"dotnet-version": "1.1.0" |
|||
} |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
{ |
|||
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", |
|||
"settings": { |
|||
"documentationRules": { |
|||
"companyName": "James Jackson-South", |
|||
"copyrightText": "Copyright (c) James Jackson-South and contributors.\nLicensed under the Apache License, Version 2.0." |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue