mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
cca242a581
This greatly improves startup time as pyinstaller doesn't have to unpack everything on startup. The same also applies to macOS and Linux, but there we 1) don't have installers to hide all the files and 2) have a filesystem that deals much better with lots of small files. Additionally, simplify cibuild to be a bit more reasonable.
7 lines
258 B
PowerShell
7 lines
258 B
PowerShell
$tool = $args[0]
|
|
if (Get-Command wt -ErrorAction SilentlyContinue) {
|
|
Start-Process wt -ArgumentList "powershell.exe","-Command","& '$PSScriptRoot\$tool.exe'"
|
|
} else {
|
|
Start-Process powershell -ArgumentList "-Command","& '$PSScriptRoot\$tool.exe'"
|
|
}
|