From 48d9a3b3d69f9002866596181cef8fb87c37d89c Mon Sep 17 00:00:00 2001 From: CzBiX Date: Fri, 13 Sep 2019 22:55:01 +0800 Subject: [PATCH] Add travis ci --- .travis.yml | 19 +++++++++++++++++++ INSTALL.md | 16 ++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .travis.yml create mode 100755 INSTALL.md diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6869d55 --- /dev/null +++ b/.travis.yml @@ -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 \ No newline at end of file diff --git a/INSTALL.md b/INSTALL.md new file mode 100755 index 0000000..7c125eb --- /dev/null +++ b/INSTALL.md @@ -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. \ No newline at end of file