YehudaKremer / msix

Create Msix installer for flutter windows-build files.
https://pub.dev/packages/msix
MIT License
280 stars 69 forks source link

[BUG] No promt "Do you want to install the certificate.." when using --install-certificate true #163

Closed mmattes closed 1 year ago

mmattes commented 1 year ago

:information_source: Info

Version: 3.7.0

:speech_balloon: Description

flutter pub run msix:publish --publish-folder-path C:\Temp --install-certificate true does not install the certificate, i have seen in your code a promt for it but its not triggered, i have tried it with and without admin rights.


[  +70 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +137 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] 4f9d92fbbdf072a70a70d2179a9f87392b94104c
[   +1 ms] executing: [C:\flutter/] git tag --points-at 4f9d92fbbdf072a70a70d2179a9f87392b94104c
[ +126 ms] Exit code 0 from: git tag --points-at 4f9d92fbbdf072a70a70d2179a9f87392b94104c
[        ] 3.3.1
[  +62 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{upstream}
[  +90 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{upstream}
[        ] origin/stable
[        ] executing: [C:\flutter/] git ls-remote --get-url origin
[  +81 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +338 ms] Unable to locate an Android SDK.
[   +3 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[  +73 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +98 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +85 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +112 ms] Using C:\flutter\.pub-cache for the pub cache.
[   +1 ms] executing: C:\flutter\bin\cache\dart-sdk\bin\dart __deprecated_pub run msix:publish --publish-folder-path C:\Temp --install-certificate true -v
[     0.018s] parsing cli arguments
[     0.190s] validating config values
[     0.192s] validating app installer config values
[     0.193s] validate publish version
[     0.200s] You publishing the same version (0.0.1) as last publish
Do you want to increment it to version 0.0.2 ? (y/N) n
[     2.618s] running "flutter build windows"...
[    15.598s] building msix files...
[    15.598s] validating build files
[    15.606s] cleaning temporary files
[    15.619s] create app icons
[    15.938s] copying VC libraries
[    15.964s] generate appx manifest
[    15.974s] generate package resource indexing files
[    16.152s] packing msix files...
[    16.153s] packing
[    18.372s] cleaning temporary files
[    18.399s] publishing...
[    18.399s] copy msix to versions folder
[    18.420s] generate app installer
[    18.426s] generate app installer web site
appinstaller created: C:\Temp/one_app.appinstaller[+20484 ms] "flutter run" took 20.709ms.
[  +83 ms] ensureAnalyticsSent: 64ms
[   +2 ms] Running shutdown hooks
[   +1 ms] Shutdown hooks complete
[   +1 ms] exiting with code 0

### :scroll: Pubspec.yaml

<!--- Please include your pubspec.yaml file here --->

```msix_config:
  display_name: XXX
  publisher_display_name: XXX
  identity_name: XXX
  publisher: CN=XXXXXX-XXX-XX-80D5-072F17E152F6
  capabilities: internetClient
  store: true
mmattes commented 1 year ago

Ah my bad, i thought the cli has a higher priority then the misx_conifg in the Pubspec.yaml. I had store: true in my Pubspec.yaml which then causes msix:publish to not self sign the package.