我不想在AppVeyor
上創建ZIP文件以GitHub
作爲Release
發佈它。在AppVeyor上創建ZIP文件並部署爲GitHub發佈版
目前,建立過程化妝步驟如下:
- 安裝Node.js的
v7
- 啓動
.\Build-All.bat
的Bild.bat有以下步驟:
- 創建
Temp
和Build
目錄 - 移動
Source
到Temp
- 安裝depencies與
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/DSTEd-win32-x64/
)到ZIP - 歸檔樣/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