mirror of
https://github.com/We-Dont-Byte/Mind_Reader.git
synced 2024-11-15 03:35:59 +00:00
Move install files to new directory
Open VSCode in the new repo after installation
This commit is contained in:
parent
40778b52fc
commit
2948765ba8
@ -56,7 +56,8 @@ param (
|
|||||||
[switch]$DryRun # Run script without installing
|
[switch]$DryRun # Run script without installing
|
||||||
)
|
)
|
||||||
|
|
||||||
$SetupPath = 'Mind_Reader/setup-development'
|
$RepoPath = "$GitDir\Mind_Reader"
|
||||||
|
$SetupPath = "$RepoPath\setup-development\windows"
|
||||||
|
|
||||||
if ($h -or $Help) {
|
if ($h -or $Help) {
|
||||||
Get-Help ./install-windows.ps1
|
Get-Help ./install-windows.ps1
|
||||||
@ -166,9 +167,11 @@ $args += if ($DryRun) {" -DryRun"} else {""}
|
|||||||
PowerShell ("./upgrade-windows.ps1 -Install -NoPrompt" + $args)
|
PowerShell ("./upgrade-windows.ps1 -Install -NoPrompt" + $args)
|
||||||
|
|
||||||
# Open VSCode in the repository location
|
# Open VSCode in the repository location
|
||||||
code .
|
Write-Host "`nOpening Visual Studio Code"
|
||||||
|
cd $RepoPath
|
||||||
|
Dry-Run "code ."
|
||||||
|
|
||||||
cd $dir
|
cd $dir
|
||||||
if ( -not $NoPrompt ) {
|
if ( -not $NoPrompt ) {
|
||||||
Write-Host "Press any key to exit."; [void][Console]::ReadKey(1)
|
Write-Host "`nPress any key to exit."; [void][Console]::ReadKey(1)
|
||||||
}
|
}
|
@ -157,7 +157,7 @@ $prev_directory = $pwd
|
|||||||
|
|
||||||
# install NodeJS dependencies for this extension
|
# install NodeJS dependencies for this extension
|
||||||
Write-Host "`nInstalling NodeJS Dependencies..."
|
Write-Host "`nInstalling NodeJS Dependencies..."
|
||||||
cd ..
|
cd ..\..
|
||||||
Dry-Run 'npm install'
|
Dry-Run 'npm install'
|
||||||
|
|
||||||
# if we're on a known VSCode version, go ahead and run electron-rebuild
|
# if we're on a known VSCode version, go ahead and run electron-rebuild
|
||||||
@ -189,5 +189,5 @@ switch -Regex (code --version) {
|
|||||||
# Return from whence we came
|
# Return from whence we came
|
||||||
cd $prev_directory
|
cd $prev_directory
|
||||||
if ( -not $NoPrompt ) {
|
if ( -not $NoPrompt ) {
|
||||||
Write-Host "Press any key to exit."; [void][Console]::ReadKey(1)
|
Write-Host "`nPress any key to exit."; [void][Console]::ReadKey(1)
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user