代码拉取完成,页面将自动刷新
image: Visual Studio 2017
platform: x86
configuration: Release
init:
- tzutil /s "Mountain Standard Time"
- ps: '[System.TimeZoneInfo]::ClearCachedData()'
- ps: $env:my_fulldate = Get-Date -Format g
- ps: if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) { $env:is_not_pr = "true"; } else {$env:is_not_pr = "false";}
install:
- ps: Import-Module .\Scripts\Appveyor.ps1
- ps: Invoke-UpdateAppveyorVersion
- ps: Invoke-UpdateAssemblyVersion
- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- vcpkg install sdl2:x86-windows zlib:x86-windows freetype:x86-windows libjpeg-turbo:x86-windows libpng:x86-windows dirent:x86-windows libiconv:x86-windows
- vcpkg integrate install
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule init
- git submodule update
- git clone https://github.com/emscripten-core/emsdk.git --depth 1 c:\emsdk
- cd c:\emsdk
- emsdk install latest
- emsdk activate latest
- emsdk_env.bat
- cd %APPVEYOR_BUILD_FOLDER%
- set NODE_OPTIONS=--max_old_space_size=4096
cache: c:\tools\vcpkg\installed\
build_script:
- nuget restore WasmWinforms.sln
- ps: msbuild WasmWinforms.sln /p:Configuration=WasmRel /p:Platform=x86 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- ps: msbuild WasmWinforms.sln /p:Configuration=Release /p:Platform=x86 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- dir %APPVEYOR_BUILD_FOLDER%\Output\bin\x86\Release
- nuget pack %APPVEYOR_BUILD_FOLDER%\Output\bin\x86\Release\Winforms.Wasm.nuspec -properties version=%APPVEYOR_BUILD_VERSION%
artifacts:
- path: '*.nupkg'
name: nuget package
#
# ------ End of shared configs -------------------
#
# ------ Individual configs start from here ------
# ------------------------------------------------
# configuration for prod branch
# Will enforce it
for:
-
version: 1.0.julian.{build}
#this section is added to previous section
deploy:
- provider: NuGet
server: https://www.nuget.org
api_key:
secure: Pzomenosg6JoLjvRbvOeQ4WcoOEMC5+NFfEgeYNScPCu4q8dG7z5uJlFVQF9E5DK
skip_symbols: true
artifact: nuget package
branches:
only:
- prod
# ------------------------------------------------
# configuration for master branch
# This is master branch
# publishes to AppveyorAgent and Github Releases
-
version: 0.8.julian.{build}
branches:
only:
- master
# ------------------------------------------------
# "fall back" configuration for all other branches
# no "branches" section defined
# nothing is published from feature branches
-
version: 0.1.0.julian-{build}-branch
skip_branch_with_pr: true
deploy: off
build : off
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。