A
A
aiband2016-11-14 20:55:09
linux
aiband, 2016-11-14 20:55:09

How can I build a binary for most platforms?

Hello. Perhaps the question is stupid. I'm still not sure that it should be asked completely without understanding the topic, but maybe everything will turn out to be a little easier ...
The point is the following. I'm writing a small javascript application for myself. It just so happened that javascript was not endowed with special abilities when it works "separately from the browser". Therefore, people use separate binaries of programs written in another language when some more functionality is needed. Right now I need the functionality of making screenshots. Googled the scrot app. And ... now I stumbled upon a problem. What if this program will not be in the user's OS? Then I need to put the binary in the folder with my application and execute it (it's very rough, it doesn't work like that, but the essence is the same). But if I just pull out scrot from my OS, then as I understand it, this will not be any guarantee at all that it will work on some other Linux? (or will it?) Is it possible to somehow compile the binary so that

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2016-11-14
@xmoonlight

https://nwjs.io/

D
Dark Hole, 2016-11-14
@abyrkov

Electron, NW.js - there are a lot of options. And how to compile for each platform is written in the docks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question