Skip to content

Commit

Permalink
部署::配置远程服务器
Browse files Browse the repository at this point in the history
  • Loading branch information
oovm committed Jul 13, 2018
1 parent 21bf8be commit 7d738aa
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 12 deletions.
19 changes: 16 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# idea 配置文件
# Idea Project
*.iml
.idea/*
.idea/

*.nb
# yarn
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Build Temp
.DS_Store
dist/
demo/


# Notebook
*.nb
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
sudo: required
dist: trusty
branches:
only:
- master
# 只需要自定义下面五个量
env:
global:
- GITHUB_NAME: Gal@Builder # 瞎填都可以
- GITHUB_MAIL: [email protected] # 瞎填都可以
- GITHUB_USER: Moe-Net # 你的用户名
- GITHUB_REPO: BilibiliLink # 你的项目名
# 还有一个 TRAVIS_KEY 填在 travis settings 里!
# 教程: https://github.com/settings/tokens
before_script:
- git config --global user.name "${GITHUB_NAME}"
- git config --global user.email "${GITHUB_MAIL}"
- export TZ='Asia/Shanghai'
- git tag "$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
script:
# 记录搜索深度 10
- git clone --depth 10 --branch master --single-branch https://github.com/${GITHUB_USER}/${GITHUB_REPO}
- cd ${GITHUB_REPO}
- ver=`git tag | awk 'END {print}'`
- nVer=`echo $ver | awk -F. '{printf "%s.%s.%s\n",$1,$2,$3+1}'`
- echo $ver
before_deploy:
- rm -rf .git
- rm -rf Documentation
- rm -rf Packages/_*
- cd ..
- tar -cJf ${GITHUB_REPO}.tar.xz ${GITHUB_REPO}
deploy:
provider: releases
api_key:
secure: ${TRAVIS_KEY}
name: AutoBuild-$nVer
file:
- ${GITHUB_REPO}.tar.xz
skip_cleanup: true
on:
repo: ${GITHUB_USER}/${GITHUB_REPO}
3 changes: 2 additions & 1 deletion Packages/DataServer.m → Packages/BilibiliDataServer.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$BilibiliDataServer::usage = "远程数据服务器";

Begin["`Server`"];
$BilibiliDataServer = "https://mma.vers.site";
$BilibiliDataServer = "https://m.vers.site";

End[]
6 changes: 3 additions & 3 deletions PacletInfo.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Paclet[
Name -> "BilibiliLink",
Version -> "0.3.6",
BuildNumber -> "20180705",
Version -> "0.4.0",
BuildNumber -> "20180715",
WolframVersion -> "11.3+",
Creator -> "GalAster",
Description -> "",
Expand All @@ -16,4 +16,4 @@
}
}
}
]
]
10 changes: 5 additions & 5 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://travis-ci.org/Moe-Net/BilibiliLink.svg?branch=master)](https://travis-ci.org/Moe-Net/BilibiliLink)
[![Mathematica](https://img.shields.io/badge/Mathematica-%3E%3D11.3-brightgreen.svg)](https://www.wolfram.com/mathematica/)
[![Release Vision](https://img.shields.io/badge/release-v0.3.x-ff69b4.svg)](https://github.com/Moe-Net/BilibiliLink/releases)
[![Release Vision](https://img.shields.io/badge/release-v0.4.x-ff69b4.svg)](https://github.com/Moe-Net/BilibiliLink/releases)
[![Repo Size](https://img.shields.io/github/repo-size/Moe-Net/BilibiliLink.svg)](https://github.com/Moe-Net/BilibiliLink.git)

![](https://i.loli.net/2018/05/20/5b0170b1f1494.png)
Expand All @@ -18,8 +18,8 @@ BilibiliLink 提供了一系列获取B站数据的方法, 计划中的内容有,

第一条命令安装, 第二条命令更新, 第三条命令卸载
```mma
PacletInstall["BilibilliLink","Site"->"http://math.owo.site/"]
PacletUpdate["BilibilliLink","Site"->"http://math.owo.site/"]
PacletInstall["BilibilliLink","Site"->"http://m.vers.site/"]
PacletUpdate["BilibilliLink","Site"->"http://m.vers.site/"]
PacletUninstall["BilibilliLink"]
```

Expand All @@ -45,9 +45,9 @@ link["Markdown"]
1. 任何创意欢迎 git pull request, 或联系知乎[酱紫君](https://www.zhihu.com/people/GalAster).
2. 任何的意见和建议, 提交 github issue 或者加QQ群1014125反馈.

|知乎主页|QQ群聊|
|知乎主页|QQ群聊|
|:-:|:-:|
|[<img src="https://raw.githubusercontent.com/GalAster/Deus/master/Resources/pic/Logo_Zhihu.png" alt="知乎链接" width = "100" align=center />](https://www.zhihu.com/people/GalAster)|[<img src="https://raw.githubusercontent.com/GalAster/Deus/master/Resources/pic/Logo_QQ.png" alt="QQ链接" width = "100" align=center />](https://jq.qq.com/?_wv=1027&k=5BqFya1)

- Copyrights of all pictures belong to **©bilibili.com**
- License of this project under **@Mozilla Public License Version 2.0**
- License of this project under **@Mozilla Public License Version 2.0**

0 comments on commit 7d738aa

Please sign in to comment.