Skip to content

Commit 3b5a2e8

Browse files
committed
Build scripts
1 parent 0f97570 commit 3b5a2e8

File tree

4 files changed

+57
-0
lines changed

4 files changed

+57
-0
lines changed

appveyor.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: 0.5.0.{build}
2+
configuration: Release
3+
dotnet_csproj:
4+
patch: true
5+
file: '**\*.csproj'
6+
version: '{version}'
7+
package_version: '{version}'
8+
assembly_version: '{version}'
9+
file_version: '{version}'
10+
informational_version: '{version}'
11+
build_script:
12+
- cmd: >-
13+
build_all.bat
14+
artifacts:
15+
- path: src/NvgSharp/bin/MonoGame/Release/NvgSharp.MonoGame.$(appveyor_build_version).nupkg
16+
name: NvgSharp.MonoGame.nupkg
17+
18+
- path: src/NvgSharp/bin/FNA/Release/NvgSharp.FNA.$(appveyor_build_version).nupkg
19+
name: NvgSharp.FNA.nupkg
20+
21+
- path: NvgSharp.$(appveyor_build_version).zip
22+
name: ZipPackage
23+
deploy:
24+
- provider: GitHub
25+
release: $(appveyor_build_version)
26+
description: $(appveyor_build_version)
27+
auth_token:
28+
secure: nIpZ5N6iQIXVV8/kK/Y6BqY4KYD+y7HYdq+vTKv+LqZBbxHE9BuEgZAHGVDvmJKh
29+
artifact: ZipPackage
30+
draft: false
31+
prerelease: false
32+
33+
- provider: NuGet
34+
api_key:
35+
secure: o02Abc+1Pg/C7FVPnbCA9i4RIakmOUcKjMBBCHDCbEhS69b+N05mV0xBe0ne2/Y4
36+
artifact: /.*\.nupkg/

build_all.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dotnet --version
2+
dotnet build build\Monogame\NvgSharp.sln /p:Configuration=Release --no-incremental
3+
dotnet build build\FNA\NvgSharp.sln /p:Configuration=Release --no-incremental
4+
call copy_zip_package_files.bat
5+
rename "ZipPackage" "NvgSharp.%APPVEYOR_BUILD_VERSION%"
6+
7z a NvgSharp.%APPVEYOR_BUILD_VERSION%.zip NvgSharp.%APPVEYOR_BUILD_VERSION%

copy_zip_package_files.bat

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
rem delete existing
2+
rmdir "ZipPackage" /Q /S
3+
4+
rem Create required folders
5+
mkdir "ZipPackage"
6+
mkdir "ZipPackage\MonoGame"
7+
mkdir "ZipPackage\FNA"
8+
9+
set "CONFIGURATION=Release\net45"
10+
11+
rem Copy output files
12+
copy "src\NvgSharp\bin\MonoGame\%CONFIGURATION%\NvgSharp.dll" "ZipPackage\MonoGame" /Y
13+
copy "src\NvgSharp\bin\MonoGame\%CONFIGURATION%\NvgSharp.pdb" "ZipPackage\MonoGame" /Y
14+
copy "src\NvgSharp\bin\FNA\%CONFIGURATION%\NvgSharp.dll" "ZipPackage\FNA" /Y
15+
copy "src\NvgSharp\bin\FNA\%CONFIGURATION%\NvgSharp.pdb" "ZipPackage\FNA" /Y

images/nanovg.gif

-948 KB
Loading

0 commit comments

Comments
 (0)