From 2faab7e8de473fc8e30a0a2a92b3dcc6a06a65c7 Mon Sep 17 00:00:00 2001 From: Yehuda Kremer Date: Thu, 30 Nov 2023 03:16:28 +0200 Subject: [PATCH] fix #250 --- CHANGELOG.md | 4 ++++ lib/src/configuration.dart | 6 ++++-- pubspec.yaml | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47d572a..f59e0f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 3.16.7 + +- fix [#250](https://github.com/YehudaKremer/msix/issues/250) + ## 3.16.6 - update MaxVersionTested diff --git a/lib/src/configuration.dart b/lib/src/configuration.dart index d1fa7aa..0f6ba36 100644 --- a/lib/src/configuration.dart +++ b/lib/src/configuration.dart @@ -244,7 +244,7 @@ class Configuration { if (msixVersion.isNull) msixVersion = '1.0.0.0'; if (architecture.isNull) architecture = 'x64'; - buildFilesFolder = await _getBuildFilesFolder(); + buildFilesFolder = await _updateBuildFilesFolder(); if (createWithDebugBuildFiles) { buildFilesFolder = buildFilesFolder.replaceFirst('Release', 'Debug'); @@ -354,6 +354,8 @@ class Configuration { /// Validate "flutter build windows" output files Future validateWindowsBuildFiles() async { + buildFilesFolder = await _updateBuildFilesFolder(); + _logger.trace('validating build files'); if (!await Directory(buildFilesFolder).exists() || @@ -419,7 +421,7 @@ class Configuration { _args = parser.parse(args.where((arg) => arg != '-v')); } - Future _getBuildFilesFolder() async { + Future _updateBuildFilesFolder() async { final String buildFilesFolderStart = buildFilesFolder.substring(0, buildFilesFolder.lastIndexOf('runner')); final String buildFilesFolderArchitecture = diff --git a/pubspec.yaml b/pubspec.yaml index 761b642..ba660b3 100644 --- a/pubspec.yaml +++ b/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.16.6 +version: 3.16.7 maintainer: Yehuda Kremer (yehudakremer@gmail.com) homepage: https://github.com/YehudaKremer/msix issue_tracker: https://github.com/YehudaKremer/msix/issues