How to release a shell command within an Electron package - electron

I notice that Atom is build with Electron and it has a shell command apm within the app package.
I want to borrow this idea. However there is no documentation about how to do this.
Anybody can help?

Related

Error when trying to deploy signal-twilio-video-webrtc-go-demo

I'm trying to deploy a simple video chat as part of our website customer support. The sample code has been a big help and so far I have successfully built and deployed both of these:
twilio/twilio-video-app-react
twilio/twilio-video-diagnostics-react-app
The instructions for both of those were clear and I had no problem deploying them to the serverless service.
However, the react app has more features than we need, so I was hoping to try a smaller, simpler sample web application from here:
philnash/signal-twilio-video-webrtc-go-demo
My problem/question is that when I follow those instructions and get to:
npm run deploy
all I get is an error message:
signal-twilio-videe-webrtc-go#0.0.0 predeploy
build
sh: build: command not found
Can anyone explain what that means and how I can get past that error?
Twilio developer evangelist and creator of that demo here.
Apologies for getting the predeploy script wrong, I thought I knew what I was doing.
I have now updated the predeploy script to npm run build as you suggested in your comment.
As for why this was a problem, I believe that I was under the misconception that one npm script could refer to another without the npm run prefix. However, it cannot. So, to run one npm script from another, as in this predeploy script, I needed to refer to the script as npm run build. I am referring to another script like this because the predeploy script is automatically run by npm before the deploy script (you can do this with any script you create, and you can run scripts after using the post prefix too).
I have updated the repo with this, as well as some dependency updates, so hopefully this doesn't cause further problems.

Automatically exit Visual Build Professional tool when build is done?

Visual Build Professional has an [Exit] action but it only terminates the build currently in progress. Is there any way for it to terminate the entire build tool?
I have a frequently run build script which I usually let run in the background, and it would be convenient if the tool would clean itself up by terminating altogether once this build is done.
Include the /s flag when starting VisBuildPro.exe (if using a VisBuildPro Project action, check 'Run GUI App in silent mode' on the Project tab) so that it will exit after the build finishes.
https://kinook.com/VisBuildPro/Manual/command_linegui.htm
You may also want to check 'Tools | User Options | Build | Honor command-line switches if build fails/canceled and continued'.
https://kinook.com/VisBuildPro/Manual/builduseropt.htm
Similar to running the GUI tool with a command line, another possibility is to run the build script using the VisBuildCmd.exe command line executor.
Details: https://www.kinook.com/VisBuildPro/Manual/index.htm?consoleapp.htm
This does not quite meet the question's objective of having the script itself cause the build tool to terminate, and would require either running the command manually at a prompt or otherwise scripting it like with a batch file. However once setup this achieves nearly the same result.

launch a .bat in TFS2015 build

I have a problem trying to launch a server via a .bat file during a TFS build.
I usually launch the server via a cmd window and it works fine.
When I set it in the TFS build, I end up with the following message :
"'..\server_common.bat' is not recognized as an internal command or external, an executable or a command file".
I also have the following line:
"java -Dsun.lang.ClassLoader.allowArraySyntax=true -Xbootclasspath/a:..\..\..\lib\framework\serverjvm15.jar; -cp ..\..\..\lib\framework\fwtime.jar;" indicating a java syntax error (? I'm not skilled in java)
This batch calls other .bat files and sets java VM-related environment variables
From my research, it is probably a problem of rights as I don't have admin rights when I use TFS. However, all the other steps in the build work fine (installing and launching an appli through command lines, or launching a python script via command lines).
However I also tried to launch a basic script with the same kind of step and it works.
First, suggest you to follow the tutorial in Batch script. Make sure you have meet the requirements of Arguments and used correctly. Such as
Path
Specify the path to the .bat or .cmd script you want to run. The path
must be a fully qualified path or a valid path relative to
the default working directory. In Team Foundation Build, this
directory is $(Build.SourcesDirectory).
Also RDP to your build agent and use your build service account manually run the server_common.bat to narrow down if the account have enough permission.

Missing SEAM_HOME environment variable fails Ant build

My machine just had its hard drive re-imaged so I'm trying to rebuild it. At this point, I am trying to execute an ant script which has worked for years. Not anymore. When the script compiles the javac errors because it can't find a directory.
The error is...
BUILD FAILED
C:\Users\WHeckle\Documents\temp\6.9.2\build-tceq.xml:92: C:\Users\WHeckle\Documents\temp\6.9.2\${env.SEAM_HOME}\lib does not exist.
It looks like it is concatenating the current directory with seam_home and using it as a library reference to the compiler.
I am at a loss to explain the behavior. Any help is appreciated.
The Ant script expects to find a Windows environment variable named SEAM_HOME.
To get the script to work...
Close any Command Prompts that are open.
Create a SEAM_HOME Windows system environment variable (if this step is unclear, search Google to find instructions on how to do this for your version of Windows).
Open a new Command Prompt.
Run echo %SEAM_HOME% in the Command Prompt to confirm that the environment variable is set.
Re-run your Ant script.
SEAM_HOME appears to be related to JBoss. For an example of what the value of SEAM_HOME can be, see this JBossDeveloper forum post.

Worklight ANT with shell component

I have an applciation that uses the shell and inner applications.
There is an ant command to build the applications but no command to build
the shell component. Is there something i missed in the docs?
Thanks
There is currently no Ant command to build the Shell component. This can only be done in Eclipse.
We have this in our tracking system as a feature request.
Thanks.

Resources