mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
add modules for ps enhancements
This commit is contained in:
parent
828f6e935b
commit
5d42a2ec64
5 changed files with 18 additions and 5 deletions
8
.gitmodules
vendored
8
.gitmodules
vendored
|
|
@ -9,4 +9,10 @@
|
|||
url = https://bitbucket.org/ftrack/ftrack-python-api.git
|
||||
[submodule "openpype/modules/ftrack/python2_vendor/arrow"]
|
||||
path = openpype/modules/ftrack/python2_vendor/arrow
|
||||
url = https://github.com/arrow-py/arrow.git
|
||||
url = https://github.com/arrow-py/arrow.git
|
||||
[submodule "vendor/powershell/BurntToast"]
|
||||
path = vendor/powershell/BurntToast
|
||||
url = https://github.com/Windos/BurntToast.git
|
||||
[submodule "vendor/powershell/PSWriteColor"]
|
||||
path = vendor/powershell/PSWriteColor
|
||||
url = "https://github.com/EvotecIT/PSWriteColor.git"
|
||||
|
|
@ -28,6 +28,13 @@ if($arguments -eq "--no-submodule-update") {
|
|||
$disable_submodule_update=$true
|
||||
}
|
||||
|
||||
$current_dir = Get-Location
|
||||
$script_dir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
|
||||
$openpype_root = (Get-Item $script_dir).parent.FullName
|
||||
|
||||
# Install PSWriteColor to support colorized output to terminal
|
||||
$env:PSModulePath = $env:PSModulePath + ";$($openpype_root)\vendor\powershell"
|
||||
|
||||
function Start-Progress {
|
||||
param([ScriptBlock]$code)
|
||||
$scroll = "/-\|/-\|"
|
||||
|
|
@ -110,10 +117,6 @@ Write-Host $art -ForegroundColor DarkGreen
|
|||
# Enable if PS 7.x is needed.
|
||||
# Show-PSWarning
|
||||
|
||||
$current_dir = Get-Location
|
||||
$script_dir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
|
||||
$openpype_root = (Get-Item $script_dir).parent.FullName
|
||||
|
||||
$env:_INSIDE_OPENPYPE_TOOL = "1"
|
||||
|
||||
if (-not (Test-Path 'env:POETRY_HOME')) {
|
||||
|
|
@ -201,6 +204,8 @@ Write-Host "restoring current directory"
|
|||
Set-Location -Path $current_dir
|
||||
|
||||
$endTime = [int][double]::Parse((Get-Date -UFormat %s))
|
||||
New-BurntToastNotification -AppLogo "$openpype_root/openpype/resources/icons/openpype_icon.png" -Text "OpenPype build complete!", "All done in $($endTime - $startTime) secs. You will find OpenPype and build log in build directory."
|
||||
|
||||
Write-Host "*** " -NoNewline -ForegroundColor Cyan
|
||||
Write-Host "All done in $($endTime - $startTime) secs. You will find OpenPype and build log in " -NoNewLine
|
||||
Write-Host "'.\build'" -NoNewline -ForegroundColor Green
|
||||
|
|
|
|||
1
vendor/powershell/BurntToast
vendored
Submodule
1
vendor/powershell/BurntToast
vendored
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit ae0acdd870a2fd8d9f0d147de22dc36d6c5e399e
|
||||
1
vendor/powershell/PSWriteColor
vendored
Submodule
1
vendor/powershell/PSWriteColor
vendored
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 12eda384ebd7a7954e15855e312215c009c97114
|
||||
0
vendor/powershell/README.md
vendored
Normal file
0
vendor/powershell/README.md
vendored
Normal file
Loading…
Add table
Add a link
Reference in a new issue