upgrade 1.1

This commit is contained in:
Julian Freeman
2025-12-25 17:19:25 -04:00
parent e1dfcf3f97
commit 77e23e34ff
6 changed files with 19 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -64,6 +64,11 @@
"Type": "FileCopy",
"Source": "./assets/keepassxc/keepassxc.ini",
"Destination": "$env:APPDATA\\KeePassXC\\keepassxc.ini"
},
{
"Type": "FileCopy",
"Source": "./assets/keepassxc/KeePassXC.lnk",
"Destination": "$HOME\\Desktop\\KeePassXC.lnk"
}
]
},
@@ -89,6 +94,11 @@
{
"Type": "RegImport",
"Path": "./config/fileshredder.reg"
},
{
"Type": "FileCopy",
"Source": "./assets/fileshredder/File Shredder.lnk",
"Destination": "$HOME\\Desktop\\File Shredder.lnk"
}
]
},

View File

@@ -4,8 +4,8 @@ $ErrorActionPreference = "Stop"
# === 1. 加载依赖库 ===
# 确保 lib 目录存在
if (-not (Test-Path "$PSScriptRoot\lib")) {
Write-Error "Cannot find ./lib, some files missing."
if (-not (Test-Path "$PSScriptRoot\..\lib")) {
Write-Error "Cannot find .\lib, some files missing."
exit 1
}
@@ -92,20 +92,20 @@ foreach ($app in $apps) {
# 1. 复制文件
"FileCopy" {
& "$PSScriptRoot\lib\invoke-filecopy.ps1" `
& "$PSScriptRoot\..\lib\invoke-filecopy.ps1" `
-Source $action.Source `
-Destination $action.Destination
}
# 2. 导入注册表
"RegImport" {
& "$PSScriptRoot\lib\invoke-regimport.ps1" `
& "$PSScriptRoot\..\lib\invoke-regimport.ps1" `
-Path $action.Path
}
# 3. 执行 CMD
"Command" {
& "$PSScriptRoot\lib\invoke-cmdexec.ps1" `
& "$PSScriptRoot\..\lib\invoke-cmdexec.ps1" `
-Command $action.Command `
-WorkDir $action.WorkDir
}

View File

@@ -29,6 +29,9 @@ Windows Registry Editor Version 5.00
; 关闭“尝试必应的文本建议” (也就是云候选项/Web文本建议)
"EnableCloudCandidate"=dword:00000000
; === 开启桌面图标排列 ===
;[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop]
;"FFlags"=dword:40200225
; 关闭 IPv6
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP6\Parameters]

View File

@@ -23,4 +23,4 @@ echo Calling main.ps1...
:: -ExecutionPolicy Bypass: 绕过默认的脚本执行策略限制
:: -File: 指定要运行的脚本文件
powershell.exe -NoExit -NoProfile -ExecutionPolicy Bypass -File ".\main.ps1"
powershell.exe -NoExit -NoProfile -ExecutionPolicy Bypass -File ".\bin\main.ps1"