This repository has been archived by the owner on Apr 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Build.yml
76 lines (63 loc) · 2.47 KB
/
Build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: 1.0.0-{build}
# Debugging
#init:
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://github.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Fuck'd up the shit variables; Can't set on the Backend, must be set here oÔ
environment:
matrix:
- nodejs_version: "7"
GITHUB_AUTH_TOKEN_SECRET:
secure: +hQ3dXqlACVh9ITYULpeRcTaro3L9gHt9fiLlNbhmI0hwKfSY1SNNAaBe0JRCh2U
GITHUB_LANG_TOKEN:
secure: +hQ3dXqlACVh9ITYULpeRcTaro3L9gHt9fiLlNbhmI0hwKfSY1SNNAaBe0JRCh2U
LANG_DIR: C:\Lang-Temp
# Branches
branches:
only:
- master
# Installation
install:
# Update Node.js
- ps: Install-Product node $env:nodejs_version
# Generate Language-Strings
- .\I18N.bat
# Language Deployment
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GITHUB_LANG_TOKEN)@github.com`n"
- git config --global user.email "build@DSTEd.net"
- git config --global user.name "[DSTEd] Build Server"
- git clone -q --depth=1 --branch=master https://%GITHUB_LANG_TOKEN%:x-oauth-basic@github.com/DST-Tools/DSTEd-Languages.git %LANG_DIR%
- git -C %LANG_DIR% remote set-url origin https://%GITHUB_LANG_TOKEN%:x-oauth-basic@github.com/DST-Tools/DSTEd-Languages.git
- git -C %LANG_DIR% checkout master
- cp .\en_US.json %LANG_DIR%\xx_XX.json
- git -C %LANG_DIR% add xx_XX.json
- git -C %LANG_DIR% diff-index --quiet HEAD || git -C %LANG_DIR% commit -m "[AutoUpdate] Default Language (xx_XX.json)"
- git -C %LANG_DIR% push origin master
# Install Depencies
- npm -g install node-gyp@3.6.2
- npm -g install electron-packager
- npm -g install archiver
# Start Build
- .\Build-All.bat
# Deployment Options
before_deploy:
- node .\Tools\PackageBuild.js
- ps: Get-ChildItem .\Build\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
# Deployment
deploy:
tag: 1.0.0
release: 'DSTEd v1.0.0 (Build: ${APPVEYOR_BUILD_NUMBER}) - 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
artifact:
auth_token: $(GITHUB_AUTH_TOKEN_SECRET)
draft: false
prerelease: true
force_update: true
matrix:
fast_finish: true
clone_depth: 1
max_jobs: 10
# Disable other
build: OFF
test: OFF