aboutsummaryrefslogtreecommitdiff
path: root/dev_tools/scripts/windows-folder-hide.ps1
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-10 16:54:57 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-10 16:54:57 +0800
commit5d258482fb84d58c966a7ccc1b467708278d28ad (patch)
tree1a0c9d2e245d43ff7bc11d9088cf88a5264d293f /dev_tools/scripts/windows-folder-hide.ps1
parenta8c8d50b6c59b103da7fd4bbb5e7ca3ff7b2f49a (diff)
refactor(devtools): rename dev_tools to .run and replace run-tools
scripts Replace the old run-tools.ps1/run-tools.sh scripts with a new unified run.ps1/run.sh launcher that supports multiple languages (PowerShell, Rust, Python, Go, C#, Nim, Perl, Ruby, Zig, and arbitrary binaries) from the `.run/src/bin` directory. Move all development tools from `dev_tools/` to `.run/`, update Cargo workspace config and relevant documentation references.
Diffstat (limited to 'dev_tools/scripts/windows-folder-hide.ps1')
-rw-r--r--dev_tools/scripts/windows-folder-hide.ps143
1 files changed, 0 insertions, 43 deletions
diff --git a/dev_tools/scripts/windows-folder-hide.ps1 b/dev_tools/scripts/windows-folder-hide.ps1
deleted file mode 100644
index 0ab2632..0000000
--- a/dev_tools/scripts/windows-folder-hide.ps1
+++ /dev/null
@@ -1,43 +0,0 @@
-# Check `last_check`
-
-$lastCheckFile = Join-Path $PSScriptRoot "last_check"
-$currentTime = Get-Date
-$timeThreshold = 10
-
-if (Test-Path $lastCheckFile) {
- $lastCheckTime = Get-Content $lastCheckFile | Get-Date
- $timeDiff = ($currentTime - $lastCheckTime).TotalMinutes
-
- if ($timeDiff -lt $timeThreshold) {
- exit
- }
-}
-
-$currentTime.ToString() | Out-File -FilePath $lastCheckFile -Force
-
-# Hide Files
-
-Set-Location -Path (Join-Path $PSScriptRoot "..\..")
-
-Get-ChildItem -Path . -Force -Recurse -ErrorAction SilentlyContinue | Where-Object {
- $_.FullName -notmatch '\\.temp\\' -and $_.FullName -notmatch '\\.git\\'
-} | ForEach-Object {
- attrib -h $_.FullName 2>&1 | Out-Null
-}
-
-Get-ChildItem -Path . -Force -Recurse -ErrorAction SilentlyContinue | Where-Object {
- $_.Name -match '^\..*' -and $_.FullName -notmatch '\\\.\.$' -and $_.FullName -notmatch '\\\.$'
-} | ForEach-Object {
- attrib +h $_.FullName 2>&1 | Out-Null
-}
-
-if (Get-Command git -ErrorAction SilentlyContinue) {
- git status --ignored --short | ForEach-Object {
- if ($_ -match '^!!\s+(.+)$') {
- $ignoredPath = $matches[1]
- if ($ignoredPath -notmatch '\.lnk$' -and (Test-Path $ignoredPath)) {
- attrib +h $ignoredPath 2>&1 | Out-Null
- }
- }
- }
-}