From 4e5baa0a48b20c72686b38a329a0a5c86ac94138 Mon Sep 17 00:00:00 2001 From: Petr Broz Date: Mon, 20 May 2019 16:54:41 +0200 Subject: [PATCH 1/2] Archive binaries using zip instead of tar. --- README.md | 8 ++++++++ package.json | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 680dbc4..ca51794 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Command line tools for Autodesk Forge services. ## Usage +### Using npm + - install the library, either in your own npm project (`npm install --save forge-cli-utils`), or globally (`npm install --global forge-cli-utils`) - setup `FORGE_CLIENT_ID` and `FORGE_CLIENT_SECRET` env. vars with your app credentials @@ -14,6 +16,12 @@ Command line tools for Autodesk Forge services. - `forge-md` - [Forge Model Derivative](https://forge.autodesk.com/en/docs/model-derivative/v2) service - `forge-da` - [Forge Design Automation](https://forge.autodesk.com/en/docs/design-automation/v3) service +### Self-contained binaries + +Scripts in this library are also packaged into self-contained binaries for various platforms +using the [pkg](https://www.npmjs.com/package/pkg) module. You can download the binaries on +the [release](https://github.com/petrbroz/forge-cli-utils/releases) pages. + ## Examples ### Data Management diff --git a/package.json b/package.json index b5faac4..779d996 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ }, "scripts": { "build": "npm run build:win && npm run build:macos", - "build:win": "export FORGE_CLI_ARCH=node10-win-x64 && npm run pack && tar czf bin/$FORGE_CLI_ARCH.tar.gz bin/$FORGE_CLI_ARCH/* && rm -rf bin/$FORGE_CLI_ARCH", - "build:macos": "export FORGE_CLI_ARCH=node10-macos-x64 && npm run pack && tar czf bin/$FORGE_CLI_ARCH.tar.gz bin/$FORGE_CLI_ARCH/* && rm -rf bin/$FORGE_CLI_ARCH", + "build:win": "export FORGE_CLI_ARCH=node10-win-x64 && npm run pack && zip -jr bin/$FORGE_CLI_ARCH.zip bin/$FORGE_CLI_ARCH/* && rm -rf bin/$FORGE_CLI_ARCH", + "build:macos": "export FORGE_CLI_ARCH=node10-macos-x64 && npm run pack && zip -jr bin/$FORGE_CLI_ARCH.zip bin/$FORGE_CLI_ARCH/* && rm -rf bin/$FORGE_CLI_ARCH", "pack": "npm run pack:dm && npm run pack:md && npm run pack:da", "pack:dm": "pkg src/forge-dm.js --targets $FORGE_CLI_ARCH --out-path bin/$FORGE_CLI_ARCH", "pack:md": "pkg src/forge-md.js --targets $FORGE_CLI_ARCH --out-path bin/$FORGE_CLI_ARCH", From c776dd583619595f1ca9355cce014b829850f994 Mon Sep 17 00:00:00 2001 From: Petr Broz Date: Mon, 20 May 2019 16:55:19 +0200 Subject: [PATCH 2/2] Bumped to version 0.6.5. --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index f183c72..8cdcee2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "forge-cli-utils", - "version": "0.6.4", + "version": "0.6.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 779d996..d997d15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "forge-cli-utils", - "version": "0.6.4", + "version": "0.6.5", "description": "Command line tools for Autodesk Forge services.", "bin": { "forge-dm": "src/forge-dm.js",