Skip to content

Commit

Permalink
fix bug #126
Browse files Browse the repository at this point in the history
  • Loading branch information
YehudaKremer committed May 6, 2022
1 parent c240fa2 commit 17290a5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## 3.6.1

- added validation on field `publisher` that required when settings `sign_msix: false` ([#126](https://github.com/YehudaKremer/msix/issues/126))

## 3.6.0

- added [apps for websites](https://docs.microsoft.com/en-us/windows/uwp/launch-resume/web-to-app-linking) ([#125](https://github.com/YehudaKremer/msix/pull/125))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -101,7 +101,7 @@ See [Configurations Examples And Use Cases].
| `certificate_password` | `--certificate-password` `-p` | Password for the certificate. | `1234` |
| `publisher` | `--publisher` `-b` | The `Subject` value in the certificate. | `CN=BF212345-5644-46DF-8668-014043C1B138` or `CN=Contoso Software, O=Contoso Corporation, C=US` |
| `signtool_options` | `--signtool-options` | Options to be provided to the `signtool` for app signing (see below.) | `/v /fd SHA256 /f C:/Users/me/Desktop/my.cer` |
| `sign_msix` | `--sign-msix <true/false>` | If `false`, don't sign the msix file, default is `true`. | `true` |
| `sign_msix` | `--sign-msix <true/false>` | If `false`, don't sign the msix file, default is `true`.<br />Note: when **false**, `publisher` is Required. | `true` |
| `install_certificate` | `--install-certificate <true/false>` | If `false`, don't try to install the certificate, default is `true`. | `true` |

</details>
Expand Down
8 changes: 8 additions & 0 deletions example/README.md
Expand Up @@ -45,6 +45,14 @@ msix_config:
```
Note: The main app version will be used as a basis for the MSIX version (`1.3.2` to `1.3.2.0`)

###### Without signing

```yaml
msix_config:
publisher: CN=PublisherName, O=Msix Testing... # required
sign_msix: false
```

###### With Metadata:

```yaml
Expand Down
5 changes: 5 additions & 0 deletions lib/src/configuration.dart
Expand Up @@ -195,6 +195,11 @@ class Configuration {
publisherName = identityName;
}
}
if (signMsix == false && publisher.isNullOrEmpty) {
_logger.stderr(
'when sign_msix is false, you must provide the publisher value at "msix_config: publisher" in the pubspec.yaml file');
exit(-1);
}
if (store && publisher.isNullOrEmpty) {
_logger.stderr(
'publisher is empty, check "msix_config: publisher" at pubspec.yaml');
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,6 +1,6 @@
name: msix
description: A command-line tool that create Msix installer from your flutter windows-build files.
version: 3.6.0
version: 3.6.1
maintainer: Yehuda Kremer (yehudakremer@gmail.com)
homepage: https://github.com/YehudaKremer/msix

Expand Down

0 comments on commit 17290a5

Please sign in to comment.