From 8016025655098c4a953bb23cf3de892ac91f6aa4 Mon Sep 17 00:00:00 2001 From: Yehuda Kremer Date: Fri, 12 May 2023 05:45:58 +0300 Subject: [PATCH] fix #175 --- CHANGELOG.md | 4 ++++ README.md | 2 +- lib/src/configuration.dart | 5 ++++- pubspec.yaml | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f82e74..cc8a5f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 3.12.1 + +- fix [#175](https://github.com/YehudaKremer/msix/issues/175): `app_installer -> publish_folder_path` config field is now support absolute-path + ## 3.12.0 - fix [#193](https://github.com/YehudaKremer/msix/issues/193): remove `isolate` to support Flutter version >=3.10.0 (Dart 3v) diff --git a/README.md b/README.md index b90c794..914be7d 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ --- -##### 📢**Important**: For Flutter version `>=3.10.0`, you need to use Msix package version `>=3.12.0` +#### 📢 **Important**: For Flutter version `>=3.10.0`, you need to use Msix package version `>=3.12.0` --- diff --git a/lib/src/configuration.dart b/lib/src/configuration.dart index d749111..55e6c03 100644 --- a/lib/src/configuration.dart +++ b/lib/src/configuration.dart @@ -334,7 +334,10 @@ class Configuration { _logger.trace('validating app installer config values'); if (publishFolderPath.isNullOrEmpty || - !await Directory(publishFolderPath!).exists()) { + (!await Directory(publishFolderPath!).exists() && + !await Directory(publishFolderPath = + '${Directory.current.path}\\${publishFolderPath!}') + .exists())) { _logger.stderr( 'publish folder path is not exists, check "app_installer: publish_folder_path" at pubspec.yaml' .red); diff --git a/pubspec.yaml b/pubspec.yaml index 27cf0d2..9554dd1 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.12.0 +version: 3.12.1 maintainer: Yehuda Kremer (yehudakremer@gmail.com) homepage: https://github.com/YehudaKremer/msix issue_tracker: https://github.com/YehudaKremer/msix/issues