Skip to content

Commit

Permalink
chore: package-test
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Apr 12, 2021
1 parent 377ff04 commit c066895
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
File renamed without changes.
27 changes: 27 additions & 0 deletions .github/workflows/package-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# ref [自动化发布npm包及生成Github Changelog]( https://banyudu.com/posts/auto_publish_npm_and_generate_github_changelog.882513 )
on:
push:
tags:
- "v*"
name: package-test
jobs:
cn:
runs-on: windows-latest
steps:
- run: git clone https://gitee.com/snomiao/CapslockX && .\CapsLockX\CapsLockX.exe --test
gh:
runs-on: windows-latest
steps:
- run: git clone https://github.com/snomiao/CapsLockX.git && .\CapsLockX\CapsLockX.exe --test
npm:
runs-on: windows-latest
steps:
- run: npm i -g capslockx && capslockx --test
npx:
runs-on: windows-latest
steps:
- run: npx capslockx --test
choco:
runs-on: windows-latest
steps:
- run: choco install capslockx && capslockx --test
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
(或 [Gitee 仓库源码(大陆).zip](https://gitee.com/snomiao/CapslockX/repository/archive/master.zip)
2. 双击 `CapsLockX.exe` 即可启动脚本,如需添加启动项,请在开始菜单 - 运行输入 shell:startup 然后给本程序创建快捷方式,扔进去就可以了。

#### 安装方式 2
#### 命令行安装

如果你有 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

0 comments on commit c066895

Please sign in to comment.