Giter VIP home page Giter VIP logo

Comments (10)

pmq20 avatar pmq20 commented on August 20, 2024 2

@TheNoim thanks. Added to roadmap: https://github.com/pmq20/node-compiler/blob/master/ROADMAP.md

from node-packer.

pmq20 avatar pmq20 commented on August 20, 2024 2

Just excluded some common files by default; need to make this configurable: 945cedc

from node-packer.

rahbari avatar rahbari commented on August 20, 2024 1

@lexor90 It's also useful when you use preprocessors like Stylus. In packaged version, it's possible to include just the generated CSS files and exclude Stylus files.

from node-packer.

pmq20 avatar pmq20 commented on August 20, 2024 1

@ledmirage Yes there is a way. It is currently only possible on the C level, but I am planning to make it to the upper level via a special environment variable. If you search for "mkdir_workdir" in the libsquash project you will find related logic.

default

That variable mkdir_workdir serves as the outside temporary location when it receives mkdir requests inside the work dir. Therefore you could mkdir a config directory and write a file to it inside the memfs, and it will be written to the outside location mkdir_workdir. If we can control mkdir_workdir via a env. var. we can let the user select a place to write the config file to, e.g. . (current dir.).

from node-packer.

lexor90 avatar lexor90 commented on August 20, 2024

@TheNoim thanks for the suggestion. May I ask a concrete example where this would be useful?

I can only think of excluding tests/ and other assets in order to reduce the binary size, but unless your project has images or other heavy assets I don't think it would be much different.

from node-packer.

TheNoim avatar TheNoim commented on August 20, 2024

This is exactly the reason why I want this feature. If you have things like a demo gif in your repo or useless md files or anything else what only is important while developing. Or even file which a still in developing but already in the src root. I think it is such a basic feature.

from node-packer.

CocaCola183 avatar CocaCola183 commented on August 20, 2024

+1

from node-packer.

ledmirage avatar ledmirage commented on August 20, 2024

i would like some files to be excluded for a different reason: configuration files.
right now I am able to compile an exe with config files included in the exe. But this means i can't modify the configuration during run-time without re-compiling. And I find that if I remove the config file from compilation, I can't access that file as the compiled exe seems only try to look for the file from the built-in file system (/enclose_io_memfs/ ...), even tho that file is placed in the same folder as the exe.

Basically, is there a way to allow the compiled exe to access external files (outside of the exe) ?

from node-packer.

khuongduybui avatar khuongduybui commented on August 20, 2024

Please note that we need to both read from and write to external files.
This is the ONLY blocker for me. This library is awesome in so many ways that it broke my heart when I can't use it...

from node-packer.

khuongduybui avatar khuongduybui commented on August 20, 2024

Is this thread/repo dead or what?

from node-packer.

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.