@interopio/iocd-cli 0.0.7 → 0.0.8
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/README.md +41 -9
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/services/app.service.js +22 -45
- package/dist/services/app.service.js.map +1 -1
- package/dist/services/config/config.service.js +4 -12
- package/dist/services/config/config.service.js.map +1 -1
- package/dist/services/create.service.js +2 -2
- package/dist/services/create.service.js.map +1 -1
- package/dist/services/installer/electronForge.js +57 -14
- package/dist/services/installer/electronForge.js.map +1 -1
- package/dist/services/license.service.js +7 -8
- package/dist/services/license.service.js.map +1 -1
- package/dist/services/template.service.js +7 -2
- package/dist/services/template.service.js.map +1 -1
- package/dist/templates/ioconnect-desktop/package.json +2 -1
- package/dist/utils/path.js +17 -5
- package/dist/utils/path.js.map +1 -1
- package/dist/{sentry.js → utils/sentry.js} +3 -1
- package/dist/utils/sentry.js.map +1 -0
- package/package.json +1 -1
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/commands/apps.command.d.ts +0 -3
- package/dist/commands/apps.command.d.ts.map +0 -1
- package/dist/commands/build.command.d.ts +0 -3
- package/dist/commands/build.command.d.ts.map +0 -1
- package/dist/commands/components.command.d.ts +0 -3
- package/dist/commands/components.command.d.ts.map +0 -1
- package/dist/commands/create.command.d.ts +0 -3
- package/dist/commands/create.command.d.ts.map +0 -1
- package/dist/commands/dev.command.d.ts +0 -4
- package/dist/commands/dev.command.d.ts.map +0 -1
- package/dist/commands/license.command.d.ts +0 -3
- package/dist/commands/license.command.d.ts.map +0 -1
- package/dist/commands/modifications.command.d.ts +0 -3
- package/dist/commands/modifications.command.d.ts.map +0 -1
- package/dist/commands/setup.command.d.ts +0 -4
- package/dist/commands/setup.command.d.ts.map +0 -1
- package/dist/sentry.d.ts +0 -2
- package/dist/sentry.d.ts.map +0 -1
- package/dist/sentry.js.map +0 -1
- package/dist/services/app-builder.service.d.ts +0 -2
- package/dist/services/app-builder.service.d.ts.map +0 -1
- package/dist/services/app.service.d.ts +0 -75
- package/dist/services/app.service.d.ts.map +0 -1
- package/dist/services/components/component.config.d.ts +0 -11
- package/dist/services/components/component.config.d.ts.map +0 -1
- package/dist/services/components/component.d.ts +0 -17
- package/dist/services/components/component.d.ts.map +0 -1
- package/dist/services/components/components.registry.d.ts +0 -40
- package/dist/services/components/components.registry.d.ts.map +0 -1
- package/dist/services/components/components.service.d.ts +0 -25
- package/dist/services/components/components.service.d.ts.map +0 -1
- package/dist/services/components/file.helper.d.ts +0 -12
- package/dist/services/components/file.helper.d.ts.map +0 -1
- package/dist/services/components/platform.utils.d.ts +0 -149
- package/dist/services/components/platform.utils.d.ts.map +0 -1
- package/dist/services/components/stores/github.store.d.ts +0 -34
- package/dist/services/components/stores/github.store.d.ts.map +0 -1
- package/dist/services/components/stores/local.store.d.ts +0 -70
- package/dist/services/components/stores/local.store.d.ts.map +0 -1
- package/dist/services/components/stores/s3.store.d.ts +0 -99
- package/dist/services/components/stores/s3.store.d.ts.map +0 -1
- package/dist/services/components/stores/store.d.ts +0 -12
- package/dist/services/components/stores/store.d.ts.map +0 -1
- package/dist/services/components/version.selector.d.ts +0 -4
- package/dist/services/components/version.selector.d.ts.map +0 -1
- package/dist/services/config/cli.config.d.ts +0 -64
- package/dist/services/config/cli.config.d.ts.map +0 -1
- package/dist/services/config/config.service.d.ts +0 -14
- package/dist/services/config/config.service.d.ts.map +0 -1
- package/dist/services/create.service.d.ts +0 -58
- package/dist/services/create.service.d.ts.map +0 -1
- package/dist/services/dev.service.d.ts +0 -2
- package/dist/services/dev.service.d.ts.map +0 -1
- package/dist/services/installer/electronBuilder.d.ts +0 -2
- package/dist/services/installer/electronBuilder.d.ts.map +0 -1
- package/dist/services/installer/electronForge.d.ts +0 -4
- package/dist/services/installer/electronForge.d.ts.map +0 -1
- package/dist/services/installer/installer.service.d.ts +0 -5
- package/dist/services/installer/installer.service.d.ts.map +0 -1
- package/dist/services/installer/macOS.helper.d.ts +0 -3
- package/dist/services/installer/macOS.helper.d.ts.map +0 -1
- package/dist/services/installer/prerequisites.d.ts +0 -2
- package/dist/services/installer/prerequisites.d.ts.map +0 -1
- package/dist/services/installer/windows.helper.d.ts +0 -10
- package/dist/services/installer/windows.helper.d.ts.map +0 -1
- package/dist/services/license.service.d.ts +0 -105
- package/dist/services/license.service.d.ts.map +0 -1
- package/dist/services/modifications/macOS.helper.d.ts +0 -13
- package/dist/services/modifications/macOS.helper.d.ts.map +0 -1
- package/dist/services/modifications/modifications.service.d.ts +0 -2
- package/dist/services/modifications/modifications.service.d.ts.map +0 -1
- package/dist/services/modifications/windows.helper.d.ts +0 -2
- package/dist/services/modifications/windows.helper.d.ts.map +0 -1
- package/dist/services/template.service.d.ts +0 -116
- package/dist/services/template.service.d.ts.map +0 -1
- package/dist/templates/auto-tests/README.md +0 -31
- package/dist/templates/auto-tests/playwright.config.js +0 -19
- package/dist/templates/groups/apps/groups/src/reportWebVitals.ts +0 -15
- package/dist/utils/colors.d.ts +0 -57
- package/dist/utils/colors.d.ts.map +0 -1
- package/dist/utils/deep.merge.d.ts +0 -5
- package/dist/utils/deep.merge.d.ts.map +0 -1
- package/dist/utils/delay.d.ts +0 -2
- package/dist/utils/delay.d.ts.map +0 -1
- package/dist/utils/electron.builder.config.helper.d.ts +0 -6
- package/dist/utils/electron.builder.config.helper.d.ts.map +0 -1
- package/dist/utils/ensure.iocd.exists.d.ts +0 -2
- package/dist/utils/ensure.iocd.exists.d.ts.map +0 -1
- package/dist/utils/error.handler.d.ts +0 -31
- package/dist/utils/error.handler.d.ts.map +0 -1
- package/dist/utils/file.d.ts +0 -10
- package/dist/utils/file.d.ts.map +0 -1
- package/dist/utils/find.package.dir.d.ts +0 -2
- package/dist/utils/find.package.dir.d.ts.map +0 -1
- package/dist/utils/logger.d.ts +0 -19
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/nextSteps.d.ts +0 -2
- package/dist/utils/nextSteps.d.ts.map +0 -1
- package/dist/utils/pacakge.json.helper.d.ts +0 -13
- package/dist/utils/pacakge.json.helper.d.ts.map +0 -1
- package/dist/utils/path.d.ts +0 -19
- package/dist/utils/path.d.ts.map +0 -1
- package/dist/utils/version.d.ts +0 -2
- package/dist/utils/version.d.ts.map +0 -1
- /package/dist/templates/ioconnect-desktop/{forge.config.js → config/forge.config.js} +0 -0
- /package/dist/templates/ioconnect-desktop/{iocd.cli.config.json → config/iocd.cli.config.json} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"platform.utils.d.ts","sourceRoot":"","sources":["../../../src/services/components/platform.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,MAAM,WAAW,qBAAqB;IAElC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AACD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,sBAAsB;IAE/B;;OAEG;IACH,MAAM,CAAC,kBAAkB,IAAI,kBAAkB;IAa/C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,qBAAqB;IAKtE;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,qBAAqB;IA6G9D;;;;;;OAMG;IACH,MAAM,CAAC,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,kBAAkB,GAAG,OAAO;IA6B9F;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAOxD;;;;;OAKG;IACH,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE;IAqBjI;;;;;OAKG;IACH,MAAM,CAAC,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG;QAAE,QAAQ,EAAE,kBAAkB,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;IAuB/F;;;;;OAKG;IACH,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAIhD;;;;;;;OAOG;IACH,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;IA8B7D;;;;;;OAMG;IACH,MAAM,CAAC,uBAAuB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;IAiB5D;;;;;;;OAOG;IACH,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;CAUvD"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ComponentWithVersion } from "../component";
|
|
2
|
-
import { ComponentsStore } from "./store";
|
|
3
|
-
export declare class GitHubComponentsStore implements ComponentsStore {
|
|
4
|
-
private baseUrl;
|
|
5
|
-
private usePrereleases;
|
|
6
|
-
private logger;
|
|
7
|
-
private cachedReleases;
|
|
8
|
-
constructor(repo?: string, usePrereleases?: boolean);
|
|
9
|
-
getAll(): Promise<ComponentWithVersion[]>;
|
|
10
|
-
download(name: string, version: string): Promise<{
|
|
11
|
-
name: string;
|
|
12
|
-
data: any;
|
|
13
|
-
filename: string;
|
|
14
|
-
actualVersion: string;
|
|
15
|
-
}>;
|
|
16
|
-
getInfo(): string;
|
|
17
|
-
/**
|
|
18
|
-
* Find a specific release by component name and version
|
|
19
|
-
*/
|
|
20
|
-
private findComponent;
|
|
21
|
-
/**
|
|
22
|
-
* Get all releases without parsing them into components
|
|
23
|
-
* Will filter out pre-releases if usePrereleases is false
|
|
24
|
-
*/
|
|
25
|
-
private getAllReleases;
|
|
26
|
-
/**
|
|
27
|
-
* Extract the next page URL from the Link header
|
|
28
|
-
* Link header format: <https://api.github.com/repos/owner/repo/releases?page=2>; rel="next", <https://api.github.com/repos/owner/repo/releases?page=5>; rel="last"
|
|
29
|
-
*/
|
|
30
|
-
private getNextPageUrl;
|
|
31
|
-
/** Parse GitHub release information into component metadata */
|
|
32
|
-
private parseReleases;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=github.store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github.store.d.ts","sourceRoot":"","sources":["../../../../src/services/components/stores/github.store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAwB1C,qBAAa,qBAAsB,YAAW,eAAe;IACzD,OAAO,CAAC,OAAO,CAAM;IACrB,OAAO,CAAC,cAAc,CAAkB;IACxC,OAAO,CAAC,MAAM,CAAwB;IACtC,OAAO,CAAC,cAAc,CAAqC;gBAE/C,IAAI,GAAE,MAA8C,EAAE,cAAc,GAAE,OAAe;IAK3F,MAAM,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAMzC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IA8BrH,OAAO;IAKd;;OAEG;YACW,aAAa;IAmC3B;;;OAGG;YACW,cAAc;IA2C5B;;;OAGG;IACH,OAAO,CAAC,cAAc;IAgBtB,+DAA+D;IAC/D,OAAO,CAAC,aAAa;CA6BxB"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { ComponentsStore } from './store';
|
|
2
|
-
import { ComponentWithVersion } from '../component';
|
|
3
|
-
/**
|
|
4
|
-
* Local Components Store implementation
|
|
5
|
-
*
|
|
6
|
-
* This store reads components from a local directory following the same structure as the S3 store.
|
|
7
|
-
* Expected directory structure:
|
|
8
|
-
*
|
|
9
|
-
* componentsDirectory/
|
|
10
|
-
* ├── component1/
|
|
11
|
-
* │ ├── v1.0.0/
|
|
12
|
-
* │ │ ├── component1-v1.0.0-win32.zip
|
|
13
|
-
* │ │ ├── component1-v1.0.0-darwin.dmg
|
|
14
|
-
* │ │ └── component1-v1.0.0-darwin-arm64.dmg
|
|
15
|
-
* │ └── v1.1.0/
|
|
16
|
-
* │ ├── component1-v1.1.0-win32.zip
|
|
17
|
-
* │ └── component1-v1.1.0-darwin.dmg
|
|
18
|
-
* └── component2/
|
|
19
|
-
* └── v2.0.0/
|
|
20
|
-
* └── component2-v2.0.0-win32.zip
|
|
21
|
-
*
|
|
22
|
-
* Legacy support is maintained for flat file structures in the root directory.
|
|
23
|
-
*/
|
|
24
|
-
export declare class LocalComponentsStore implements ComponentsStore {
|
|
25
|
-
private logger;
|
|
26
|
-
private componentsDirectory;
|
|
27
|
-
constructor(componentsDirectory: string);
|
|
28
|
-
getInfo(): string;
|
|
29
|
-
getAll(): Promise<ComponentWithVersion[]>;
|
|
30
|
-
download(name: string, version: string): Promise<{
|
|
31
|
-
name: string;
|
|
32
|
-
data: any;
|
|
33
|
-
filename: string;
|
|
34
|
-
actualVersion: string;
|
|
35
|
-
}>;
|
|
36
|
-
/**
|
|
37
|
-
* Validate that the components directory exists and is accessible
|
|
38
|
-
*/
|
|
39
|
-
private validateDirectory;
|
|
40
|
-
/**
|
|
41
|
-
* Check if a file is a supported package format
|
|
42
|
-
*/
|
|
43
|
-
private isSupportedPackageFile;
|
|
44
|
-
/**
|
|
45
|
-
* Create a Component object from a single package file (legacy support)
|
|
46
|
-
*/
|
|
47
|
-
private createComponentFromFile;
|
|
48
|
-
/**
|
|
49
|
-
* Create a Component object from structured directory layout
|
|
50
|
-
* Expected filename format: componentName-vVersion-platform.ext
|
|
51
|
-
* Following S3 store structure: componentName/vVersion/componentName-vVersion-platform.ext
|
|
52
|
-
*/
|
|
53
|
-
private createStructuredComponent;
|
|
54
|
-
/**
|
|
55
|
-
* Scan component directory for version subdirectories
|
|
56
|
-
* Expected structure: componentName/vX.Y.Z/componentName-vX.Y.Z-platform.ext
|
|
57
|
-
*/
|
|
58
|
-
private scanComponentVersions;
|
|
59
|
-
/**
|
|
60
|
-
* Scan version directory for component package files
|
|
61
|
-
* Expected structure: vX.Y.Z/componentName-vX.Y.Z-platform.ext
|
|
62
|
-
*/
|
|
63
|
-
private scanVersionDirectory;
|
|
64
|
-
/**
|
|
65
|
-
* Get the latest version from a list of components with the same name
|
|
66
|
-
* Simple string comparison - for proper semver, you'd want to use a semver library
|
|
67
|
-
*/
|
|
68
|
-
private getLatestVersion;
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=local.store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"local.store.d.ts","sourceRoot":"","sources":["../../../../src/services/components/stores/local.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAOpD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,oBAAqB,YAAW,eAAe;IACxD,OAAO,CAAC,MAAM,CAAwB;IACtC,OAAO,CAAC,mBAAmB,CAAS;gBAExB,mBAAmB,EAAE,MAAM;IAKvC,OAAO,IAAI,MAAM;IAIX,MAAM,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAmDzC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IA6E5H;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAezB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAI9B;;OAEG;YACW,uBAAuB;IA2BrC;;;;OAIG;YACW,yBAAyB;IA2BvC;;;OAGG;YACW,qBAAqB;IAwCnC;;;OAGG;YACW,oBAAoB;IAiClC;;;OAGG;IACH,OAAO,CAAC,gBAAgB;CAW3B"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { ComponentsStore } from './store';
|
|
2
|
-
import { ComponentWithVersion } from '../component';
|
|
3
|
-
/**
|
|
4
|
-
* S3 Components Store implementation
|
|
5
|
-
*
|
|
6
|
-
* This store downloads components from an AWS S3 bucket.
|
|
7
|
-
* It expects components to be organized in the bucket with the following structure:
|
|
8
|
-
*
|
|
9
|
-
* bucket/
|
|
10
|
-
* ├── component1/
|
|
11
|
-
* │ ├── v1.0.0/
|
|
12
|
-
* │ │ ├── component1-v1.0.0-win32.zip
|
|
13
|
-
* │ │ ├── component1-v1.0.0-darwin.dmg
|
|
14
|
-
* │ │ └── component1-v1.0.0-darwin-arm64.dmg
|
|
15
|
-
* │ └── v1.1.0/
|
|
16
|
-
* │ ├── component1-v1.1.0-win32.zip
|
|
17
|
-
* │ └── component1-v1.1.0-darwin.dmg
|
|
18
|
-
* └── component2/
|
|
19
|
-
* └── v2.0.0/
|
|
20
|
-
* └── component2-v2.0.0-win32.zip
|
|
21
|
-
*
|
|
22
|
-
* Authentication is handled through AWS credentials (environment variables, IAM roles, etc.)
|
|
23
|
-
*/
|
|
24
|
-
export declare class S3ComponentsStore implements ComponentsStore {
|
|
25
|
-
private logger;
|
|
26
|
-
private bucketName;
|
|
27
|
-
private region;
|
|
28
|
-
private prefix;
|
|
29
|
-
private accessKeyId;
|
|
30
|
-
private secretAccessKey;
|
|
31
|
-
constructor(config: {
|
|
32
|
-
bucketName: string;
|
|
33
|
-
region: string;
|
|
34
|
-
prefix?: string;
|
|
35
|
-
accessKeyId?: string;
|
|
36
|
-
secretAccessKey?: string;
|
|
37
|
-
});
|
|
38
|
-
getInfo(): string;
|
|
39
|
-
getAll(): Promise<ComponentWithVersion[]>;
|
|
40
|
-
download(name: string, version: string): Promise<{
|
|
41
|
-
name: string;
|
|
42
|
-
data: any;
|
|
43
|
-
filename: string;
|
|
44
|
-
actualVersion: string;
|
|
45
|
-
}>;
|
|
46
|
-
/**
|
|
47
|
-
* Validate the S3 configuration
|
|
48
|
-
*/
|
|
49
|
-
private validateConfiguration;
|
|
50
|
-
/**
|
|
51
|
-
* List all objects in the S3 bucket
|
|
52
|
-
*/
|
|
53
|
-
private listAllObjects;
|
|
54
|
-
/**
|
|
55
|
-
* List objects in S3 bucket using ListObjectsV2 API
|
|
56
|
-
*/
|
|
57
|
-
private listObjectsV2;
|
|
58
|
-
/**
|
|
59
|
-
* Download an object from S3
|
|
60
|
-
*/
|
|
61
|
-
private downloadObject;
|
|
62
|
-
/**
|
|
63
|
-
* Find the S3 object key for a specific component and version
|
|
64
|
-
*/
|
|
65
|
-
private findComponentObject;
|
|
66
|
-
/**
|
|
67
|
-
* Parse S3 objects into Component array
|
|
68
|
-
*/
|
|
69
|
-
private parseS3ObjectsToComponents;
|
|
70
|
-
/**
|
|
71
|
-
* Parse component information from S3 object key
|
|
72
|
-
*/
|
|
73
|
-
private parseComponentFromKey;
|
|
74
|
-
/**
|
|
75
|
-
* Check if a key matches the current platform
|
|
76
|
-
*/
|
|
77
|
-
private matchesPlatform;
|
|
78
|
-
/**
|
|
79
|
-
* Extract version from S3 object key
|
|
80
|
-
*/
|
|
81
|
-
private extractVersionFromKey;
|
|
82
|
-
/**
|
|
83
|
-
* Extract filename from S3 object key
|
|
84
|
-
*/
|
|
85
|
-
private extractFilenameFromKey;
|
|
86
|
-
/**
|
|
87
|
-
* Build S3 API URL for a given object key
|
|
88
|
-
*/
|
|
89
|
-
private buildS3ApiUrl;
|
|
90
|
-
/**
|
|
91
|
-
* Create AWS Signature Version 4 authentication headers
|
|
92
|
-
*/
|
|
93
|
-
private createAuthHeaders;
|
|
94
|
-
/**
|
|
95
|
-
* Parse S3 ListObjects XML response
|
|
96
|
-
*/
|
|
97
|
-
private parseListObjectsResponse;
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=s3.store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"s3.store.d.ts","sourceRoot":"","sources":["../../../../src/services/components/stores/s3.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAkBpD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,iBAAkB,YAAW,eAAe;IACrD,OAAO,CAAC,MAAM,CAAwB;IACtC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,WAAW,CAAqB;IACxC,OAAO,CAAC,eAAe,CAAqB;gBAEhC,MAAM,EAAE;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC5B;IAUD,OAAO,IAAI,MAAM;IAKX,MAAM,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAoBzC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IA+C5H;;OAEG;IACH,OAAO,CAAC,qBAAqB;IA2B7B;;OAEG;YACW,cAAc;IAiB5B;;OAEG;YACW,aAAa;IA+B3B;;OAEG;YACW,cAAc;IAmB5B;;OAEG;YACW,mBAAmB;IA6CjC;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAelC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAqC7B;;OAEG;IACH,OAAO,CAAC,eAAe;IAQvB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAO7B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAI9B;;OAEG;IACH,OAAO,CAAC,aAAa;IAKrB;;OAEG;YACW,iBAAiB;IAyB/B;;OAEG;IACH,OAAO,CAAC,wBAAwB;CA6CnC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComponentWithVersion } from "../component";
|
|
2
|
-
export interface ComponentsStore {
|
|
3
|
-
getInfo(): string;
|
|
4
|
-
getAll(): Promise<ComponentWithVersion[]>;
|
|
5
|
-
download(name: string, version: string): Promise<{
|
|
6
|
-
name: string;
|
|
7
|
-
data: any;
|
|
8
|
-
filename: string;
|
|
9
|
-
actualVersion: string;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/services/components/stores/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,WAAW,eAAe;IAC5B,OAAO,IAAI,MAAM,CAAC;IAClB,MAAM,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC;CACxH"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ComponentWithVersion } from "./component";
|
|
2
|
-
/** Give a version to match and a set of ComponentWithVersion return the matching component */
|
|
3
|
-
export declare function selectVersion(version: string, componentsToSelectFrom: ComponentWithVersion[]): ComponentWithVersion | null;
|
|
4
|
-
//# sourceMappingURL=version.selector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.selector.d.ts","sourceRoot":"","sources":["../../../src/services/components/version.selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGnD,8FAA8F;AAC9F,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,GAAG,oBAAoB,GAAG,IAAI,CA+C1H"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export interface CliConfig {
|
|
2
|
-
productSlug: string;
|
|
3
|
-
productName: string;
|
|
4
|
-
productDescription: string;
|
|
5
|
-
company: string;
|
|
6
|
-
version: string;
|
|
7
|
-
copyright: string;
|
|
8
|
-
sentry: boolean;
|
|
9
|
-
components: {
|
|
10
|
-
store: "github" | "local" | "s3";
|
|
11
|
-
github: {
|
|
12
|
-
repo: string;
|
|
13
|
-
usePrereleases?: boolean;
|
|
14
|
-
};
|
|
15
|
-
local: {
|
|
16
|
-
path: string;
|
|
17
|
-
};
|
|
18
|
-
s3: {
|
|
19
|
-
bucketName: string;
|
|
20
|
-
region: string;
|
|
21
|
-
prefix?: string;
|
|
22
|
-
accessKeyId?: string;
|
|
23
|
-
secretAccessKey?: string;
|
|
24
|
-
};
|
|
25
|
-
list: {
|
|
26
|
-
[index: string]: string;
|
|
27
|
-
};
|
|
28
|
-
excludeFromBuild?: string[];
|
|
29
|
-
};
|
|
30
|
-
win: {
|
|
31
|
-
exe: {
|
|
32
|
-
exeName: string;
|
|
33
|
-
exeIconPath: string;
|
|
34
|
-
};
|
|
35
|
-
codeSign: {
|
|
36
|
-
type: 'pfx' | 'wincert' | 'smime' | 'smctl' | 'custom' | 'off';
|
|
37
|
-
pfxPath?: string;
|
|
38
|
-
pfxPassword?: string;
|
|
39
|
-
wincertSubjectName?: string;
|
|
40
|
-
smimeCertificatePath?: string;
|
|
41
|
-
smimeCertificatePassword?: string;
|
|
42
|
-
customCodeSignScriptPath?: string;
|
|
43
|
-
tsaURL?: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
mac: {
|
|
47
|
-
appBundleName: string;
|
|
48
|
-
appBundleId: string;
|
|
49
|
-
codeSign: {
|
|
50
|
-
type: 'keychain' | 'custom' | 'off';
|
|
51
|
-
identity?: string;
|
|
52
|
-
keychain?: string;
|
|
53
|
-
customCodeSignScriptPath?: string;
|
|
54
|
-
};
|
|
55
|
-
notarization: {
|
|
56
|
-
type: 'notarytool' | 'custom' | 'off';
|
|
57
|
-
appleId?: string;
|
|
58
|
-
appleIdPassword?: string;
|
|
59
|
-
appleTeamId?: string;
|
|
60
|
-
customNotarizationScriptPath?: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=cli.config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.config.d.ts","sourceRoot":"","sources":["../../../src/services/config/cli.config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE;QACR,KAAK,EAAE,QAAQ,GAAG,OAAO,GAAG,IAAI,CAAC;QACjC,MAAM,EAAE;YACJ,IAAI,EAAE,MAAM,CAAC;YACb,cAAc,CAAC,EAAE,OAAO,CAAC;SAC5B,CAAC;QACF,KAAK,EAAE;YACH,IAAI,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,EAAE,EAAE;YACA,UAAU,EAAE,MAAM,CAAC;YACnB,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,eAAe,CAAC,EAAE,MAAM,CAAC;SAC5B,CAAC;QACF,IAAI,EAAE;YAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;QAClC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC/B,CAAA;IACD,GAAG,EAAE;QACD,GAAG,EAAE;YACD,OAAO,EAAE,MAAM,CAAC;YAChB,WAAW,EAAE,MAAM,CAAC;SACvB,CAAC;QACF,QAAQ,EAAE;YACN,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;YAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;YAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;YAC9B,wBAAwB,CAAC,EAAE,MAAM,CAAC;YAClC,wBAAwB,CAAC,EAAE,MAAM,CAAC;YAClC,MAAM,CAAC,EAAE,MAAM,CAAC;SACnB,CAAA;KACJ,CAAC;IAEF,GAAG,EAAE;QAED,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE;YACN,IAAI,EAAE,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC;YACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,wBAAwB,CAAC,EAAE,MAAM,CAAC;SACrC,CAAC;QACF,YAAY,EAAE;YACV,IAAI,EAAE,YAAY,GAAG,QAAQ,GAAG,KAAK,CAAC;YACtC,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,eAAe,CAAC,EAAE,MAAM,CAAC;YACzB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,4BAA4B,CAAC,EAAE,MAAM,CAAC;SACzC,CAAA;KACJ,CAAA;CACJ"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CliConfig } from "./cli.config";
|
|
2
|
-
export declare class ConfigManager {
|
|
3
|
-
private static cachedConfig;
|
|
4
|
-
private static configName;
|
|
5
|
-
static get config(): CliConfig;
|
|
6
|
-
static getConfigStringWithoutSecrets(): string;
|
|
7
|
-
static saveComponents(newComponents: {
|
|
8
|
-
[index: string]: string;
|
|
9
|
-
}): void;
|
|
10
|
-
private static loadConfig;
|
|
11
|
-
private static expandVariablesInString;
|
|
12
|
-
private static getDefaultConfig;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=config.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.service.d.ts","sourceRoot":"","sources":["../../../src/services/config/config.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,qBAAa,aAAa;IAEtB,OAAO,CAAC,MAAM,CAAC,YAAY,CAA0B;IACrD,OAAO,CAAC,MAAM,CAAC,UAAU,CAA0B;IAEnD,MAAM,KAAK,MAAM,IAAI,SAAS,CAK7B;WAEa,6BAA6B,IAAI,MAAM;WAevC,cAAc,CAAC,aAAa,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI;IAiB9E,OAAO,CAAC,MAAM,CAAC,UAAU;IAsCzB,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAUtC,OAAO,CAAC,MAAM,CAAC,gBAAgB;CA0DlC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export interface SetupResult {
|
|
2
|
-
productName: string;
|
|
3
|
-
productSlug: string;
|
|
4
|
-
targetDirectory: string;
|
|
5
|
-
applications: string[];
|
|
6
|
-
components: string[];
|
|
7
|
-
autoTests: boolean;
|
|
8
|
-
licenseKey: string | undefined;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* SetupService handles the interactive project setup flow using @clack/prompts.
|
|
12
|
-
*
|
|
13
|
-
* This service provides a branded, user-friendly setup experience that:
|
|
14
|
-
* - Guides users through project configuration steps
|
|
15
|
-
* - Validates user inputs and provides helpful defaults
|
|
16
|
-
* - Collects feature selections and optional configurations
|
|
17
|
-
* - Generates project structure using the TemplateService
|
|
18
|
-
* - Creates license files when license keys are provided
|
|
19
|
-
*
|
|
20
|
-
* The setup flow follows the design document specification with:
|
|
21
|
-
* 1. Product name input with validation
|
|
22
|
-
* 2. Auto-generated folder name (editable)
|
|
23
|
-
* 3. Multi-select feature customizations
|
|
24
|
-
* 4. Auto-tests yes/no (defaults to Yes)
|
|
25
|
-
* 5. Optional license key (hidden input)
|
|
26
|
-
* 6. Confirmation before creation
|
|
27
|
-
* 7. Progress indication during generation
|
|
28
|
-
*/
|
|
29
|
-
export declare class CreateService {
|
|
30
|
-
private logger;
|
|
31
|
-
private templateService;
|
|
32
|
-
/**
|
|
33
|
-
* Run the interactive setup flow
|
|
34
|
-
*/
|
|
35
|
-
runSetup(): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* Collect all setup data through interactive prompts
|
|
38
|
-
*/
|
|
39
|
-
private collectSetupData;
|
|
40
|
-
private collectComponents;
|
|
41
|
-
/**
|
|
42
|
-
* Collect feature selections using setupUI configuration
|
|
43
|
-
*/
|
|
44
|
-
private collectTemplateApplications;
|
|
45
|
-
/**
|
|
46
|
-
* Show confirmation and create the project
|
|
47
|
-
*/
|
|
48
|
-
private confirmAndCreate;
|
|
49
|
-
/**
|
|
50
|
-
* Generate NPM-compatible folder name from product name
|
|
51
|
-
*/
|
|
52
|
-
private generateFolderName;
|
|
53
|
-
/**
|
|
54
|
-
* Generate license.key file with provided license JSON
|
|
55
|
-
*/
|
|
56
|
-
private generateLicenseFile;
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=create.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.service.d.ts","sourceRoot":"","sources":["../../src/services/create.service.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAwB;IACtC,OAAO,CAAC,eAAe,CAAyB;IAEhD;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBtC;;OAEG;YACW,gBAAgB;YAwFhB,iBAAiB;IA8B/B;;OAEG;YACW,2BAA2B;IAiDzC;;OAEG;YACW,gBAAgB;IA8D9B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAQ1B;;OAEG;YACW,mBAAmB;CAYlC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev.service.d.ts","sourceRoot":"","sources":["../../src/services/dev.service.ts"],"names":[],"mappings":"AAUA,wBAAsB,YAAY,kBAYjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"electronBuilder.d.ts","sourceRoot":"","sources":["../../../src/services/installer/electronBuilder.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"electronForge.d.ts","sourceRoot":"","sources":["../../../src/services/installer/electronForge.ts"],"names":[],"mappings":"AAmBA,wBAAsB,8BAA8B,IAAI,OAAO,CAAC;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,CAAC,CAgBtF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"installer.service.d.ts","sourceRoot":"","sources":["../../../src/services/installer/installer.service.ts"],"names":[],"mappings":"AAoCA,wBAAsB,aAAa,CAAC,QAAQ,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA8BrG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"macOS.helper.d.ts","sourceRoot":"","sources":["../../../src/services/installer/macOS.helper.ts"],"names":[],"mappings":"AAcA,wBAAsB,oBAAoB,kBAKzC;AAGD,wBAAsB,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBlE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prerequisites.d.ts","sourceRoot":"","sources":["../../../src/services/installer/prerequisites.ts"],"names":[],"mappings":"AAOA,wBAAsB,qBAAqB,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAiCjF"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare function signBinary(binaryPath: string): Promise<void>;
|
|
2
|
-
export declare function signIOCDBinaries(): Promise<void>;
|
|
3
|
-
export declare function signWithSmctl(exePath: string): Promise<void>;
|
|
4
|
-
export declare function detectSigningCapabilities(): Promise<{
|
|
5
|
-
hasSigntool: boolean;
|
|
6
|
-
hasSmctl: boolean;
|
|
7
|
-
sdkPath?: string | undefined;
|
|
8
|
-
recommendations: string[];
|
|
9
|
-
}>;
|
|
10
|
-
//# sourceMappingURL=windows.helper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"windows.helper.d.ts","sourceRoot":"","sources":["../../../src/services/installer/windows.helper.ts"],"names":[],"mappings":"AAUA,wBAAsB,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBlE;AAED,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAiCtD;AA8KD,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA4ClE;AAED,wBAAsB,yBAAyB,IAAI,OAAO,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,eAAe,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC,CAgDD"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
export declare const prodPublicKey = "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAoaL0vbGVpI6fw/YY6vvf\nQFHA097QBPIzLf+8LccaFaN7kz/pvX70V3clnmtE/vY5yhzGksypOX9CfcZpyH1/\nnHmeJNWugts9SaO/+/SYC9iVmi34M/DjRQnKmhmAcd9/X6hxCwtf6nR32Igy2Z0X\niBvdUcstTrDT55YpHf+g2myVWqPfyv5+q9KlqrySb7Po/PGsdpth4Jqkqhl49hQv\n6D0sp2wRHEqjtblOz4ZYyh++02Xir+mhAYxPPrhx4ymm4jPmiqYP5aUky4udPydF\nlBHj/sKGzlU/kcd/jiws7l0Iy7DDV0ajRkbJ3C18hW7rs0xRxhGdySaj0VBA7vtR\nZ7zjDADNm9KqLQPB9nKGPSBLzQBYW+mQP92seyKRd2f29g4hFkX+kkZnS7CAvfLs\njIBw7GlHuTiZCMAgiPatU/7WxneD8Qs/s+cMMk5CTImWL/BWdtd18TMjL1G/LiTA\n3uNFnbdzrRYAC33/02W73dyk64uYtZ9rPkMJnYMMWMU8zpauQxzezxuSYCEtp2N8\n6YsWnPaZkrdZKQxUsQ2AoDJ+GWYlMJZoNh+wj0pyZcZ/BEAGCvK3DcGlgjb2mgJX\nSBAqI8x0afhfXqckthbsIaqi+0kdAgQV0VDKI0OCZgesrjwPlawmBbpgCdZ28oc3\n4w1zLjAq74LInPITHxMzaaECAwEAAQ==\n-----END PUBLIC KEY-----\n";
|
|
2
|
-
export declare class LicenseService {
|
|
3
|
-
private logger;
|
|
4
|
-
private publicKey;
|
|
5
|
-
validateLicense(license?: string): LicenseInfo;
|
|
6
|
-
private validateJWT;
|
|
7
|
-
/**
|
|
8
|
-
* Only called in unit tests.
|
|
9
|
-
*/
|
|
10
|
-
setProdPublicKey(): void;
|
|
11
|
-
/**
|
|
12
|
-
* Only called in unit tests.
|
|
13
|
-
*/
|
|
14
|
-
setTestPublicKey(publicKey: string): void;
|
|
15
|
-
}
|
|
16
|
-
export declare class LicenseError extends Error {
|
|
17
|
-
readonly licensePayload: LicensePayload;
|
|
18
|
-
constructor(message: string, licensePayload: LicensePayload);
|
|
19
|
-
}
|
|
20
|
-
export declare class LicenseOrganization {
|
|
21
|
-
/**
|
|
22
|
-
* Organization display name. Used in logs.
|
|
23
|
-
* @example "InteropIO"
|
|
24
|
-
*/
|
|
25
|
-
displayName: string;
|
|
26
|
-
/**
|
|
27
|
-
* Organization identifier. Unused.
|
|
28
|
-
* @example "interopio"
|
|
29
|
-
*/
|
|
30
|
-
identifier: string;
|
|
31
|
-
}
|
|
32
|
-
interface LicensePayload {
|
|
33
|
-
type: "paid" | "trial";
|
|
34
|
-
expiration?: number;
|
|
35
|
-
extraComponents: {
|
|
36
|
-
insights: {
|
|
37
|
-
enabled: boolean;
|
|
38
|
-
};
|
|
39
|
-
bbgv2: {
|
|
40
|
-
enabled: boolean;
|
|
41
|
-
};
|
|
42
|
-
bbgv3: {
|
|
43
|
-
enabled: boolean;
|
|
44
|
-
};
|
|
45
|
-
excel: {
|
|
46
|
-
enabled: boolean;
|
|
47
|
-
};
|
|
48
|
-
outlook: {
|
|
49
|
-
enabled: boolean;
|
|
50
|
-
};
|
|
51
|
-
word: {
|
|
52
|
-
enabled: boolean;
|
|
53
|
-
};
|
|
54
|
-
teams: {
|
|
55
|
-
enabled: boolean;
|
|
56
|
-
};
|
|
57
|
-
fidessa: {
|
|
58
|
-
enabled: boolean;
|
|
59
|
-
};
|
|
60
|
-
salesforce: {
|
|
61
|
-
enabled: boolean;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
issuedBy: string;
|
|
65
|
-
email: string;
|
|
66
|
-
iat: number;
|
|
67
|
-
licensee: string;
|
|
68
|
-
organization: {
|
|
69
|
-
identifier: string;
|
|
70
|
-
displayName: string;
|
|
71
|
-
};
|
|
72
|
-
meta?: any;
|
|
73
|
-
}
|
|
74
|
-
export interface LicenseInfo {
|
|
75
|
-
/**
|
|
76
|
-
* Invalid – missing or improperly signed certificate
|
|
77
|
-
* Inactive – valid certificate but no longer usable (e.g. expired, revoked)
|
|
78
|
-
* Active – valid and can be used
|
|
79
|
-
*
|
|
80
|
-
* Note that paid licenses are always "valid" in practice, even if they have an expiration date. The expiration date is used for informational purposes only.
|
|
81
|
-
**/
|
|
82
|
-
status: "Invalid" | "Inactive" | "Active";
|
|
83
|
-
type: "Trial" | "Paid";
|
|
84
|
-
/**
|
|
85
|
-
* If `true` the license is expired.
|
|
86
|
-
*/
|
|
87
|
-
isExpired: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Error message related to invalid or inactive license.
|
|
90
|
-
* Undefined if the license is valid and active.
|
|
91
|
-
*/
|
|
92
|
-
errorMessage?: string | undefined;
|
|
93
|
-
/**
|
|
94
|
-
* License JWT payload.
|
|
95
|
-
* Only there if the license is present and correctly signed.
|
|
96
|
-
*/
|
|
97
|
-
licensePayload?: LicensePayload | undefined;
|
|
98
|
-
}
|
|
99
|
-
export declare enum LicenseType {
|
|
100
|
-
paid = "paid",
|
|
101
|
-
trail = "trail"
|
|
102
|
-
}
|
|
103
|
-
declare const _default: LicenseService;
|
|
104
|
-
export default _default;
|
|
105
|
-
//# sourceMappingURL=license.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"license.service.d.ts","sourceRoot":"","sources":["../../src/services/license.service.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,mzBAczB,CAAC;AAGF,qBAAa,cAAc;IACvB,OAAO,CAAC,MAAM,CAAwB;IAEtC,OAAO,CAAC,SAAS,CAAyB;IAGnC,eAAe,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW;IA4FrD,OAAO,CAAC,WAAW;IAuBnB;;OAEG;IACI,gBAAgB;IAIvB;;OAEG;IACI,gBAAgB,CAAC,SAAS,EAAE,MAAM;CAG5C;AAED,qBAAa,YAAa,SAAQ,KAAK;IACnC,SAAgB,cAAc,EAAE,cAAc,CAAC;gBAEnC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,cAAc;CAI9D;AAED,qBAAa,mBAAmB;IAC5B;;;OAGG;IACI,WAAW,EAAG,MAAM,CAAC;IAE5B;;;OAGG;IACI,UAAU,EAAG,MAAM,CAAC;CAC9B;AAED,UAAU,cAAc;IACpB,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE;QACb,QAAQ,EAAE;YACN,OAAO,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,KAAK,EAAE;YACH,OAAO,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,KAAK,EAAE;YACH,OAAO,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,KAAK,EAAE;YACH,OAAO,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,OAAO,EAAE;YACL,OAAO,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,IAAI,EAAE;YACF,OAAO,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,KAAK,EAAE;YACH,OAAO,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,OAAO,EAAE;YACL,OAAO,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,UAAU,EAAE;YACR,OAAO,EAAE,OAAO,CAAC;SACpB,CAAC;KACL,CAAA;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE;QACV,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACvB,CAAA;IACD,IAAI,CAAC,EAAE,GAAG,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAExB;;;;;;QAMI;IACJ,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;IAG1C,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAElC;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;CAC/C;AAED,oBAAY,WAAW;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;CAClB;;AAED,wBAAoC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Renames an app bundle contents (not the bundle itself) to a new base name. This means
|
|
3
|
-
* - Updating the executable name inside as well
|
|
4
|
-
* - Updating the Info.plist file accordingly
|
|
5
|
-
* - Updating all Electron Helper apps in Contents/Frameworks to match the new base name (bundle name + executable + plist)
|
|
6
|
-
* - Copies the logo.icns file from Contents/assets/images to Contents/Resources
|
|
7
|
-
*
|
|
8
|
-
* @param appBundlePath Absolute path to YourApp.app
|
|
9
|
-
* @param newBaseName Desired base name (e.g., "JPM Connect")
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
export declare function renameAppBundleContents(appBundlePath: string, newBaseName: string): Promise<void>;
|
|
13
|
-
//# sourceMappingURL=macOS.helper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"macOS.helper.d.ts","sourceRoot":"","sources":["../../../src/services/modifications/macOS.helper.ts"],"names":[],"mappings":"AASA;;;;;;;;;;GAUG;AACH,wBAAsB,uBAAuB,CAAC,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,iBASvF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modifications.service.d.ts","sourceRoot":"","sources":["../../../src/services/modifications/modifications.service.ts"],"names":[],"mappings":"AAkCA,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAgF7E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"windows.helper.d.ts","sourceRoot":"","sources":["../../../src/services/modifications/windows.helper.ts"],"names":[],"mappings":"AAYA,wBAAsB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAU/C"}
|