Giter Site home page Giter Site logo

Comments (11)

KasaiKonoru avatar KasaiKonoru commented on May 27, 2024

And how to include node_modules as assets?
Or other pictures and scripts?

from exe.

AngaBlue avatar AngaBlue commented on May 27, 2024

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.

AngaBlue avatar AngaBlue commented on May 27, 2024

And how to include node_modules as assets?
Or other pictures and scripts?

Please refer to Vercel's exe package documentation.

from exe.

KasaiKonoru avatar KasaiKonoru commented on May 27, 2024

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.

KasaiKonoru avatar KasaiKonoru commented on May 27, 2024

Or do i need to add soemthing in the package.json? (I only know this way)

from exe.

AngaBlue avatar AngaBlue commented on May 27, 2024

There can be only one entry point for an executable, you can't have multiple scripts.

from exe.

AngaBlue avatar AngaBlue commented on May 27, 2024

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.

bentacos avatar bentacos commented on May 27, 2024

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.

RGdevz avatar RGdevz commented on May 27, 2024

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.

AngaBlue avatar AngaBlue commented on May 27, 2024

Hi, @RGdevz thank you for the code snippet. I'm implementing this feature now.

from exe.

AngaBlue avatar AngaBlue commented on May 27, 2024

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 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.