Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged

Dev #76

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
171 changes: 167 additions & 4 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ on:
branches:
- main
- insider # 在 main 和 insider 分支 push 时触发
permissions:
actions: write

jobs:
build:
name: Build
strategy:
matrix:
platform: [Win32, x64, ARM64] #
platform: [Win32, x64, ARM64]
fail-fast: false

runs-on: windows-latest

steps:
Expand Down Expand Up @@ -90,11 +92,11 @@ jobs:
copy tmp\x64\Inkeys.exe send_zip\Inkeys64.exe
copy tmp\arm64\Inkeys.exe send_zip\InkeysArm64.exe

- name: Upload signpath[unsigned]
- name: Upload Signpath[unsigned]
id: upload-unsigned
uses: actions/upload-artifact@v4
with:
name: signpath[unsigned]
name: Signpath[unsigned]
path: send_zip/

- name: Sign with SignPath
Expand Down Expand Up @@ -135,3 +137,164 @@ jobs:
with:
name: InkeysArm64
path: updateArm64\Inkeys.exe

- name: Clean Up
shell: pwsh
env:
ARTIFACT_NAMES: 'Inkeys[Unsigned],Inkeys64[Unsigned],InkeysArm64[Unsigned],Signpath[unsigned]'
run: |
# 拆分目标 artifact 列表
$names = "${env:ARTIFACT_NAMES}".Split(',')

# 获取 artifact 元信息
$repo = "${{ github.repository }}"
$url = "https://api.github.com/repos/$repo/actions/artifacts?per_page=100"
$headers = @{ Authorization = "Bearer ${{ secrets.GITHUB_TOKEN }}" }
$response = Invoke-RestMethod -Uri $url -Headers $headers

# 批量删除
foreach ($name in $names) {
$artifact = $response.artifacts | Where-Object { $_.name -eq $name }
if ($null -ne $artifact) {
Write-Host "Deleting artifact: $($artifact.name) $($artifact.id)"
$delete_url = "https://api.github.com/repos/$repo/actions/artifacts/$($artifact.id)"
Invoke-RestMethod -Uri $delete_url -Headers $headers -Method Delete
} else {
Write-Host "Not found: $name"
}
}

package:
name: Package
runs-on: windows-latest
needs: signature

steps:
- name: Download Inkeys
uses: actions/download-artifact@v4
with:
name: Inkeys
path: tmp/win32
- name: Download Inkeys64
uses: actions/download-artifact@v4
with:
name: Inkeys64
path: tmp/x64
- name: Download InkeysArm64
uses: actions/download-artifact@v4
with:
name: InkeysArm64
path: tmp/arm64

- name: Prepare signpath zip folder
run: |
mkdir Inkeys
mkdir Inkeys64
mkdir InkeysArm64
copy tmp\win32\Inkeys.exe Inkeys\Inkeys.exe
copy tmp\x64\Inkeys.exe Inkeys64\Inkeys.exe
copy tmp\arm64\Inkeys.exe InkeysArm64\Inkeys.exe

- name: Compressed update package 1
run: |
Compress-Archive -Path .\Inkeys\Inkeys.exe -DestinationPath .\InkeysUpdate2025====!.zip -CompressionLevel Optimal
- name: Compressed update package 2
run: |
Compress-Archive -Path .\Inkeys64\Inkeys.exe -DestinationPath .\InkeysUpdate2025====!64.zip -CompressionLevel Optimal
- name: Compressed update package 3
run: |
Compress-Archive -Path .\InkeysArm64\Inkeys.exe -DestinationPath .\InkeysUpdate2025====!Arm64.zip -CompressionLevel Optimal

- name: Prepare configuration information 1
shell: pwsh
run: |
$exeFile = 'Inkeys\Inkeys.exe'
$uploadFile = 'InkeysUpdate2025====!.zip'
$out = 'ci.txt'

$md5 = ((Get-FileHash -Path $exeFile -Algorithm MD5 ).Hash).ToLower()
$sha256 = ((Get-FileHash -Path $exeFile -Algorithm SHA256).Hash).ToLower()
$size = (Get-Item $uploadFile).Length

