From 77e23e34ff418c84856c8722834a0bacfc06c9a9 Mon Sep 17 00:00:00 2001 From: Julian Freeman Date: Thu, 25 Dec 2025 17:19:25 -0400 Subject: [PATCH] upgrade 1.1 --- assets/fileshredder/File Shredder.lnk | Bin 0 -> 1480 bytes assets/keepassxc/KeePassXC.lnk | Bin 0 -> 1449 bytes apps.json => bin/apps.json | 10 ++++++++++ main.ps1 => bin/main.ps1 | 10 +++++----- config/sys_optimize.reg | 3 +++ install.bat | 2 +- 6 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 assets/fileshredder/File Shredder.lnk create mode 100644 assets/keepassxc/KeePassXC.lnk rename apps.json => bin/apps.json (91%) rename main.ps1 => bin/main.ps1 (92%) diff --git a/assets/fileshredder/File Shredder.lnk b/assets/fileshredder/File Shredder.lnk new file mode 100644 index 0000000000000000000000000000000000000000..cb0e06fbfa6cd34e5df58bd147e8376eb3b128b3 GIT binary patch literal 1480 zcmbtUT}abW6hBh~O-)S;lhRcvTDmrMxEA6}ol~R@S7bRvaesB`nC(NPhd|0;p%iG4 zq$%M?P!a}ZVWs&hmRQ*bJ*3csMwo9s^w978_l1cGbuYhj&OP_+{?0wS=U+xdlDHs9 zqA5|5_7;Vb6n41!$-70@XUXK!gPlvzG}E86JUuHRXR;V6@x=ROyCja13}5tf(iOEO z`p$?V%$DYLh=GV04f|T=Y~{-i;wcxxTnO{~}yY3ZoEOebH7?c#QXCh$;%< z&;Vhn_{;J`lVl(}*{B|}hO9_iOBQM(fgFg?KsLZ`!px#fl95@o(NuA&Z!VliPo+uBrSVEI&W;c>2#BogNI$ofjNr9{*^DW`B8sOvaB}Hv z`Dq6c(O?(MX2C8KS_Pugbv&Ls+uh8wEkNP7{ybdys}}lsxPe#xvi{C-7c1fLaVxK=UvQjz*`gIm7Cz zbJ;B|)V-p*)SK6-zc;+x*5hokOpmPwzg_$hb9tU3(q;z7w%WI#tHN;pd7P~<8jRoN z&p#EAyLja1TL zxoLf6g{V zRHEWXW&OxXlfD#!s2?&6!ajaTKMayE|CCTadd~H3%e184%X8lIo^$T`y63$%B9g_+ zL5YS$O6DsRO&aEVZ}tSwypx%qkEMT9yqAT}mP0#4OPNR`4z4fV#HX| zz1u3&M0{(7MuBXSf7XTkk7sdXkNngvvmmJqe2 zVjl#!+*q9Zt1Hhx9p1jJ@2W6hcr}{Dx+(yrw>hx$@_9WqZog;t06Np2*qi9|6m)&n zR@6>(JUBaavb(S0i|Stcv#9HLUk)#(cjNlRz`qy1^yT*Q&$`ENO?0ZLXC|ob4D4N3 z0=XD11_%LHTuGOUF*V|vuudmQvtVz;+j^X{C0o6ypS`*qs|(;{bkpkx zrizl3UDNWa=GMtuJbX*pfRkAU%&$5$0z@mJUk>2PVoCoU7RK?Jnb1#%`xmYe6F?U$ z(+vOKhY0)?9%g#Z8m literal 0 HcmV?d00001 diff --git a/apps.json b/bin/apps.json similarity index 91% rename from apps.json rename to bin/apps.json index 286b1ad..76c904e 100644 --- a/apps.json +++ b/bin/apps.json @@ -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" } ] }, diff --git a/main.ps1 b/bin/main.ps1 similarity index 92% rename from main.ps1 rename to bin/main.ps1 index 55f8db6..ff80dfb 100644 --- a/main.ps1 +++ b/bin/main.ps1 @@ -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 } diff --git a/config/sys_optimize.reg b/config/sys_optimize.reg index 18483b2..2af8a78 100644 --- a/config/sys_optimize.reg +++ b/config/sys_optimize.reg @@ -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] diff --git a/install.bat b/install.bat index 6b99e98..481252f 100644 --- a/install.bat +++ b/install.bat @@ -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"