Code Monkey home page Code Monkey logo

Comments (8)

micross avatar micross commented on June 4, 2024 1

@Abhishek0116 this line msix/main/lib/src/configuration.dart

add

msixAssetsPath = Uri.decodeFull(msixAssetsPath);

after

msixAssetsPath = packages
            .firstWhere((package) => package.contains('msix:'))
            .replaceAll('msix:', '')
            .replaceAll('file:///', '') +
        'assets';

however, a simple way is to remove the space in Abhishek Kumar.

FYI: the .packages file is deprecated. see Dart Package Configuration File v2.0

from msix.

Abhishek0116 avatar Abhishek0116 commented on June 4, 2024 1

Thanks, @micross and @YehudaKremer I have fixed my issue with your help and tested my created Windows app successfully. As @YehudaKremer said that issue is fixed in version 0.1.14 and currently I tested successfully with version 0.1.15 so I am closing this issue.

from msix.

YehudaKremer avatar YehudaKremer commented on June 4, 2024

hello Abhishek

Maybe the problem is file path with a space,
I'm not sure yet.

Please try to setup the 3 icons in your pubspec.yaml like that:

msix_config:
  logo_path: C:\<PathToIcon>\<Logo.png>
  start_menu_icon_path: C:\<PathToIcon>\<Icon.png>
  tile_icon_path: C:\<PathToIcon>\<Icon.png>

with that the problem is still happening?

from msix.

Abhishek0116 avatar Abhishek0116 commented on June 4, 2024

@YehudaKremer Thanks for your reply.

I tried the above solution but now another error occurred

Here's all command I ran

flutter clean && flutter pub get

flutter build windows

flutter pub run msix:create

Here's the full output

C:\Users\Abhishek Kumar\Development\AndroidStudioProjects\TestProjects\beeta_lubricants>flutter clean && flutter pub get
Deleting .dart_tool...                                              18ms
Deleting .packages...                                                3ms
Deleting Generated.xcconfig...                                       2ms
Deleting flutter_export_environment.sh...                            2ms
Deleting ephemeral...                                               15ms
Deleting ephemeral...                                                3ms
Deleting ephemeral...                                                6ms
Deleting .flutter-plugins-dependencies...                            2ms
Deleting .flutter-plugins...                                         3ms
Running "flutter pub get" in beeta_lubricants...                    3.2s

C:\Users\Abhishek Kumar\Development\AndroidStudioProjects\TestProjects\beeta_lubricants>flutter build windows

Building with unsound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety

Building Windows application...

C:\Users\Abhishek Kumar\Development\AndroidStudioProjects\TestProjects\beeta_lubricants>flutter pub run msix:create
getting config values..  [√]
validate config values..  [√]
cleaning temporary files..  [√]
create icons folder..  [√]
copy icons..  [√]
create manifest file..  [√]
copy VCLibs files..  Unhandled exception:
FileSystemException: Directory listing failed, path = 'C:/Users/Abhishek%20Kumar/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-0.1.12/lib/assets/VCLibs/x64\*' (OS Error: The system cannot
 find the path specified.
, errno = 3)
Instance of '_StringStackTrace'pub finished with exit code 255

C:\Users\Abhishek Kumar\Development\AndroidStudioProjects\TestProjects\beeta_lubricants>

from msix.

micross avatar micross commented on June 4, 2024

the file path comes from the config file .packages which is uri encoded.

from msix.

Abhishek0116 avatar Abhishek0116 commented on June 4, 2024

the file path comes from the config file .packages which is uri encoded.

Hey, @micross thanks for this info.

What do I need to modify from my side? Can you please explain a bit?

from msix.

YehudaKremer avatar YehudaKremer commented on June 4, 2024

@micross Thank you for your inputs!

  • i update the code to use package_config.dart instead of .packages.
  • added Uri.decodeFull

@Abhishek0116 please check if the problem solved in version 0.1.14

from msix.

YehudaKremer avatar YehudaKremer commented on June 4, 2024

Hello @Abhishek0116 Did the fix help you?

from msix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.