@electron-forge/maker-deb 6.0.0-beta.6 → 6.0.0-beta.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Config.d.ts +23 -10
- package/dist/MakerDeb.d.ts +3 -2
- package/dist/MakerDeb.js +29 -41
- package/package.json +9 -12
- package/tsconfig.json +26 -22
- package/doc/assets/css/main.css +0 -865
- package/doc/assets/css/main.css.map +0 -7
- package/doc/assets/images/icons.png +0 -0
- package/doc/assets/images/icons@2x.png +0 -0
- package/doc/assets/images/widgets.png +0 -0
- package/doc/assets/images/widgets@2x.png +0 -0
- package/doc/assets/js/main.js +0 -5
- package/doc/assets/js/search.js +0 -3
- package/doc/classes/makerdeb.html +0 -481
- package/doc/globals.html +0 -214
- package/doc/index.html +0 -243
- package/doc/interfaces/makerdebconfig.html +0 -201
- package/doc/interfaces/makerdebconfigoptions.html +0 -655
- package/src/Config.ts +0 -127
- package/src/MakerDeb.ts +0 -51
- package/test/MakerDeb_spec.ts +0 -100
- package/tslint.json +0 -12
package/dist/Config.d.ts
CHANGED
|
@@ -13,15 +13,18 @@ export interface MakerDebConfigOptions {
|
|
|
13
13
|
*/
|
|
14
14
|
productName?: string;
|
|
15
15
|
/**
|
|
16
|
-
* Generic name of the application (e.g. Text Editor), used in the GenericName field of the
|
|
16
|
+
* Generic name of the application (e.g. Text Editor), used in the GenericName field of the
|
|
17
|
+
* desktop specification.
|
|
17
18
|
*/
|
|
18
19
|
genericName?: string;
|
|
19
20
|
/**
|
|
20
|
-
* Short description of the application, used in the Description field of the control
|
|
21
|
+
* Short description of the application, used in the Description field of the control
|
|
22
|
+
* specification.
|
|
21
23
|
*/
|
|
22
24
|
description?: string;
|
|
23
25
|
/**
|
|
24
|
-
* Long description of the application, used in the Description field of the control
|
|
26
|
+
* Long description of the application, used in the Description field of the control
|
|
27
|
+
* specification.
|
|
25
28
|
*/
|
|
26
29
|
productDescription?: string;
|
|
27
30
|
/**
|
|
@@ -37,7 +40,12 @@ export interface MakerDebConfigOptions {
|
|
|
37
40
|
*
|
|
38
41
|
* Possible sections. Generated on https://packages.debian.org/unstable/ with:
|
|
39
42
|
*
|
|
40
|
-
*
|
|
43
|
+
* ```javascript
|
|
44
|
+
* $$('#content dt a').map(n => {
|
|
45
|
+
* const ss = n.href.split('/');
|
|
46
|
+
* return `'${ss[ss.length - 2]}'`;
|
|
47
|
+
* }).sort().join(' | ')
|
|
48
|
+
* ```
|
|
41
49
|
*/
|
|
42
50
|
section?: 'admin' | 'cli-mono' | 'comm' | 'database' | 'debian-installer' | 'debug' | 'devel' | 'doc' | 'editors' | 'education' | 'electronics' | 'embedded' | 'fonts' | 'games' | 'gnome' | 'gnu-r' | 'gnustep' | 'graphics' | 'hamradio' | 'haskell' | 'httpd' | 'interpreters' | 'introspection' | 'java' | 'javascript' | 'kde' | 'kernel' | 'libdevel' | 'libs' | 'lisp' | 'localization' | 'mail' | 'math' | 'metapackages' | 'misc' | 'net' | 'news' | 'ocaml' | 'oldlibs' | 'otherosfs' | 'perl' | 'php' | 'python' | 'ruby' | 'rust' | 'science' | 'shells' | 'sound' | 'tasks' | 'tex' | 'text' | 'utils' | 'vcs' | 'video' | 'virtual' | 'web' | 'x11' | 'xfce' | 'zope';
|
|
43
51
|
/**
|
|
@@ -80,7 +88,8 @@ export interface MakerDebConfigOptions {
|
|
|
80
88
|
*/
|
|
81
89
|
homepage?: string;
|
|
82
90
|
/**
|
|
83
|
-
* Relative path to the executable that will act as binary for the application, used in the Exec
|
|
91
|
+
* Relative path to the executable that will act as binary for the application, used in the Exec
|
|
92
|
+
* field of the desktop specification.
|
|
84
93
|
*
|
|
85
94
|
* Defaults to options.name
|
|
86
95
|
*/
|
|
@@ -90,15 +99,17 @@ export interface MakerDebConfigOptions {
|
|
|
90
99
|
*/
|
|
91
100
|
icon?: string;
|
|
92
101
|
/**
|
|
93
|
-
* Categories in which the application should be shown in a menu, used in the Categories field
|
|
102
|
+
* Categories in which the application should be shown in a menu, used in the Categories field
|
|
103
|
+
* of the desktop specification.
|
|
94
104
|
*
|
|
95
105
|
* Generated on https://specifications.freedesktop.org/menu-spec/latest/apa.html with:
|
|
96
106
|
*
|
|
97
|
-
* `(${$$('.informaltable tr td:first-child').map(td => `'
|
|
107
|
+
* `(${$$('.informaltable tr td:first-child').map(td => `'$\{td.innerText\}'`).join(' | ')})[]`
|
|
98
108
|
*/
|
|
99
109
|
categories?: ('AudioVideo' | 'Audio' | 'Video' | 'Development' | 'Education' | 'Game' | 'Graphics' | 'Network' | 'Office' | 'Science' | 'Settings' | 'System' | 'Utility')[];
|
|
100
110
|
/**
|
|
101
|
-
* MIME types the application is able to open, used in the MimeType field of the desktop
|
|
111
|
+
* MIME types the application is able to open, used in the MimeType field of the desktop
|
|
112
|
+
* specification.
|
|
102
113
|
*/
|
|
103
114
|
mimeType?: string[];
|
|
104
115
|
/**
|
|
@@ -106,9 +117,11 @@ export interface MakerDebConfigOptions {
|
|
|
106
117
|
*/
|
|
107
118
|
lintianOverrides?: string[];
|
|
108
119
|
/**
|
|
109
|
-
* Path to package maintainer scripts with their corresponding name, used in the installation
|
|
120
|
+
* Path to package maintainer scripts with their corresponding name, used in the installation
|
|
121
|
+
* procedure.
|
|
110
122
|
*
|
|
111
|
-
* Read More:
|
|
123
|
+
* Read More:
|
|
124
|
+
* https://www.debian.org/doc/debian-policy/#package-maintainer-scripts-and-installation-procedure
|
|
112
125
|
*/
|
|
113
126
|
scripts?: {
|
|
114
127
|
preinst?: string;
|
package/dist/MakerDeb.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import MakerBase, { MakerOptions } from '@electron-forge/maker-base';
|
|
2
2
|
import { ForgeArch, ForgePlatform } from '@electron-forge/shared-types';
|
|
3
3
|
import { MakerDebConfig } from './Config';
|
|
4
|
-
export declare function debianArch(nodeArch: ForgeArch):
|
|
4
|
+
export declare function debianArch(nodeArch: ForgeArch): string;
|
|
5
5
|
export default class MakerDeb extends MakerBase<MakerDebConfig> {
|
|
6
6
|
name: string;
|
|
7
7
|
defaultPlatforms: ForgePlatform[];
|
|
8
|
+
requiredExternalBinaries: string[];
|
|
8
9
|
isSupportedOnCurrentPlatform(): boolean;
|
|
9
|
-
make({dir, makeDir, targetArch
|
|
10
|
+
make({ dir, makeDir, targetArch }: MakerOptions): Promise<string[]>;
|
|
10
11
|
}
|
package/dist/MakerDeb.js
CHANGED
|
@@ -14,7 +14,7 @@ var _path = _interopRequireDefault(require("path"));
|
|
|
14
14
|
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
|
|
17
|
-
function
|
|
17
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
18
|
|
|
19
19
|
function debianArch(nodeArch) {
|
|
20
20
|
switch (nodeArch) {
|
|
@@ -37,56 +37,44 @@ function debianArch(nodeArch) {
|
|
|
37
37
|
|
|
38
38
|
class MakerDeb extends _makerBase.default {
|
|
39
39
|
constructor(...args) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}), Object.defineProperty(this, "defaultPlatforms", {
|
|
48
|
-
configurable: true,
|
|
49
|
-
enumerable: true,
|
|
50
|
-
writable: true,
|
|
51
|
-
value: ['linux']
|
|
52
|
-
}), _temp;
|
|
40
|
+
super(...args);
|
|
41
|
+
|
|
42
|
+
_defineProperty(this, "name", 'deb');
|
|
43
|
+
|
|
44
|
+
_defineProperty(this, "defaultPlatforms", ['linux']);
|
|
45
|
+
|
|
46
|
+
_defineProperty(this, "requiredExternalBinaries", ['dpkg', 'fakeroot']);
|
|
53
47
|
}
|
|
54
48
|
|
|
55
49
|
isSupportedOnCurrentPlatform() {
|
|
56
|
-
return this.isInstalled('electron-installer-debian')
|
|
50
|
+
return this.isInstalled('electron-installer-debian');
|
|
57
51
|
}
|
|
58
52
|
|
|
59
|
-
make({
|
|
53
|
+
async make({
|
|
60
54
|
dir,
|
|
61
55
|
makeDir,
|
|
62
|
-
targetArch
|
|
63
|
-
packageJSON
|
|
56
|
+
targetArch
|
|
64
57
|
}) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
dest: _path.default.dirname(outPath),
|
|
83
|
-
rename: undefined
|
|
84
|
-
}));
|
|
85
|
-
return [outPath];
|
|
86
|
-
})();
|
|
58
|
+
// eslint-disable-next-line global-require, import/no-unresolved, node/no-missing-require
|
|
59
|
+
const installer = require('electron-installer-debian');
|
|
60
|
+
|
|
61
|
+
const outDir = _path.default.resolve(makeDir, 'deb', targetArch);
|
|
62
|
+
|
|
63
|
+
await this.ensureDirectory(outDir);
|
|
64
|
+
const {
|
|
65
|
+
packagePaths
|
|
66
|
+
} = await installer({
|
|
67
|
+
options: {},
|
|
68
|
+
...this.config,
|
|
69
|
+
arch: debianArch(targetArch),
|
|
70
|
+
src: dir,
|
|
71
|
+
dest: outDir,
|
|
72
|
+
rename: undefined
|
|
73
|
+
});
|
|
74
|
+
return packagePaths;
|
|
87
75
|
}
|
|
88
76
|
|
|
89
77
|
}
|
|
90
78
|
|
|
91
79
|
exports.default = MakerDeb;
|
|
92
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
80
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9NYWtlckRlYi50cyJdLCJuYW1lcyI6WyJkZWJpYW5BcmNoIiwibm9kZUFyY2giLCJNYWtlckRlYiIsIk1ha2VyQmFzZSIsImlzU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HsgcGFja2FnZVBhdGhzIH0gPSBhd2FpdCBpbnN0YWxsZXIoe1xuICAgICAgb3B0aW9uczoge30sXG4gICAgICAuLi50aGlzLmNvbmZpZyxcbiAgICAgIGFyY2g6IGRlYmlhbkFyY2godGFyZ2V0QXJjaCksXG4gICAgICBzcmM6IGRpcixcbiAgICAgIGRlc3Q6IG91dERpcixcbiAgICAgIHJlbmFtZTogdW5kZWZpbmVkLFxuICAgIH0pO1xuXG4gICAgcmV0dXJuIHBhY2thZ2VQYXRocztcbiAgfVxufVxuIl19
|
package/package.json
CHANGED
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@electron-forge/maker-deb",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.63",
|
|
4
4
|
"description": "Deb maker for Electron Forge",
|
|
5
5
|
"repository": "https://github.com/electron-userland/electron-forge",
|
|
6
6
|
"author": "Samuel Attard",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/MakerDeb.js",
|
|
9
9
|
"typings": "dist/MakerDeb.d.ts",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"test": "mocha --require ts-node/register test/**/*_spec.ts test/**/**/*_spec.ts --opts ../../../mocha.opts"
|
|
12
|
-
},
|
|
13
10
|
"devDependencies": {
|
|
14
|
-
"chai": "^4.
|
|
11
|
+
"chai": "^4.3.3",
|
|
15
12
|
"chai-as-promised": "^7.0.0",
|
|
16
|
-
"mocha": "^
|
|
17
|
-
"proxyquire": "^2.
|
|
18
|
-
"sinon": "^
|
|
13
|
+
"mocha": "^9.0.1",
|
|
14
|
+
"proxyquire": "^2.1.3",
|
|
15
|
+
"sinon": "^12.0.1"
|
|
19
16
|
},
|
|
20
17
|
"engines": {
|
|
21
|
-
"node": ">=
|
|
18
|
+
"node": ">= 12.13.0"
|
|
22
19
|
},
|
|
23
20
|
"dependencies": {
|
|
24
|
-
"@electron-forge/maker-base": "6.0.0-beta.
|
|
25
|
-
"@electron-forge/shared-types": "6.0.0-beta.
|
|
21
|
+
"@electron-forge/maker-base": "6.0.0-beta.63",
|
|
22
|
+
"@electron-forge/shared-types": "6.0.0-beta.63"
|
|
26
23
|
},
|
|
27
24
|
"optionalDependencies": {
|
|
28
|
-
"electron-installer-debian": "^0.
|
|
25
|
+
"electron-installer-debian": "^3.0.0"
|
|
29
26
|
}
|
|
30
27
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "commonjs",
|
|
4
|
+
"target": "es2019",
|
|
5
|
+
"outDir": "dist",
|
|
6
|
+
"lib": [
|
|
7
|
+
"dom",
|
|
8
|
+
"es2019"
|
|
9
|
+
],
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"rootDir": ".",
|
|
12
|
+
"experimentalDecorators": true,
|
|
13
|
+
"strict": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"declaration": true,
|
|
16
|
+
"typeRoots": [
|
|
17
|
+
"../../../node_modules/@types",
|
|
18
|
+
"../../../typings"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"exclude": [
|
|
22
|
+
"node_modules",
|
|
23
|
+
"dist",
|
|
24
|
+
"test",
|
|
25
|
+
"index.ts"
|
|
26
|
+
]
|
|
27
|
+
}
|