Skip to content

SmartThingsCommunity/cli-nexe-builds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nexe builds for the SmartThings CLI

Cached builds of Node for nexe to be used with nexe for the SmartThings CLI.

This repository is somewhat based on https://github.com/urbdyn/nexe_builds.

Using this repository

You can use the builds in this repository by including the download directory of the release following via the --remote command line option to nexe. For example, for version 1.0.0, use:

nexe --remote \
	https://github.com/SmartThingsCommunity/cli-nexe-builds/releases/download/1.0.0 \
	<other options>

Creating a new release

Creating a new release of this is somewhat manual at this point.

  1. Make your changes, e.g. update the Node version or nexe version.

  2. Update the version number in package.json.

  3. Create a new release, documenting which version of nexe and Node this release is for.

  4. Upload and/or build assets. (See below)

Uploading or building assets

Assets can be built locally and uploaded or built in github by triggering the "Build" workflow. Currently there is no cross-compilation setup so builds are done for the architecture they are built on. As a result, it is currently not possible to build ARM Linux builds in GitHub.

Building Locally

You can build locally to make things quicker in some cases as builds on GitHub take a very long time. Building locally is required for the Linux ARM build.

Build Workflow

To build in GitHub, trigger the "Build" workflow manually. Build locally and any that have already been uploaded will be skipped.

Building via the "Build" workflow builds for the following targets:

  • Windows Intel

  • Linux Intel

  • MacOS Intel

  • MacOS ARM

  1. Clone this repository

  2. Install the exact version of Node you will be building for.

  3. Run npm install

  4. Ensure the machine has the capability of building Node (see https://github.com/nodejs/node/blob/main/BUILDING.md).

  5. Set GH_TOKEN to a token with read and write Content scopes.

  6. Run node bin/build.mjs

  7. Once the build is successful, it will be uploaded.

About

Cached nexe builds for the SmartThings CLI.

Resources

License

Stars

Watchers

Forks

Packages

No packages published