update pipeline-build-20220901.yml
This commit is contained in:
parent
73b82e0822
commit
4ccf7ba00d
@ -22,9 +22,22 @@ stages:
|
|||||||
displayName: Nodejs 构建
|
displayName: Nodejs 构建
|
||||||
nodeVersion: 16.14.2
|
nodeVersion: 16.14.2
|
||||||
commands:
|
commands:
|
||||||
|
- '# 设置NPM源,提升安装速度'
|
||||||
- npm config set registry https://registry.npmmirror.com
|
- npm config set registry https://registry.npmmirror.com
|
||||||
- npm i yarn -g
|
- npm i yarn -g
|
||||||
- yarn cache dir
|
- yarn config set registry "https://registry.npmmirror.com"
|
||||||
|
- yarn config set electron_builder_binaries_mirror "https://npmmirror.com/mirrors/electron-builder-binaries/"
|
||||||
|
- yarn config set electron_mirror "https://cdn.npmmirror.com/binaries/electron/"
|
||||||
|
- '#下载electron'
|
||||||
|
- wget https://kgithub.com/electron/electron/releases/download/v2.0.16/electron-v2.0.16-linux-x64.zip
|
||||||
|
- wget https://kgithub.com/electron/electron/releases/download/v2.0.16/SHASUMS256.txt
|
||||||
|
- mkdir -p /usr/local/share/.cache/yarn/v6/electron/cache
|
||||||
|
- mv electron-v2.0.16-linux-x64.zip /usr/local/share/.cache/yarn/v6/electron/cache
|
||||||
|
- mv SHASUMS256.txt /usr/local/share/.cache/yarn/v6/electron/cache/SHASUMS256.txt-2.0.16
|
||||||
|
- '#'
|
||||||
|
- mkdir ../release
|
||||||
|
- yarn
|
||||||
|
- yarn package-linux
|
||||||
artifacts:
|
artifacts:
|
||||||
- name: BUILD_ARTIFACT
|
- name: BUILD_ARTIFACT
|
||||||
path:
|
path:
|
||||||
|
Loading…
Reference in New Issue
Block a user