electron-installer-snap
Advanced tools
Comparing version 3.1.0 to 3.1.1
{ | ||
"name": "electron-installer-snap", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Build snapcraft packages for Electron applications", | ||
@@ -12,3 +12,3 @@ "author": "Mark Lee", | ||
"files": [ | ||
"NEWS", | ||
"NEWS.md", | ||
"resources", | ||
@@ -48,3 +48,3 @@ "src" | ||
"debug": "^4.1.1", | ||
"electron-installer-common": "^0.5.0", | ||
"electron-installer-common": "^0.6.1", | ||
"fs-extra": "^7.0.1", | ||
@@ -55,3 +55,2 @@ "js-yaml": "^3.10.0", | ||
"lodash.pull": "^4.1.0", | ||
"lodash.template": "^4.4.0", | ||
"nodeify": "^1.0.1", | ||
@@ -58,0 +57,0 @@ "pify": "^4.0.1", |
@@ -19,3 +19,3 @@ 'use strict' | ||
const debug = require('debug')('electron-installer-snap:default_args') | ||
const { readMeta } = require('electron-installer-common') | ||
const { readMetadata } = require('electron-installer-common') | ||
@@ -32,4 +32,4 @@ function defaultArgsFromPackageJSON (packageJSON) { | ||
module.exports = function defaultArgsFromApp (packageDir) { | ||
return readMeta({ src: packageDir, logger: debug }) | ||
return readMetadata({ src: packageDir, logger: debug }) | ||
.then(defaultArgsFromPackageJSON) | ||
} |
'use strict' | ||
/* | ||
Copyright 2017 Mark Lee and contributors | ||
Copyright 2017, 2018, 2019 Mark Lee and contributors | ||
@@ -18,5 +18,4 @@ Licensed under the Apache License, Version 2.0 (the "License"); | ||
const fs = require('fs-extra') | ||
const { createDesktopFile } = require('electron-installer-common') | ||
const path = require('path') | ||
const template = require('lodash.template') | ||
@@ -45,10 +44,4 @@ function getDesktopTemplatePath (userSupplied) { | ||
function createDesktopFile (snapGuiDir, userSupplied) { | ||
const desktopFilePath = path.join(snapGuiDir, `${userSupplied.name}.desktop`) | ||
return fs.readFile(getDesktopTemplatePath(userSupplied)) | ||
.then(templateData => template(templateData)(templateScope(userSupplied))) | ||
.then(desktopData => fs.writeFile(desktopFilePath, desktopData)) | ||
module.exports = function (snapGuiDir, userSupplied) { | ||
return createDesktopFile(getDesktopTemplatePath(userSupplied), snapGuiDir, userSupplied.name, templateScope(userSupplied)) | ||
} | ||
module.exports = createDesktopFile |
@@ -58,4 +58,2 @@ 'use strict' | ||
delete this.config.arch | ||
return this.snapcraftOptions | ||
} | ||
@@ -62,0 +60,0 @@ |
362857
13
17
7
620
+ Addedasar@1.0.0(transitive)
+ Addedelectron-installer-common@0.6.3(transitive)
+ Addedsemver@6.3.1(transitive)
- Removedlodash.template@^4.4.0
- Removedabbrev@1.1.1(transitive)
- Removedajv@6.12.6(transitive)
- Removedasar@0.14.6(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedbinary@0.3.0(transitive)
- Removedbuffers@0.1.1(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedchainsaw@0.1.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcore-util-is@1.0.21.0.3(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddecompress-zip@0.3.3(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedelectron-installer-common@0.5.0(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedfs-extra@0.26.7(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedglob@6.0.4(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisarray@0.0.1(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsonfile@2.4.0(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedklaw@1.3.1(transitive)
- Removedlodash._reinterpolate@3.0.0(transitive)
- Removedlodash.template@4.5.0(transitive)
- Removedlodash.templatesettings@4.2.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedmkpath@0.1.0(transitive)
- Removedmksnapshot@0.3.5(transitive)
- Removednopt@1.0.103.0.6(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpsl@1.15.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedq@1.5.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedreadable-stream@1.1.14(transitive)
- Removedrequest@2.88.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedtmp@0.0.28(transitive)
- Removedtouch@0.0.3(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtraverse@0.3.9(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduri-js@4.4.1(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)