Comments (11)
And how to include node_modules as assets?
Or other pictures and scripts?
from exe.
For example:
asInvoker or requireAdministrator(changing manifest of the exe)
Is this functionality supported by ResEdit? If so I can add it, or you can submit a PR.
from exe.
And how to include node_modules as assets?
Or other pictures and scripts?
Please refer to Vercel's exe package documentation.
from exe.
Please refer to Vercel's exe package documentation.
Yeah, I mean I can only add arguments in the json file.
Like:
pkg: ['-C', 'GZip']
but when I want to add the array for static files or other scripts how I can put it into this array in your config.
which symboles I need to use?
For example:
(pkg: ['--debug', '--no-bytecode']) is easy but how I type in there the scripts or assets?
from exe.
Or do i need to add soemthing in the package.json? (I only know this way)
from exe.
There can be only one entry point for an executable, you can't have multiple scripts.
from exe.
As for the namesake of this issue, I don't see how this is possible with ResEdit. If you know otherwise, please submit a PR and I will happily review it.
from exe.
Please refer to Vercel's exe package documentation.
Yeah, I mean I can only add arguments in the json file. Like: pkg: ['-C', 'GZip']
but when I want to add the array for static files or other scripts how I can put it into this array in your config. which symboles I need to use?
For example: (pkg: ['--debug', '--no-bytecode']) is easy but how I type in there the scripts or assets?
if you want to add assets/scripts, add this option:
pkg: ["-c", "./package.json"]
the package.json should contain your assets tree:
"pkg": {
"assets": [
"./script1.cjs",
"./script2.cjs",
"./script3.cjs"
]
},
from exe.
For example:
asInvoker or requireAdministrator
(changing manifest of the exe)Is this functionality supported by ResEdit? If so I can add it, or you can submit a PR.
hi, yes you can do it like this:
const exe = PELibrary.NtExecutable.from(fs.readFileSync(path.resolve('app.exe')))
const ntExecutableResource = PELibrary.NtExecutableResource.from(exe)
const manifest = ntExecutableResource.getResourceEntriesAsString(24,1)[0][1]
ntExecutableResource.replaceResourceEntryFromString(24,1,1033,manifest.replace('asInvoker','requireadministrator'))
ntExecutableResource.outputResource(exe)
fs.writeFileSync('MyApp_modified.exe', Buffer.from(exe.generate()));
from exe.
Hi, @RGdevz thank you for the code snippet. I'm implementing this feature now.
from exe.
The executionLevel
option has be added in the latest version (v2.1.0). Thank you again for your contribution!
from exe.
Related Issues (8)
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 exe.