Skip to content

Commit

Permalink
Add swiftformat to dev PATH on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
furby-tm committed Jul 31, 2024
1 parent 6ec138e commit 954d335
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build_files/build_environment/KrakenDeveloperProfile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,24 @@ if ($IsMacOS) {
}
}

# Windows Environment.
if ($IsWindows) {
$WINDOWS_SWIFTFORMAT_PATH = "$env:USERPROFILE/Wabi/SwiftFormat/.build/x86_64-unknown-windows-msvc/release"

# swiftformat (built from source)
#
# cd ~/
# mkdir Wabi
#
# git clone https://github.com/nicklockwood/SwiftFormat.git
# cd SwiftFormat
#
# swift build -c release
if (Test-Path -Path $WINDOWS_SWIFTFORMAT_PATH) {
$env:PATH = '{0}{1}{2}' -f $env:PATH,[IO.Path]::PathSeparator,$WINDOWS_SWIFTFORMAT_PATH
}
}

# --------------------------------------- Powershell modules. -----

if (Get-Module -ListAvailable -Name PSWriteColor) {
Expand Down

0 comments on commit 954d335

Please sign in to comment.