@nimiplatform/app-tools 0.2.0 → 0.2.1
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/lib/app-pack.mjs +2 -1
- package/lib/index.mjs +2 -1
- package/lib/windows-powershell.mjs +7 -0
- package/package.json +2 -2
package/lib/app-pack.mjs
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
import path from 'node:path';
|
|
14
14
|
import { spawnSync } from 'node:child_process';
|
|
15
15
|
import { parse as parseYaml } from 'yaml';
|
|
16
|
+
import { windowsPowerShellEnv } from './windows-powershell.mjs';
|
|
16
17
|
|
|
17
18
|
const PACKAGE_FORMAT = 'nimi.app-package/v1';
|
|
18
19
|
const TARGET_METADATA_FORMAT = 'nimi.app-target-candidate/v1';
|
|
@@ -308,7 +309,7 @@ function verifyWindowsNativeTrust(input) {
|
|
|
308
309
|
"$signature = Get-AuthenticodeSignature -LiteralPath $env:NIMI_APP_SIGN_TARGET; if ($signature.Status -ne 'Valid' -or -not $signature.SignerCertificate) { Write-Error ('Authenticode status: ' + $signature.Status); exit 1 }; $signature.SignerCertificate.Subject",
|
|
309
310
|
], {
|
|
310
311
|
encoding: 'utf8',
|
|
311
|
-
env: {
|
|
312
|
+
env: windowsPowerShellEnv({ NIMI_APP_SIGN_TARGET: input.runtimeHostPath }),
|
|
312
313
|
});
|
|
313
314
|
const subject = requireCommand(result, 'Windows Authenticode verification').trim();
|
|
314
315
|
if (!subject) throw new Error('Windows Authenticode verification returned no signer subject');
|
package/lib/index.mjs
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
testAppProject,
|
|
18
18
|
} from './app-project-lifecycle.mjs';
|
|
19
19
|
import { aggregateAppTargetCandidates, packAppTarget } from './app-pack.mjs';
|
|
20
|
+
import { windowsPowerShellEnv } from './windows-powershell.mjs';
|
|
20
21
|
export { runDevShell } from '../scripts/dev-shell.mjs';
|
|
21
22
|
export {
|
|
22
23
|
validateSimulatorAppSource,
|
|
@@ -136,7 +137,7 @@ function signWindowsTarget(targetDir, relativePayloadPath) {
|
|
|
136
137
|
const result = spawnSync('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command', script], {
|
|
137
138
|
cwd: targetDir,
|
|
138
139
|
encoding: 'utf8',
|
|
139
|
-
env: {
|
|
140
|
+
env: windowsPowerShellEnv({ NIMI_APP_SIGN_TARGET: targetPath }),
|
|
140
141
|
});
|
|
141
142
|
if (result.status !== 0) {
|
|
142
143
|
const detail = [result.error?.message, result.stdout, result.stderr].filter(Boolean).join('\n').trim();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimiplatform/app-tools",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Public app-authoring CLI for Nimi App projects.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"nimiScaffoldVersions": {
|
|
21
21
|
"sdkVersion": "^0.7.0",
|
|
22
|
-
"appToolsVersion": "^0.2.
|
|
22
|
+
"appToolsVersion": "^0.2.1",
|
|
23
23
|
"nimicodingVersion": "0.6.1",
|
|
24
24
|
"aiSdkVersion": "^6.0.85",
|
|
25
25
|
"kitVersion": "^0.3.0",
|