Skip to content

Commit

Permalink
try like that
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin committed Jan 28, 2025
1 parent 57e5d46 commit 2fe393e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions eng/tsp-core/pipelines/jobs/build-standalone-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,19 @@ jobs:
retryCountOnTaskFailure: 3
inputs:
versionSpec: 22.x
- pwsh: |
$windowsSdkPath=Get-ChildItem "$programFiles\Windows Kits\10\bin\1*" | Select-Object FullName | Sort-Object -Descending { [version](Split-Path $_.FullName -leaf)} | Select-Object -first 1
$signtoolPath = "$($windowsSdkPath.FullName)\$systemBit\signtool.exe"
echo "Sign tool path: $signtoolPath"
echo "##vso[task.setvariable variable=SIGNTOOL_PATH]$signtoolPath"
displayName: Find signtool path
- script: npm install -g pnpm
displayName: Install pnpm

- script: pnpm install --filter "@typespec/standalone-cli"
displayName: Install JavaScript Dependencies

- script: pnpm build
workingDirectory: packages/standalone
displayName: Build
Expand Down
Binary file added packages/standalone/cli
Binary file not shown.
6 changes: 5 additions & 1 deletion packages/standalone/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ async function createSea() {
if (process.platform === "darwin") {
execa`codesign --remove-signature ${exePath}`;
} else if (process.platform === "win32") {
// execa`signtool remove /s ${exePath}`;
execa({
command: process.env.SIGNTOOL_PATH,
args: [`remove`, `/s`, exePath],
// arguments: [`remove`, `/s` exePath]});
});
}
});
await action(`Creating blob ${seaConfigPath}`, async () => {
Expand Down

0 comments on commit 2fe393e

Please sign in to comment.