upgrade 1.1
This commit is contained in:
BIN
assets/fileshredder/File Shredder.lnk
Normal file
BIN
assets/fileshredder/File Shredder.lnk
Normal file
Binary file not shown.
BIN
assets/keepassxc/KeePassXC.lnk
Normal file
BIN
assets/keepassxc/KeePassXC.lnk
Normal file
Binary file not shown.
@@ -64,6 +64,11 @@
|
|||||||
"Type": "FileCopy",
|
"Type": "FileCopy",
|
||||||
"Source": "./assets/keepassxc/keepassxc.ini",
|
"Source": "./assets/keepassxc/keepassxc.ini",
|
||||||
"Destination": "$env:APPDATA\\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",
|
"Type": "RegImport",
|
||||||
"Path": "./config/fileshredder.reg"
|
"Path": "./config/fileshredder.reg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type": "FileCopy",
|
||||||
|
"Source": "./assets/fileshredder/File Shredder.lnk",
|
||||||
|
"Destination": "$HOME\\Desktop\\File Shredder.lnk"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -4,8 +4,8 @@ $ErrorActionPreference = "Stop"
|
|||||||
|
|
||||||
# === 1. 加载依赖库 ===
|
# === 1. 加载依赖库 ===
|
||||||
# 确保 lib 目录存在
|
# 确保 lib 目录存在
|
||||||
if (-not (Test-Path "$PSScriptRoot\lib")) {
|
if (-not (Test-Path "$PSScriptRoot\..\lib")) {
|
||||||
Write-Error "Cannot find ./lib, some files missing."
|
Write-Error "Cannot find .\lib, some files missing."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,20 +92,20 @@ foreach ($app in $apps) {
|
|||||||
|
|
||||||
# 1. 复制文件
|
# 1. 复制文件
|
||||||
"FileCopy" {
|
"FileCopy" {
|
||||||
& "$PSScriptRoot\lib\invoke-filecopy.ps1" `
|
& "$PSScriptRoot\..\lib\invoke-filecopy.ps1" `
|
||||||
-Source $action.Source `
|
-Source $action.Source `
|
||||||
-Destination $action.Destination
|
-Destination $action.Destination
|
||||||
}
|
}
|
||||||
|
|
||||||
# 2. 导入注册表
|
# 2. 导入注册表
|
||||||
"RegImport" {
|
"RegImport" {
|
||||||
& "$PSScriptRoot\lib\invoke-regimport.ps1" `
|
& "$PSScriptRoot\..\lib\invoke-regimport.ps1" `
|
||||||
-Path $action.Path
|
-Path $action.Path
|
||||||
}
|
}
|
||||||
|
|
||||||
# 3. 执行 CMD
|
# 3. 执行 CMD
|
||||||
"Command" {
|
"Command" {
|
||||||
& "$PSScriptRoot\lib\invoke-cmdexec.ps1" `
|
& "$PSScriptRoot\..\lib\invoke-cmdexec.ps1" `
|
||||||
-Command $action.Command `
|
-Command $action.Command `
|
||||||
-WorkDir $action.WorkDir
|
-WorkDir $action.WorkDir
|
||||||
}
|
}
|
||||||
@@ -29,6 +29,9 @@ Windows Registry Editor Version 5.00
|
|||||||
; 关闭“尝试必应的文本建议” (也就是云候选项/Web文本建议)
|
; 关闭“尝试必应的文本建议” (也就是云候选项/Web文本建议)
|
||||||
"EnableCloudCandidate"=dword:00000000
|
"EnableCloudCandidate"=dword:00000000
|
||||||
|
|
||||||
|
; === 开启桌面图标排列 ===
|
||||||
|
;[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop]
|
||||||
|
;"FFlags"=dword:40200225
|
||||||
|
|
||||||
; 关闭 IPv6
|
; 关闭 IPv6
|
||||||
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP6\Parameters]
|
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP6\Parameters]
|
||||||
|
|||||||
@@ -23,4 +23,4 @@ echo Calling main.ps1...
|
|||||||
:: -ExecutionPolicy Bypass: 绕过默认的脚本执行策略限制
|
:: -ExecutionPolicy Bypass: 绕过默认的脚本执行策略限制
|
||||||
:: -File: 指定要运行的脚本文件
|
:: -File: 指定要运行的脚本文件
|
||||||
|
|
||||||
powershell.exe -NoExit -NoProfile -ExecutionPolicy Bypass -File ".\main.ps1"
|
powershell.exe -NoExit -NoProfile -ExecutionPolicy Bypass -File ".\bin\main.ps1"
|
||||||
|
|||||||
Reference in New Issue
Block a user