|
4 | 4 | $PackageArguments |
5 | 5 | ) |
6 | 6 |
|
7 | | -# Define OS targets and corresponding RIDs |
8 | | -$osMap = @{ |
9 | | - "windows_x64" = "win-x64" |
10 | | - "windows_arm64" = "win-arm64" |
11 | | - "linux_x64" = "linux-x64" |
12 | | - "linux_arm64" = "linux-arm64" |
13 | | - "macOS_x64" = "osx-x64" |
14 | | - "macOS_arm64" = "osx-arm64" |
15 | | -} |
| 7 | +# # Define OS targets and corresponding RIDs |
| 8 | +# $osMap = @{ |
| 9 | +# "windows_x64" = "win-x64" |
| 10 | +# "windows_arm64" = "win-arm64" |
| 11 | +# "linux_x64" = "linux-x64" |
| 12 | +# "linux_arm64" = "linux-arm64" |
| 13 | +# "macOS_x64" = "osx-x64" |
| 14 | +# "macOS_arm64" = "osx-arm64" |
| 15 | +# } |
16 | 16 |
|
17 | | -if (-not $osMap.ContainsKey($os)) { |
18 | | - Write-Error "Unknown OS: $os. Valid options: $($osMap.Keys -join ', ')" |
19 | | - exit 1 |
20 | | -} |
21 | | -# Define project and destination base paths |
22 | | -$projectPath = Resolve-Path "../../src" |
23 | | -$dstBase = Join-Path $PSScriptRoot "server" |
| 17 | +# if (-not $osMap.ContainsKey($os)) { |
| 18 | +# Write-Error "Unknown OS: $os. Valid options: $($osMap.Keys -join ', ')" |
| 19 | +# exit 1 |
| 20 | +# } |
| 21 | +# # Define project and destination base paths |
| 22 | +# $projectPath = Resolve-Path "../../src" |
| 23 | +# $dstBase = Join-Path $PSScriptRoot "server" |
24 | 24 |
|
25 | 25 |
|
26 | | -# Build and package for the specified OS only |
27 | | -$dstDir = Join-Path $dstBase $os |
28 | | -if (!(Test-Path $dstDir)) { |
29 | | - New-Item -ItemType Directory -Path $dstDir | Out-Null |
30 | | -} |
31 | | -dotnet publish $projectPath -c Release -r $($osMap[$os]) --self-contained true -o $dstDir |
| 26 | +# # Build and package for the specified OS only |
| 27 | +# $dstDir = Join-Path $dstBase $os |
| 28 | +# if (!(Test-Path $dstDir)) { |
| 29 | +# New-Item -ItemType Directory -Path $dstDir | Out-Null |
| 30 | +# } |
| 31 | +# dotnet publish $projectPath -c Release -r $($osMap[$os]) --self-contained true -o $dstDir |
32 | 32 |
|
33 | 33 | # Run the npm packaging step |
34 | 34 | Invoke-Expression "npm run ci-package -- $PackageArguments" |
0 commit comments