/
diev
/
dfinke-ImportExcel
Обзор
Документация
Войти
/
diev
/
dfinke-ImportExcel
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
InstallModule.ps1
11 строк
681 B
dfinke
Don't publish images folder and more - Suggestion: Remove unnecessary files when publishing to the gallery #1187
28 май 2022, 13:32
28 май 2022, 13:32
d5b807d
Код
Авторство
О чём код?
param ($fullPath) #$fullPath = 'C:\Program Files\WindowsPowerShell\Modules\ImportExcel' if (-not $fullPath) { $fullpath = $env:PSModulePath -split ":(?!\\)|;|," | Where-Object {$_ -notlike ([System.Environment]::GetFolderPath("UserProfile")+"*") -and $_ -notlike "$pshome*"} | Select-Object -First 1 $fullPath = Join-Path $fullPath -ChildPath "ImportExcel" } Push-location $PSScriptRoot Robocopy . $fullPath /mir /XD .vscode images .git .github CI __tests__ data mdHelp spikes /XF README.md README.original.md appveyor.yml azure-pipelines.yml .gitattributes .gitignore filelist.txt install.ps1 InstallModule.ps1 PublishToGallery.ps1 Pop-Location