E
E
Evgeny Koryakin2021-07-05 13:14:19
Node.js
Evgeny Koryakin, 2021-07-05 13:14:19

How to properly organize an appeal to an application with the exe format?

Hello!

I'm working on an Inno Pascal application where it's built with a command like compil32.exe /cc "c:\isetup\samples\my script.iss" . And I often use WebPack to optimize images and then separately execute a compilation request. So, is it possible to somehow force the npm run build command to build both images, and send a compilation request via compil32.exe /cc "c:\isetup\samples\my script.iss" ?

Also, I often have to work on different platforms and it would be great to optimize for different OS, where:
Windows - compil32.exe /cc "c:\path\script.iss"
MacOS - wine32on64 compil32.exe /cc /Users /path/script.iss
Linux -wine compil32.exe /cc /Users/path/script.iss

Most likely Inno Setup itself will be a Node module and the path to compil32.exe will be through node modules.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-07-05
@Aetae

What problems?
The most stupid option: in package.jsonin scriptsfor buildwrite something like . Smarter: just write a js module that determines the platform (google it) and calls the appropriate command through node exec and call it directly in . In a prettier way: wrap that module in the simplest webpack plugin that runs at the desired build stage. compil32.exe /cc "./script.iss" & webpack

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question