Add travis ci

This commit is contained in:
CzBiX
2019-09-13 22:55:01 +08:00
parent 800a0b741e
commit 48d9a3b3d6
2 changed files with 35 additions and 0 deletions

19
.travis.yml Normal file
View File

@@ -0,0 +1,19 @@
language: node_js
node_js: lts/*
branches:
only:
- master
before_deploy:
- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d')-$(git log --format=%h -1)}
- git tag $TRAVIS_TAG
script: npm run build; [ -d dist/public ] && cp INSTALL.md dist && zip -r dist.zip dist
deploy:
providers: releases
api_key: "$GITHUB_OAUTH_TOKEN"
file: dist.zip
skip_cleanup: true
overwrite: true

16
INSTALL.md Executable file
View File

@@ -0,0 +1,16 @@
Setup:
1. Extrace all files.
2. Open Web UI Options dialog, Set "Files location" of "alternative Web UI" to this folder(without `public` suffix).
========
安装说明:
1. 解压所有文件。
2. 打开 Web 用户界面的设置,将 “使用备用 Web UI” 的 “文件路径” 设置为本目录(没有 `public` 后缀)。
=======
RECOVERY:
If something was going wrong, you can visit `/api/v2/app/setPreferences?json=%7B%22alternative_webui_enabled%22:false%7D` to disable alternative Web UI.