Skip to content

Commit

Permalink
Update build.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
prikolium-cfx authored May 1, 2024
1 parent c6c35d4 commit f263df3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ $env:GYP_MSVS_VERSION = "2022"

# Get the current directory of the script
$CURRENT_DIR = Split-Path -Parent $MyInvocation.MyCommand.Path
Write-Host "Current directory: $CURRENT_DIR"

# Define the directory to be mounted
$MOUNT_DIR = "${CURRENT_DIR}\.."
Write-Host "Mount directory: $MOUNT_DIR"

# Attempt to remove X: mapping; ignore errors
Remove-PSDrive -Name "X" -ErrorAction SilentlyContinue

# Map X: to the current directory's parent
New-PSDrive -Name "X" -PSProvider FileSystem -Root "${CURRENT_DIR}\.." -ErrorAction SilentlyContinue
# Map X: to the defined mount directory
New-PSDrive -Name "X" -PSProvider FileSystem -Root $MOUNT_DIR -ErrorAction SilentlyContinue

# Define more variables using the new drive mapping
$DOWNLOAD_DIR = "X:\chromium_git"
Expand Down

0 comments on commit f263df3

Please sign in to comment.