Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
CS-Tao committed Oct 19, 2018
2 parents 1d51102 + 952d20e commit b0e6ae6
Show file tree
Hide file tree
Showing 13 changed files with 389 additions and 51 deletions.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[![Build status](https://ci.appveyor.com/api/projects/status/qq2adqaxv6vfj7di/branch/master?svg=true)](https://ci.appveyor.com/project/CS-Tao/whu-library-seat/branch/master)
[![Build Status](https://travis-ci.com/CS-Tao/whu-library-seat.svg?branch=master)](https://travis-ci.com/CS-Tao/whu-library-seat)
[![license](https://img.shields.io/badge/license-none-yellow.svg)](https://home.cs-tao.cc/whu-library-seat/copyright/)
[![license](https://img.shields.io/badge/license-none-yellow.svg)](#版权声明)
[![feedback](https://img.shields.io/badge/feedback-issues-blue.svg)](https://github.com/CS-Tao/whu-library-seat/issues/new)

# whu-library-seat

>武汉大学图书馆抢座软件
> 武汉大学图书馆抢座软件 - 桌面端
> Android 版本:[https://github.com/CS-Tao/whu-library-seat-mobile](https://github.com/CS-Tao/whu-library-seat-mobile)
## 使用说明

Expand All @@ -21,26 +23,22 @@

### 最新版本下载

最新版本(包括预览版): [https://github.com/CS-Tao/whu-library-seat/releases/latest](https://github.com/CS-Tao/whu-library-seat/releases/latest)

### 稳定版本下载

- Windows
- 链接: [whu-library-seat-setup-1.4.1.exe](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.4.1/whu-library-seat-setup-1.4.1.exe)
- 链接: [whu-library-seat-setup-1.5.0.exe](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.5.0/whu-library-seat-setup-1.5.0.exe)

- Mac OS
- 链接: [whu-library-seat-1.4.1.dmg](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.4.1/whu-library-seat-1.4.1.dmg)
- 链接: [whu-library-seat-1.5.0.dmg](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.5.0/whu-library-seat-1.5.0.dmg)

- Linux
- 链接: [whu-library-seat-1.4.1-x86_64.AppImage](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.4.1/whu-library-seat-1.4.1-x86_64.AppImage)
- 链接: [whu-library-seat-1.5.0-x86_64.AppImage](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.5.0/whu-library-seat-1.5.0-x86_64.AppImage)

### 安装软件

运行安装包即可

### 申请软件使用权

在您登录之前,软件会检查您的学号是否被记录在[这个文件](https://github.com/CS-Tao/whu-library-seat/blob/user-validation/validation.json)中,只有被记录在这个文件中的学号才能使用本软件,如果您的学号没有被记录,您可以通过邮件[联系我](http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&[email protected])(请在邮件中注明学号、院系和姓名)
在您登录之前,软件会检查您的学号是否被记录在[这个文件](https://github.com/CS-Tao/whu-library-seat/blob/user-validation/validation.json)中,只有被记录在这个文件中的学号(经过加密)才能使用本软件,如果您的学号(经过加密)没有被记录,您可以通过邮件[联系我](http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&[email protected])(请在邮件中注明学号、院系和姓名)

当然,因为本软件为开源软件,您可以在遵守本软件[版权声明](#版权声明)的前提下,自己构建软件并删除其中的认证代码,具体请查看[面向开发者](#面向开发者)

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ footer: Copyright © 2018 CS-Tao

- 桌面端(Windows/MacOS/Linux)

安装包链接: [https://github.com/CS-Tao/whu-library-seat#稳定版本下载](https://github.com/CS-Tao/whu-library-seat#稳定版本下载)
安装包链接: [https://github.com/CS-Tao/whu-library-seat#最新版本下载](https://github.com/CS-Tao/whu-library-seat#最新版本下载)

- 移动端(Android)

Expand Down
17 changes: 7 additions & 10 deletions docs/project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ next: false

### 桌面端(Windows/MacOS/Linux)

>项目工程:[whu-library-seat](https://github.com/CS-Tao/whu-library-seat),使用 Electron + Vue 搭建
> 项目工程:[whu-library-seat](https://github.com/CS-Tao/whu-library-seat),使用 Electron + Vue 搭建
#### 分支使用说明

Expand Down Expand Up @@ -37,21 +37,18 @@ next: false

### 移动端(Android)

>项目工程:[whu-library-seat-mobile](https://github.com/CS-Tao/whu-library-seat-mobile),使用 Cordova + Vue 搭建
> 项目工程:[whu-library-seat-mobile](https://github.com/CS-Tao/whu-library-seat-mobile),使用 Cordova + Vue 搭建
#### 分支使用说明

- master

主分支,所有标记 tag 的提交一定在此分支上,每一个 tag 对应一个版本。
主分支,每次提交都标记一个 tag,对应一个新版本

本分支是一个 cordova 工程,利用 Travis CI 对它的每次提交进行持续集成,并将生成的安装包部署到[GitHub Release](https://github.com/CS-Tao/whu-library-seat-mobile/releases)

- source
- develop

网页源工程,由桌面端项目工程转化而成。每次提交都会被 Travis CI 持续集成,并将生成的网页部署到`gh-pages`分支
开发分支,开发的新功能都汇总到本分支

- gh-pages
- 其他

`source`分支生成的网页会被存放到本分支,当`master`分支被集成的时候,会下载本分支的资源,将其打包为`apk`安装包

开发新功能(最终会策略合并到`develop`分支)、解决刚发布版本的 bug(最终会策略合并到`master`分支和`develop`分支)
8 changes: 4 additions & 4 deletions docs/specification/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#### 桌面端下载

- Windows
- 链接: [whu-library-seat-setup-1.4.1.exe](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.4.1/whu-library-seat-setup-1.4.1.exe)
- 链接: [whu-library-seat-setup-1.5.0.exe](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.5.0/whu-library-seat-setup-1.5.0.exe)

- Mac OS
- 链接: [whu-library-seat-1.4.1.dmg](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.4.1/whu-library-seat-1.4.1.dmg)
- 链接: [whu-library-seat-1.5.0.dmg](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.5.0/whu-library-seat-1.5.0.dmg)

- Linux
- 链接: [whu-library-seat-1.4.1-x86_64.AppImage](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.4.1/whu-library-seat-1.4.1-x86_64.AppImage)
- 链接: [whu-library-seat-1.5.0-x86_64.AppImage](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.5.0/whu-library-seat-1.5.0-x86_64.AppImage)

#### 移动端下载

Expand All @@ -29,7 +29,7 @@

### 申请软件使用权

在您登录之前,软件会检查您的学号是否被记录在[这个文件](https://github.com/CS-Tao/whu-library-seat/blob/user-validation/validation.json)中,只有被记录在这个文件中的学号才能使用本软件,如果您的学号没有被记录,您可以通过邮件[联系我](http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&[email protected])(请在邮件中注明学号、院系和姓名)
在您登录之前,软件会检查您的学号是否被记录在[这个文件](https://github.com/CS-Tao/whu-library-seat/blob/user-validation/validation.json)中,只有被记录在这个文件中的学号(经过加密)才能使用本软件,如果您的学号(经过加密)没有被记录,您可以通过邮件[联系我](http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&[email protected])(请在邮件中注明学号、院系和姓名)

当然,因为本软件为开源软件,您可以在遵守本软件[版权声明](https://github.com/CS-Tao/whu-library-seat/blob/master/README.md#版权声明)的前提下,自己构建软件并删除其中的认证代码,具体请查看[面向开发者](https://github.com/CS-Tao/whu-library-seat/blob/master/README.md#面向开发者)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "whu-library-seat",
"version": "1.4.1",
"version": "1.5.0",
"author": "CS-Tao <[email protected]>",
"description": "武汉大学图书馆抢座软件",
"license": null,
Expand Down
7 changes: 2 additions & 5 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ function createWindow () {
let position = store.get('mainWindowPosition', [size.width - 500, -1])

if (position[0] < 0 || position[0] > size.width || position[1] < 0 || position[1] > size.height) {
store.set('mainWindowPosition', [size.width - 500, -1])
position = [size.width - 500, -1]
store.set('mainWindowPosition', position)
mainWindow.setPosition(position[0], position[1] === -1 ? mainWindow.getPosition()[1] : position[1])
} else {
mainWindow.setPosition(position[0], position[1] === -1 ? mainWindow.getPosition()[1] : position[1])
Expand Down Expand Up @@ -276,10 +277,6 @@ ipcMain.on('exit-app', (event, arg) => {
})

ipcMain.on('show-window-notify', (event, title, message) => {
if (mainWindow.isVisible()) {
mainWindow.show()
return
}
notifier.notify(
{
appName: 'cc.cs-tao.whu-library-seat',
Expand Down
Loading

0 comments on commit b0e6ae6

Please sign in to comment.