diff --git a/gulp/package.json b/gulp/package.json index 73f21c52..a212f3f6 100644 --- a/gulp/package.json +++ b/gulp/package.json @@ -112,9 +112,11 @@ "postcss-unprefix": "^2.1.3", "sass-unused": "^0.3.0", "strip-json-comments": "^3.0.1", - "tobspr-osx-sign": "^1.0.1", "trim": "^0.0.1", "webpack-stream": "^5.2.1", "yaml-loader": "^0.6.0" + }, + "optionalDependencies": { + "tobspr-osx-sign": "^1.0.1" } } diff --git a/gulp/standalone.js b/gulp/standalone.js index 54a07a11..ecd393a2 100644 --- a/gulp/standalone.js +++ b/gulp/standalone.js @@ -8,7 +8,13 @@ const fse = require("fs-extra"); const buildutils = require("./buildutils"); const execSync = require("child_process").execSync; const electronNotarize = require("electron-notarize"); -const { signAsync } = require("tobspr-osx-sign"); + +let signAsync; +try { + signAsync = require("tobspr-osx-sign").signAsync; +} catch (ex) { + console.warn("tobspr-osx-sign not installed, can not create osx builds"); +} function gulptasksStandalone($, gulp) { const targets = [ diff --git a/gulp/yarn.lock b/gulp/yarn.lock index 22d619a3..f82b3204 100644 --- a/gulp/yarn.lock +++ b/gulp/yarn.lock @@ -12342,7 +12342,6 @@ to-through@^2.0.0: through2 "^2.0.3" tobspr-osx-sign@^1.0.1: - name electron-osx-sign version "1.0.1" resolved "https://registry.yarnpkg.com/tobspr-osx-sign/-/tobspr-osx-sign-1.0.1.tgz#5cca32185d813357b556a6a839305558656c45d5" integrity sha512-jXSw9n/ivAnHwwpImvHnTkhbeI06ZDvLKLP3rryZLBoAt1nfljoIEgdPz7vNlOUBGwVEYOl2VauViNOmZPNZ7A==