Skip to content

Commit 91ee258

Browse files
authored
Merge pull request #73 from microsoft/nmetulev/docs-update
Minor docs clean up and clarifying known sparse packaging issue
2 parents 543bae5 + 23f3c7a commit 91ee258

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
<a href="#-feedback">Feedback</a>
1919
</h3>
2020
<br/><br/>
21-
The Windows Development CLI is a single command line interface for managing Windows SDKs, packaging, generating app identity, manifests, certificates and using build tools with any app framework. This tool bridges the gap between cross-platform development and Windows-native capabilities.
21+
22+
> [!IMPORTANT]
23+
> The Windows App Development CLI is in priview and in active development, and we’d love your feedback! Share your thoughts by creating an [issue](https://github.com/microsoft/WinAppCli/issues).
24+
25+
The Windows App Development CLI is a single command line interface for managing Windows SDKs, packaging, generating app identity, manifests, certificates and using build tools with any app framework. This tool bridges the gap between cross-platform development and Windows-native capabilities.
2226
<br/><br/>
2327
Whether you're building with Electron, .NET/Win32, CMake or Python, this CLI gives you access to:
2428

docs/usage.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ winapp restore [options]
5757
**Options:**
5858

5959
- `--config-dir <path>` - Directory containing winapp.yaml (default: current directory)
60-
- `--prerelease` - Include prerelease packages from NuGet
6160

6261
**What it does:**
6362

@@ -109,12 +108,12 @@ winapp update --prerelease
109108

110109
---
111110

112-
### package
111+
### pack
113112

114-
Create MSIX packages from prepared application directories. Requires Appxmanifest file to be present in the directory (run `init` or `manifest generate` to create a manifest)
113+
Create MSIX packages from prepared application directories. Requires appxmanifest.xml file to be present in the target dirrectory, in the current directory, or passed with the `--manifest` option. (run `init` or `manifest generate` to create a manifest)
115114

116115
```bash
117-
winapp package <input-folder> [options]
116+
winapp pack <input-folder> [options]
118117
```
119118

120119
**Arguments:**
@@ -146,13 +145,13 @@ winapp package <input-folder> [options]
146145

147146
```bash
148147
# Package directory with auto-detected manifest
149-
winapp package ./dist
148+
winapp pack ./dist
150149

151150
# Package with custom output name and certificate
152-
winapp package ./dist --output MyApp.msix --cert ./cert.pfx
151+
winapp pack ./dist --output MyApp.msix --cert ./cert.pfx
153152

154-
# Package with generated and installed certificate and self-contained runtime
155-
winapp package ./dist --generate-cert --install-cert --self-contained
153+
# Package with generated and installed certificate and self-contained winAppSDK runtime
154+
winapp pack ./dist --generate-cert --install-cert --self-contained
156155
```
157156

158157
---
@@ -249,17 +248,21 @@ Generate and install development certificates.
249248

250249
#### cert generate
251250

252-
Generate development certificates for code signing.
251+
Generate development certificates for package signing.
253252

254253
```bash
255254
winapp cert generate [options]
256255
```
257256

258257
**Options:**
259258

259+
- `--manifest <appxmanifest.xml>` - Extract publisher information from appxmanifest.xml
260260
- `--publisher <name>` - Publisher name for certificate
261261
- `--output <path>` - Output certificate file path
262262
- `--password <password>` - Certificate password (default: "password")
263+
- `--valid-days <valid-days>` - Number of days the certificate is valid (default: 365)
264+
- `--install` - Install the certificate to the local machine store after generation
265+
- `--if-exists <Error|Overwrite|Skip>` - Set behavior if the certificate file already exists [default: Error]
263266

264267
#### cert install
265268

@@ -316,7 +319,7 @@ winapp sign ./bin/MyApp.exe --cert ./mycert.pfx --cert-password mypassword
316319

317320
### tool
318321

319-
Access Windows SDK tools directly.
322+
Access Windows SDK tools directly. Uses tools available in [Microsoft.Windows.SDK.BuildTools](https://www.nuget.org/packages/Microsoft.Windows.SDK.BuildTools/)
320323

321324
```bash
322325
winapp tool <tool-name> [tool-arguments]
@@ -327,7 +330,7 @@ winapp tool <tool-name> [tool-arguments]
327330
- `makeappx` - Create and manipulate app packages
328331
- `signtool` - Sign files and verify signatures
329332
- `mt` - Manifest tool for side-by-side assemblies
330-
- And other Windows SDK tools
333+
- And other Windows SDK tools from [Microsoft.Windows.SDK.BuildTools](https://www.nuget.org/packages/Microsoft.Windows.SDK.BuildTools/)
331334

332335
**Examples:**
333336

@@ -389,7 +392,12 @@ npx winapp node create-addon --name myWindowsAddon
389392

390393
### node add-electron-debug-identity
391394

392-
*(Node.js/Electron only)* Add app identity to Electron development process.
395+
*(Available in NPM package only)* Add app identity to Electron development process by using sparse packaging. Requires an appxmanifest.xml (create one with `winapp init` or `winapp manifest generate` if you don't have one)
396+
397+
> [!IMPORTANT]
398+
> There is a known issue with sparse packaging Electron applications which causes the app to crash on start or not render the web content. The issue has been fixed in Windows but it has not propagated to external Windows devices yet. If you are seeing this issue after calling `add-electron-debug-identity`, you can [disable sandboxing in your Electron app](https://www.electronjs.org/docs/latest/tutorial/sandbox#disabling-chromiums-sandbox-testing-only) for debug purposes with the `--no-sandbox` flag. This issue does not affect full MSIX packaging.
399+
<br /><br />
400+
To undo the electron debug identity, the easiest is to clear your node modules folder (or just the electron folder) and `npm install` again
393401

394402
```bash
395403
npx winapp node add-electron-debug-identity [options]

0 commit comments

Comments
 (0)