Comments (10)
@TheNoim thanks. Added to roadmap: https://github.com/pmq20/node-compiler/blob/master/ROADMAP.md
from node-packer.
Just excluded some common files by default; need to make this configurable: 945cedc
from node-packer.
@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.
@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.
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.
@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.
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.
+1
from node-packer.
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.
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.
Is this thread/repo dead or what?
from node-packer.
Related Issues (20)
- 放弃维护了吗? HOT 9
- npm installation?
- How to hide Windows command prompt after start a.exe file
- Cannot create destination file: No such file or directory HOT 3
- Linux Exceutable Decompiling
- Will there be Nodec with Node.js 10 LTS HOT 3
- Getting Error - No such file or directory @ rb_sysopen HOT 2
- How do I separate the configuration from being compiled? HOT 1
- nodec-v1.5.0-x64 throw errors "No such file or directory - node -pe process.arch"
- How to build nodec for Window? HOT 4
- Is ARM supported? HOT 1
- i don't know how to install Linux operating system HOT 1
- Windows version does not work (Win10, nodec 1.5.0 x64) HOT 3
- Can we resurrect node-packer to get it working with latest Node.js versions? HOT 35
- Assertion `backup_off == lseek_off' failed. HOT 2
- how to use the latest source code to build binary, instead of using the old 1.5.0 version? HOT 3
- ../deps/uv/include/uv.h:37:10: fatal error: enclose_io.h: No such file or directory HOT 4
- Can the packaged executable file effectively protect the source code? HOT 1
- fatal error: Killed signal terminated program cc1 HOT 1
- fatal error: enclose_io.h: No such file or directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-packer.