From d8d4cc7e91a86db430ea1dadae69ac338bdd112a Mon Sep 17 00:00:00 2001 From: Jeff King Date: Thu, 9 Jul 2020 17:07:33 -0700 Subject: [PATCH] Guarantee "execute" permissions for NPM package. (#1986) * Chmod for Darwin. * Chmod for Linux. * Fix. --- npm/sarif-multitool-darwin/package.json | 3 +++ npm/sarif-multitool-linux/package.json | 3 +++ 2 files changed, 6 insertions(+) diff --git a/npm/sarif-multitool-darwin/package.json b/npm/sarif-multitool-darwin/package.json index 618e49dc5..da128a5d0 100644 --- a/npm/sarif-multitool-darwin/package.json +++ b/npm/sarif-multitool-darwin/package.json @@ -2,6 +2,9 @@ "name": "@microsoft/sarif-multitool-darwin", "description": "SARIF Multitool for MacOS (Darwin)", "version": "{version}", + "scripts": { + "postinstall": "chmod u+x Sarif.Multitool" + }, "author": "Microsoft", "license": "MIT", "repository": { diff --git a/npm/sarif-multitool-linux/package.json b/npm/sarif-multitool-linux/package.json index 7646e23b5..ad4243d20 100644 --- a/npm/sarif-multitool-linux/package.json +++ b/npm/sarif-multitool-linux/package.json @@ -2,6 +2,9 @@ "name": "@microsoft/sarif-multitool-linux", "description": "SARIF Multitool for Linux", "version": "{version}", + "scripts": { + "postinstall": "chmod u+x Sarif.Multitool" + }, "author": "Microsoft", "license": "MIT", "repository": {