[misc] refine windows scripts
This commit is contained in:
parent
505595fb6e
commit
266f6aff8f
|
@ -1,27 +0,0 @@
|
|||
param (
|
||||
[parameter(Mandatory=$false)] [switch] $Delete,
|
||||
[parameter(Mandatory=$false)] [string] $OutFormat=".mkv",
|
||||
[parameter(Mandatory=$true, Position=0)] [string] $InPath,
|
||||
[parameter(Mandatory=$true, Position=1)] [string] $OutPath
|
||||
)
|
||||
|
||||
if (-not (Test-Path -LiteralPath $InPath -Type Leaf)) {
|
||||
Write-Error "Invalid Input File Path $($InPath)"
|
||||
exit
|
||||
}
|
||||
|
||||
if (-not (Test-Path -LiteralPath $OutPath)) {
|
||||
Write-Error "Invalid Output Path $($OutPath)"
|
||||
exit
|
||||
}
|
||||
if (Test-Path -LiteralPath $OutPath -PathType Container) {
|
||||
$OutPath = Join-Path $OutPath ((Split-Path -Leaf $InPath) + $OutFormat)
|
||||
}
|
||||
|
||||
$ConvertedInPath = Convert-Path -LiteralPath $InPath
|
||||
$InDrive = "bluray:$((Mount-DiskImage $ConvertedInPath | Get-Volume).DriveLetter):\\"
|
||||
ffmpeg.exe -i $InDrive -c:v copy $OutPath
|
||||
Dismount-DiskImage $ConvertedInPath
|
||||
if ($Delete) {
|
||||
Remove-Item -LiteralPath $InPath
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
Remove-Item $env:AppData\Microsoft\Windows\Recent\* -Recurse
|
|
@ -1,10 +0,0 @@
|
|||
yarn config set registry https://registry.npm.taobao.org --global
|
||||
yarn config set disturl https://npm.taobao.org/dist --global
|
||||
yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass --global
|
||||
yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/ --global
|
||||
yarn config set puppeteer_download_host https://npm.taobao.org/mirrors --global
|
||||
yarn config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver --global
|
||||
yarn config set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver --global
|
||||
yarn config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs --global
|
||||
yarn config set selenium_cdnurl https://npm.taobao.org/mirrors/selenium --global
|
||||
yarn config set node_inspector_cdnurl https://npm.taobao.org/mirrors/node-inspector --global
|
|
@ -1,7 +0,0 @@
|
|||
Set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
If wscript.arguments.count <2 then
|
||||
WshShell.run "nvim-qt.exe"
|
||||
Else
|
||||
sCmd = "nvim-qt.exe " & """" & wscript.arguments(1) & """"
|
||||
WshShell.run sCmd
|
||||
End If
|
Loading…
Reference in New Issue
Block a user