更新若干功能

This commit is contained in:
李琦
2026-08-14 07:52:01 +08:00
parent 153c7ed448
commit 89bc265f68
196 changed files with 17675 additions and 0 deletions

6
tools/extract-icon.ps1 Normal file
View File

@@ -0,0 +1,6 @@
# 从 exe 提取关联图标存为 png用于验证 syso 图标是否打包成功
Add-Type -AssemblyName System.Drawing
$exe = 'D:\myCode\code-count\view\bin\code-count.exe'
$icon = [System.Drawing.Icon]::ExtractAssociatedIcon($exe)
$icon.ToBitmap().Save('D:\myCode\code-count\view\tools\exe-icon-check.png', [System.Drawing.Imaging.ImageFormat]::Png)
Write-Output ("exe size: " + (Get-Item $exe).Length)