Skip to content

Commit

Permalink
chore: CI_TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Apr 12, 2021
1 parent a21c849 commit 539ae48
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 24 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/package-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,35 @@ name: package-test
jobs:
cn:
runs-on: windows-latest
env:
ENVIROMENT: CI_TEST
steps:
- run: git clone https://gitee.com/snomiao/CapslockX && .\CapsLockX\CapsLockX.exe --test
- run: git clone https://gitee.com/snomiao/CapslockX.git
- run: .\CapsLockX\CapsLockX.exe
gh:
runs-on: windows-latest
env:
ENVIROMENT: CI_TEST
steps:
- run: git clone https://github.com/snomiao/CapsLockX.git && .\CapsLockX\CapsLockX.exe --test
- run: git clone https://github.com/snomiao/CapsLockX.git
- run: .\CapsLockX\CapsLockX.exe
npm:
runs-on: windows-latest
env:
ENVIROMENT: CI_TEST
steps:
- run: npm i -g capslockx && capslockx --test
- run: npm i -g capslockx
- run: capslockx
npx:
runs-on: windows-latest
env:
ENVIROMENT: CI_TEST
steps:
- run: npx capslockx --test
- run: npx capslockx
choco:
runs-on: windows-latest
env:
ENVIROMENT: CI_TEST
steps:
- run: choco install capslockx && capslockx --test
- run: choco install capslockx
- run: capslockx
7 changes: 7 additions & 0 deletions CapsLockX.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@ global CoreAHK := CapsLockX_PathCore "\CapsLockX-Core.ahk"
global UpdatorAHK := CapsLockX_PathCore "\CapsLockX-Update.ahk"
; 隐藏 ToolTip
ToolTip

EnvGet ENVIROMENT, ENVIROMENT
if("CI_TEST" == ENVIROMENT){
OutputDebug, % "[INFO] MODULE LOAD OK, SKIP CORE"
ExitApp
}

; 运行更新组件
Run %CapsLockX_PathCore%\AutoHotkeyU32.exe %UpdatorAHK%, %A_WorkingDir%
; 运行核心
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
## 入门教程第一

### 安装

[![package-test](https://github.com/snomiao/CapsLockX/actions/workflows/package-test.yml/badge.svg)](https://github.com/snomiao/CapsLockX/actions/workflows/package-test.yml)
#### 安装方式 1

源码打包就是软件本体,无需编译,纯绿色软件解压即用。源码 + 程序包:
Expand Down
39 changes: 22 additions & 17 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,31 @@

[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/capslockx/badge)](https://www.jsdelivr.com/package/npm/capslockx)
[![Publish](https://github.com/snomiao/CapsLockX/actions/workflows/publish.yml/badge.svg)](https://github.com/snomiao/CapsLockX/actions/workflows/publish.yml)
[![Package-Test](https://github.com/snomiao/CapsLockX/actions/workflows/package-test.yml/badge.svg)](https://github.com/snomiao/CapsLockX/actions/workflows/package-test.yml)

## 入门教程第一

### 安装

#### 安装方式 1

源码打包就是软件本体,无需编译
源码打包就是软件本体,无需编译,纯绿色软件解压即用。源码 + 程序包:

1. 下载源码 zip 点击 [github仓库源码.zip](https://github.com/snomiao/CapsLockX/archive/master.zip) 然后解压后使用。
(或 [Gitee 仓库源码(大陆).zip](https://gitee.com/snomiao/CapslockX/repository/archive/master.zip)
2. 双击 `CapsLockX.exe` 即可启动脚本,如需添加启动项,请在开始菜单 - 运行输入 shell:startup 然后给本程序创建快捷方式,扔进去就可以了。
- [下载 大陆用户-Gitee-仓库程序包.zip](https://gitee.com/snomiao/CapslockX/repository/archive/master.zip)
- [下载 全球用户-GitHub-仓库程序包.zip](https://github.com/snomiao/CapsLockX/archive/master.zip)
- [下载 灾难备份-BitBucket-仓库程序包.zip](https://bitbucket.org/snomiao/capslockx/get/master.zip)

#### 安装方式 2
解压后使用即可,启动与自启动的方法: 双击 `CapsLockX.exe` 即可启动脚本,如需添加启动项,请在开始菜单 - 运行输入 shell:startup 然后给本程序创建快捷方式,扔进去就可以了。

如果你有 npm ,可以【尝试 `npm i -g capslockx` 来自动安装 以及 `npx capslockx` 来启动】本软件
#### 命令行安装

#### 安装方式 3
以下几种任选其一,推荐第一个(最快)

- [ ] Chocolatey(研究中)
1. `git clone https://gitee.com/snomiao/CapslockX && .\CapsLockX\CapsLockX.exe`
2. `git clone https://github.com/snomiao/CapsLockX.git && .\CapsLockX\CapsLockX.exe`
3. `npm i -g capslockx && capslockx`
4. `npx capslockx`
5. `choco install capslockx && capslockx`

### 使用方式

Expand Down Expand Up @@ -207,7 +212,7 @@
| 在 Anki-学习界面 | 5 或 NumPad5 | 撤销 |
| 在 Anki-学习界面 | 6 或 NumPad6 | 暂停卡片 |
| 在 Anki-学习界面 | Alt + i | 快速导入剪贴版的内容(按 Tab 分割) / 比如可以从 Excel 复制 |
| 在 Anki-添加卡片界面 | Alt + s | 按下 添加 按钮 |
| 在 Anki-添加卡片界面 | Alt + s | 按下 添加 按钮 |

> 此插件可配合手柄使用,使用 XPadder 配置手柄摇杆映射到方向键即可。
>
Expand Down Expand Up @@ -299,21 +304,21 @@

### TIM添加常驻功能模块

|模式|按键|功能|
| - | :-: | - |
| 在Tim窗口内 |Alt + f| 焦点定位到左上角搜索框|
| 在Tim窗口内 |Ctrl + PgUp| 切换上一个窗口|
| 在Tim窗口内 |Ctrl + PgDn| 切换下一个窗口|
| 模式 | 按键 | 功能 |
| ----------- | :---------: | ---------------------- |
| 在Tim窗口内 | Alt + f | 焦点定位到左上角搜索框 |
| 在Tim窗口内 | Ctrl + PgUp | 切换上一个窗口 |
| 在Tim窗口内 | Ctrl + PgDn | 切换下一个窗口 |

<!-- 模块文件名:应用-讯飞输入法语音悬浮窗.ahk-->

### 讯飞输入法悬浮窗插件

#### 用法

| 作用于 | 按键| 功能说明 |
| - | :-: | - |
| 全局 | Win + H | 启动/切换讯飞语音输入 |
| 作用于 | 按键 | 功能说明 |
| ------ | :-----: | --------------------- |
| 全局 | Win + H | 启动/切换讯飞语音输入 |

####

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
"@commitlint/config-conventional": "^12.0.1",
"conventional-changelog-cli": "^2.1.1"
}
}
}

0 comments on commit 539ae48

Please sign in to comment.