Skip to content

Commit

Permalink
#23: Prepare zip packages for PHP/Java bindings and upload them as Ap…
Browse files Browse the repository at this point in the history
…pVeyor build artifacts as well
  • Loading branch information
jumpinjackie committed Jun 21, 2018
1 parent a4d5f72 commit 19df460
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
7 changes: 5 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ install:
test_script:
- envsetupsdk.cmd 3 1 1 9389 c:\swigwin-3.0.12
- cmake_build.cmd c:\projects\mg_bindings_build
- make_archives.cmd
# - build.cmd

artifacts:
- path: c:\projects\mapguide-api-bindings\packages\MapGuideDotNetApi.3.1.1.9389.nupkg
name: NuGetPackage
- path: c:\projects\mapguide-api-bindings\packages\*.nupkg
name: NuGetPackage
- path: c:\projects\mapguide-api-bindings\packages\*.zip
name: Bindings
6 changes: 6 additions & 0 deletions envsetupsdk.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ popd
echo Preparing native binaries for nuget package
copy /y "sdk\%MG_VERSION%\Bin\*.dll" "src\Bindings\DotNet\MapGuideDotNetApi\runtimes\win-x86\native"
copy /y "sdk\%MG_VERSION%\Bin64\*.dll" "src\Bindings\DotNet\MapGuideDotNetApi\runtimes\win-x64\native"
echo Preparing native binaries for PHP extension
copy /y "sdk\%MG_VERSION%\Bin\*.dll" "packages\php\Release\x86"
copy /y "sdk\%MG_VERSION%\Bin64\*.dll" "packages\php\Release\x64"
echo Preparing native binaries for Java binding
copy /y "sdk\%MG_VERSION%\Bin\*.dll" "packages\Java\Release\x86"
copy /y "sdk\%MG_VERSION%\Bin64\*.dll" "packages\Java\Release\x64"

IF "%MG_VERSION%"=="3.3" goto setvcvarsall_2015
IF "%MG_VERSION%"=="3.1" goto setvcvarsall_2015
Expand Down
13 changes: 13 additions & 0 deletions make_archives.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@echo off
pushd packages\Php\Release\x86
7z a ..\..\..\MapGuidePhpApi_%MG_VER_MAJOR%.%MG_VER_MINOR%.%MG_VER_REV%.%MG_VER_BUILD%_x86.zip *.*
popd
pushd packages\Php\Release\x64
7z a ..\..\..\MapGuidePhpApi_%MG_VER_MAJOR%.%MG_VER_MINOR%.%MG_VER_REV%.%MG_VER_BUILD%_x64.zip *.*
popd
pushd packages\Java\Release\x86
7z a ..\..\..\MapGuideJavaApi_%MG_VER_MAJOR%.%MG_VER_MINOR%.%MG_VER_REV%.%MG_VER_BUILD%_x86.zip *.*
popd
pushd packages\Java\Release\x64
7z a ..\..\..\MapGuideJavaApi_%MG_VER_MAJOR%.%MG_VER_MINOR%.%MG_VER_REV%.%MG_VER_BUILD%_x64.zip *.*
popd

0 comments on commit 19df460

Please sign in to comment.