I am generating electron distro for linux. This is how the app is built This is how app is built in packge.json
"builderForLinx": "electron-packager --out linx64 --overwrite --platform linux --appname myApp --asar"
this app structure myApp -> myApp(the linux executable), mian.js, resources -> myApp.asar
This gives an linux version electron package. But I have to run the following commands to run the app
sudo chmod +x ./myApp
sudo chown root chrome-sandbox
sudo chmod 4755 chrome-sandbox
Actually I get the app from tfs build artifact and when I download this app, I want to directly run ./myApp.
This is my tfs definition, I run all these in bash, not my agent/build machines are windows ones.
#!/bin/bash
cd "$(Build.ArtifactStagingDirectory)/myApp" ; pwd
chown <<username>> chrome-sandbox
chmod 4755 chrome-sandbox
Note : $(Build.ArtifactStagingDirectory) is the tfs variable which points to artifact directory. When I run the app directly in linux machine I see this error
The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/staff/kjeeva/licregsNew/v211/licensingclient/linx64/ClientSettings-asar/chrome-sandbox is owned by root and has mode 4755.
I am not well versed with linux environment, any help or suggestions on this will be great help.