我不想创建 ZIP 文件AppVeyor
以将其发布GitHub
为Release
.
目前,构建过程执行以下步骤:
- 安装 Node.js
v7
- 启动
.\Build-All.bat
Bild.bat有以下步骤:
- 创建
Temp
和Build
目录 - 移至
Source
_Temp
- 安装依赖项
npm install
- 开始
electron-packager
创建二进制文件(参见目录的目录结构/Build/
)
目录结构:
/Source/
/Build/
L /DSTEd-darwin-x64/
L /DSTEd-linux-armv7l/
L /DSTEd-linux-ia32/
L /DSTEd-linux-x64/
L /DSTEd-mas-x64/
L /DSTEd-win32-ia32/
L /DSTEd-win32-x64/
/Temp/
/Build.bat
这就是我想要的:
将每个 Build-Directory (for sample
/Build/DSTEd-win32-x64/
) 打包到一个 ZIP-Archive 中,例如/Build/DSTEd-win32-x64.zip
将所有 ZIP 存档 (
/Build/DSTEd-*-*.zip
) 添加到版本中
我已经手动GitHub
为示例创建了一个版本;也就是说,我想要什么:
https ://github.com/DST-Tools/DSTEd/releases/tag/1.0.0
这是我的appveyor.yml:
version: 1.0.0-{build}
# Set the Node Version
environment:
matrix:
- nodejs_version: "7"
# Install scripts. (runs after repo cloning)
install:
- ps: Install-Product node $env:nodejs_version
- npm -g install electron-packager
- .\Build-All.bat
# Caching
cache:
- node_modules
# Deployment Options
deploy:
tag: $(appveyor_build_version)
release: 'DSTEd v${appveyor_build_version} - Pre-Release (Preview)'
description: ' ![Preview](https://github.com/DST-Tools/DSTEd/raw/master/Screenshots/preview.png) ## Pre-Release v1.0.0 (Preview) Builded binarys for `Windows` (`32bit` & `64bit`), `Linux` (`32bit`, `64bit` & `armv7`) and `Mac OS X` (`darwin` & `mas`, only `64bit`).'
provider: GitHub
auth_token:
secure: b202f536350628ff69af69d08daee9f76a9cff20
artifact: '**\*.zip'
draft: false
prerelease: true
on:
branch: master
appveyor_repo_tag: true
matrix:
fast_finish: true
build: OFF
test: OFF