Skip to content

Commit

Permalink
chore: chocolatey setup
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Apr 12, 2021
1 parent 7780a5c commit 5dd66fe
Show file tree
Hide file tree
Showing 7 changed files with 733 additions and 54 deletions.
37 changes: 22 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
with:
args: zip -r CapsLockX-${{ env.RELEASE_VERSION }}.zip Core Data docs Modules Tools CapsLockX* LICENCE *.md "启动 CapsLockX.lnk"
# 暂存
- uses: actions/upload-artifact@v1
with:
name: CapsLockX-latest.zip
path: CapsLockX-${{ env.RELEASE_VERSION }}.zip
# - uses: actions/upload-artifact@v1
# with:
# name: CapsLockX-latest.zip
# path: CapsLockX-${{ env.RELEASE_VERSION }}.zip
# 附件
- uses: svenstaro/upload-release-action@v2
with:
Expand All @@ -55,18 +55,25 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
chocolatey:
env:
RELEASE_VERSION: ${GITHUB_REF#refs/*/}
needs: release
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
# 取回
- uses: actions/download-artifact@v1
with:
name: CapsLockX-latest.zip
path: CapsLockX-latest.zip
- run: choco install checksum
- run: cat file.txt
# Cocolatey 发布(调试中)
- uses: crazy-max/ghaction-chocolatey@v1
with:
args: pack
# 打包 校验
- run: |
choco install zip checksum
zip -r CapsLockX.zip Core Data docs Modules Tools CapsLockX* LICENCE *.md "启动 CapsLockX.lnk"
checksum -t sha256 -f CapsLockX.zip > CapsLockX.sha256
cp -force LICENSE tools/choco/tools/LICENCE.txt
cp -force CapsLockX.zip tools/choco/tools/
cp -force CapsLockX.sha256 tools/choco/tools/
cpack Tools/choco/CapsLockX.nuspec
# 测试
- run: |
cinst CapsLockX -s .
# 发布
- run: |
choco apikey --key ${{ secrets.CHOCOLATEY_APIKEY }} --source https://push.chocolatey.org/
choco push
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ node_modules
/docs/README.html
*.sublime-*
*.zip
*.sha256
*.bak
CapslockX-LoadModules.ahk
CapsLockX-LoadModules.ahk
Expand Down
28 changes: 19 additions & 9 deletions Tools/choco/CapsLockX.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
<version>1.14.23</version>
<owners>snomiao</owners>
<authors>snomiao</authors>
<copyright>Copyright (C) Snowstar Laboratory 2017-2021</copyright>

<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://github.com/snomiao/CapsLockX/blob/master/LICENSE</licenseUrl>
<packageSourceUrl>https://snomiao.github.io/CapsLockX/</packageSourceUrl>
<bugTrackerUrl>https://github.com/snomiao/CapsLockX/issues</bugTrackerUrl>
<mailingListUrl>https://github.com/snomiao/CapsLockX/issues</mailingListUrl>
<projectUrl>https://capslockx.snomiao.com/</projectUrl>
<docsUrl>https://capslockx.snomiao.com/</docsUrl>
<iconUrl>https://github.com/snomiao/CapsLockX/raw/master/Data/XIconBlue.ico</iconUrl>

<tags>hotkeys autohotkey windows ahk capslock</tags>
<title>CapsLockX (install)</title>
<description><!-- THIS FILE IS GENERATED PLEASE MODIFY DOCS/README -->
<description><![CDATA[<!-- THIS FILE IS GENERATED PLEASE MODIFY DOCS/README -->
# CapsLockX - 像**黑客**一样操作电脑
像**黑客**一样操作电脑!CapsLockX 让你可以轻轻松松像电影里的**黑客**一样,双手不离开键盘,**高效率**地操作电脑。这里有超多一摸就懂超好上手的功能:编辑增强、虚拟桌面与窗口管理、鼠标模拟、应用内热键增强、JS 数学表达式计算、等超多功能等你来定义。
[![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)

j
## 入门教程第一
### 安装
Expand Down Expand Up @@ -502,9 +508,16 @@ Ctrl + Alt + 同上,但一般为全局热键
### 相关话题
- [(10) What are some good career alternatives for a computer programmer with RSI? - Quora]( https://www.quora.com/Repetitive-Strain-Injury-RSI/What-are-some-good-career-alternatives-for-a-computer-programmer-with-RSI )
</description>
]]></description>
<summary>Operate the computer like a hacker! 像**黑客**一样操作电脑!CapsLockX 让你可以轻轻松松像电影里的**黑客**一样,双手不离开键盘,**高效率**地操作电脑。这里有超多一摸就懂超好上手的功能:编辑增强、虚拟桌面与窗口管理、鼠标模拟、应用内热键增强、JS 数学表达式计算、等超多功能等你来定义。</summary>
<releaseNotes>## <small>1.14.22 (2021-04-11)</small>
<releaseNotes><![CDATA[## <small>1.14.23 (2021-04-11)</small>
* chore:versioning ([99ea551](https://github.com/snomiao/CapsLockX/commit/99ea551))
* chore: format and CI configuing ([9112511](https://github.com/snomiao/CapsLockX/commit/9112511))
## <small>1.14.22 (2021-04-11)</small>
* chore:versioning ([6aee8d4](https://github.com/snomiao/CapsLockX/commit/6aee8d4))
* chore: fix ignores ([9a6fc11](https://github.com/snomiao/CapsLockX/commit/9a6fc11))
Expand Down Expand Up @@ -715,11 +728,8 @@ Ctrl + Alt + 同上,但一般为全局热键
* 展开当前关键词的相关页面链接 ([96cfa00](https://github.com/snomiao/CapsLockX/commit/96cfa00501194f84fc6c81f689e1b696c2eb7309))

</releaseNotes>

<copyright>Copyright (C) Snowstar Laboratory 2017-2021</copyright>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
]]></releaseNotes>

<dependencies></dependencies>
</metadata>
<files>
Expand Down
4 changes: 0 additions & 4 deletions Tools/choco/build.bat

This file was deleted.

Loading

0 comments on commit 5dd66fe

Please sign in to comment.