@nativescript/windows 0.1.0-alpha.69 → 0.1.0-alpha.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build.ps1 +38 -0
- package/framework/libs/arm64/nativescript.dll +0 -0
- package/framework/libs/devtools/arm64/nativescript.dll +0 -0
- package/framework/libs/devtools/x64/nativescript.dll +0 -0
- package/framework/libs/x64/nativescript.dll +0 -0
- package/package.json +1 -1
- package/tools/dotnet-tool-arm64.exe +0 -0
- package/tools/dotnet-tool-x64.exe +0 -0
- package/tools/dotnet-tool.exe +0 -0
package/build.ps1
CHANGED
|
@@ -134,6 +134,44 @@ foreach ($t in $Targets) {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
# ── dotnet-tool prebuilt binaries ────────────────────────────────────────────
|
|
138
|
+
Write-Host "`n=== Build dotnet-tool prebuilt binaries ===" -ForegroundColor Cyan
|
|
139
|
+
$ToolsDir = Join-Path $ScriptDir "tools"
|
|
140
|
+
if (-not (Test-Path $ToolsDir)) { New-Item -ItemType Directory -Force -Path $ToolsDir | Out-Null }
|
|
141
|
+
|
|
142
|
+
# Build dotnet-tool for each Rust target defined above and copy into template/tools
|
|
143
|
+
foreach ($t in $Targets) {
|
|
144
|
+
$arch = $t.Arch
|
|
145
|
+
$rustTarget = $t.RustTarget
|
|
146
|
+
Write-Host "Building dotnet-tool for $arch ($rustTarget)..."
|
|
147
|
+
Push-Location $RepoRoot
|
|
148
|
+
try {
|
|
149
|
+
& cargo build -p dotnet-tool --release --target $rustTarget
|
|
150
|
+
$buildExit = $LASTEXITCODE
|
|
151
|
+
} finally {
|
|
152
|
+
Pop-Location
|
|
153
|
+
}
|
|
154
|
+
if ($buildExit -ne 0) {
|
|
155
|
+
Write-Host "cargo build for dotnet-tool failed for target $rustTarget (exit $buildExit). Skipping copy for $arch." -ForegroundColor Yellow
|
|
156
|
+
continue
|
|
157
|
+
}
|
|
158
|
+
$candidate = Join-Path $RepoRoot "target\$rustTarget\release\dotnet-tool.exe"
|
|
159
|
+
if (Test-Path $candidate) {
|
|
160
|
+
$dest = Join-Path $ToolsDir "dotnet-tool-$arch.exe"
|
|
161
|
+
Copy-Item -Force $candidate $dest
|
|
162
|
+
Write-Host " copied dotnet-tool -> $(Resolve-Path $dest -Relative)"
|
|
163
|
+
} else {
|
|
164
|
+
Write-Host "Expected build output not found: $candidate" -ForegroundColor Yellow
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
# Also provide a generic `dotnet-tool.exe` fallback (copy x64 if available)
|
|
169
|
+
$x64Path = Join-Path $ToolsDir "dotnet-tool-x64.exe"
|
|
170
|
+
if (Test-Path $x64Path) {
|
|
171
|
+
Copy-Item -Force $x64Path (Join-Path $ToolsDir "dotnet-tool.exe")
|
|
172
|
+
Write-Host " copied dotnet-tool-x64.exe -> dotnet-tool.exe"
|
|
173
|
+
}
|
|
174
|
+
|
|
137
175
|
Write-Host ""
|
|
138
176
|
Write-Host "Done." -ForegroundColor Green
|
|
139
177
|
Write-Host ""
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|