"[Inkeys]`r`nMD5: $md5`r`nSHA256: $sha256`r`nZIP_SIZE: $size`r`n" | Add-Content $out -Encoding UTF8
- name: Prepare configuration information 2
shell: pwsh
run: |
$exeFile = 'Inkeys64\Inkeys.exe'
$uploadFile = 'InkeysUpdate2025====!64.zip'
$out = 'ci.txt'

$md5 = ((Get-FileHash -Path $exeFile -Algorithm MD5 ).Hash).ToLower()
$sha256 = ((Get-FileHash -Path $exeFile -Algorithm SHA256).Hash).ToLower()
$size = (Get-Item $uploadFile).Length

"[Inkeys64]`r`nMD5: $md5`r`nSHA256: $sha256`r`nZIP_SIZE: $size`r`n" | Add-Content $out -Encoding UTF8
- name: Prepare configuration information 3
shell: pwsh
run: |
$exeFile = 'InkeysArm64\Inkeys.exe'
$uploadFile = 'InkeysUpdate2025====!Arm64.zip'
$out = 'ci.txt'

$md5 = ((Get-FileHash -Path $exeFile -Algorithm MD5 ).Hash).ToLower()
$sha256 = ((Get-FileHash -Path $exeFile -Algorithm SHA256).Hash).ToLower()
$size = (Get-Item $uploadFile).Length

"[InkeysArm64]`r`nMD5: $md5`r`nSHA256: $sha256`r`nZIP_SIZE: $size`r`n" | Add-Content $out -Encoding UTF8

- name: Write Tips
shell: pwsh
run: |
$content = @"
软件使用方法:
1. Inkeys.exe 运行文件放置于一个空的文件夹内(exe 名称不能包含非英文字符)
2. 双击 Inkeys.exe 运行即可

提示:
设置桌面快捷方式和开机启动可以进软件选项界面中设置。
有疑问吐槽建议等等,加Q群618720802一起讨论,或咨询作者QQ2685549821。

-----

How to use the software:
1. Inkeys.exe runtime file is placed in an empty folder (exe name can not contain non-English characters)
2. Double-click Inkeys.exe to run.

Tips:
Set desktop shortcuts and boot up can be set into the software options interface.
If you have any questions, comments, suggestions, etc., through the software feedback channel for feedback, or consult the author [email protected].
"@

Set-Content -Path Tips.txt -Value $content -Encoding UTF8
- name: Prepare Tips
run: |
copy Tips.txt Inkeys\Tips.txt
copy Tips.txt Inkeys64\Tips.txt
copy Tips.txt InkeysArm64\Tips.txt

- name: Compressed release package 1
run: |
Compress-Archive -Path .\Inkeys -DestinationPath ".\[====][32=]Inkeys2025====!.zip" -CompressionLevel Optimal
- name: Compressed release package 2
run: |
Compress-Archive -Path .\Inkeys64 -DestinationPath ".\[====][64=]Inkeys2025====!.zip" -CompressionLevel Optimal
- name: Compressed release package 3
run: |
Compress-Archive -Path .\InkeysArm64 -DestinationPath ".\[====][Arm64]Inkeys2025====!.zip" -CompressionLevel Optimal

- name: Print file tree (tree)
run: tree /F /A
shell: cmd

- name: Upload Package
uses: actions/upload-artifact@v4
with:
name: Package
path: |
"./InkeysUpdate2025====!.zip"
"./InkeysUpdate2025====!64.zip"
"./InkeysUpdate2025====!Arm64.zip"
"./[====][32=]Inkeys2025====!.zip"
"./[====][64=]Inkeys2025====!.zip"
"./[====][Arm64]Inkeys2025====!.zip"
"./ci.txt"
4 changes: 2 additions & 2 deletions 智绘教/IdtMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
#pragma comment(lib, "netapi32.lib")

wstring buildTime = __DATE__ L" " __TIME__; // 构建时间
wstring editionDate = L"20250515a"; // 程序发布日期
wstring editionChannel = L"Dev"; // 程序发布通道
wstring editionDate = L"20250523a"; // 程序发布日期
wstring editionChannel = L"Insider"; // 程序发布通道

wstring userId; // 用户GUID
wstring globalPath; // 程序当前路径
Expand Down