OpenFin allows developers to package native applications along with their web based applications. In this tutorial, you’ll launch a co-deployed .exe with the OpenFin Javascript API.
npm install
npm start
Native assets are include as appAssets in your Application Manifest.
"appAssets": [
{
"src": "http://localhost:9966/assets/dist.zip",
"alias": "pdftohtml-alias",
"target": "pdftohtml.exe",
"version": "0.0.1"
}
]
src Path to a hosted .zip containing the executablealias Name to use when invoking the .exetarget .exe contained in the .zip fileversion asset version number. Updating the version number will tell your application to fetch a new version of the asset.In this repo, the executable is launched using the input from the app as an argument. Optionally, you can include an args field in your appAsset object which will be passed along when invoking.
After including the asset, you can launch using the fin.desktop.System.launchExternalProcess call. See In Source
This is a starter example and intended to demonstrate to app providers a sample of how to approach an implementation.
By downloading OpenFin, you agree to the terms of our Developer License.
Please enter an issue in the repo for any questions or problems.