From c29b43c46789b5eefaa232bdcd3f4afe795a8fc9 Mon Sep 17 00:00:00 2001 From: troyeguo <13820674+troyeguo@users.noreply.github.com> Date: Thu, 8 Apr 2021 22:01:55 +0800 Subject: [PATCH] fix bug Former-commit-id: 5e0733aaf4e067f57f3568b98c780401b1e7fb92 --- appveyor.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 62337b04..d6bd52f0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,8 +5,8 @@ branches: - master image: - - Visual Studio 2019 - - macos + # - Visual Studio 2019 + # - macos - Ubuntu stack: node 10 @@ -23,8 +23,7 @@ init: if [ "${APPVEYOR_BUILD_WORKER_IMAGE}" == "Ubuntu" ] then sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils - sudo apt-get -y install snapd - sudo snap -y install snapcraft --classic + sudo apt-get install snapd fi install: @@ -32,6 +31,18 @@ install: - npm install - node --version +before_build: + - node --version + - npm --version + # Get new $SNAP_TOKEN with: + # $ snapcraft export-login --snaps bw --acls package_push,package_release - + - sh: | + if [ "${SNAP_TOKEN}" != "" ] + then + sudo snap install snapcraft --classic + echo "$SNAP_TOKEN" | snapcraft login --with - + fi + build_script: - npm run release