From 231e0666cef5ac22d2026056f845beed4fa72ba7 Mon Sep 17 00:00:00 2001 From: Quentin DECAUNES Date: Mon, 11 Mar 2019 14:40:13 +0100 Subject: [PATCH] Added redhat like package. --- package-lock.json | 62 +++++++++++++++++++++++++++++++++++++++++++++++ package.json | 6 +++-- 2 files changed, 66 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index f9be862..9ef8108 100644 --- a/package-lock.json +++ b/package-lock.json @@ -585,6 +585,43 @@ } } }, + "electron-installer-redhat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/electron-installer-redhat/-/electron-installer-redhat-1.0.1.tgz", + "integrity": "sha512-fwdhvA7HvcObq5/+wLC08MVwCGHw8EvhjolsUDuefXoQIfOVNCfbhSIzfMMYHL9lfSeYCuQzZjVv1/gwbSLuOQ==", + "dev": true, + "requires": { + "debug": "4.1.1", + "electron-installer-common": "0.6.2", + "fs-extra": "7.0.1", + "lodash": "4.17.11", + "nodeify": "1.0.1", + "word-wrap": "1.2.3", + "yargs": "12.0.5" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "2.1.1" + } + }, + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, + "requires": { + "graceful-fs": "4.1.15", + "jsonfile": "4.0.0", + "universalify": "0.1.2" + } + } + } + }, "electron-notarize": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/electron-notarize/-/electron-notarize-0.0.5.tgz", @@ -1293,6 +1330,12 @@ "number-is-nan": "1.0.1" } }, + "is-promise": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-1.0.1.tgz", + "integrity": "sha1-MVc3YcBX4zwukaq56W2gjO++duU=", + "dev": true + }, "is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", @@ -1630,6 +1673,16 @@ "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", "dev": true }, + "nodeify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/nodeify/-/nodeify-1.0.1.tgz", + "integrity": "sha1-ZKtpp7268DzhB7TwM1yHwLnpGx0=", + "dev": true, + "requires": { + "is-promise": "1.0.1", + "promise": "1.3.0" + } + }, "nopt": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", @@ -1907,6 +1960,15 @@ "through2": "0.2.3" } }, + "promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/promise/-/promise-1.3.0.tgz", + "integrity": "sha1-5cyaTIJ45GZP/twBx9qEhCsEAXU=", + "dev": true, + "requires": { + "is-promise": "1.0.1" + } + }, "pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", diff --git a/package.json b/package.json index fc0a5ad..020ffaf 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,10 @@ "scripts": { "start": "electron .", "package-win32": "electron-packager . --overwrite --platform=win32 --arch=ia32 --prune=true --out=release-builds --ignore=\".*-builds\" --icon=\"assets/icon.ico\" --win32metadata.requested-execution-level=requireAdministrator", - "package-debian": "electron-packager . ryzencontroller --overwrite --platform=linux --arch=x64 --out release-builds --ignore=\".*-builds\" --icon=\"assets/icon.ico\"", + "package-linux": "electron-packager . ryzencontroller --overwrite --platform=linux --arch=x64 --out release-builds --ignore=\".*-builds\" --icon=\"assets/icon.ico\"", "build-win32": "node installers/windows/createinstaller.js", - "build-debian": "electron-installer-debian --src=release-builds/ryzencontroller-linux-x64/ --dest=installer-builds/installers/ --arch=amd64 --executableName=RyzenController" + "build-deb": "electron-installer-debian --src=release-builds/ryzencontroller-linux-x64/ --dest=installer-builds/installers/ --arch=amd64", + "build-rpm": "electron-installer-redhat --src=release-builds/ryzencontroller-linux-x64/ --dest=installer-builds/installers/ --arch=amd64" }, "repository": "https://gitlab.com/le.storm1er/ryzen-controller", "keywords": [ @@ -24,6 +25,7 @@ "devDependencies": { "electron": "^4.0.4", "electron-installer-debian": "^1.1.1", + "electron-installer-redhat": "^1.0.1", "electron-packager": "^13.1.0", "electron-winstaller": "2.5.2" },