@interopio/iocd-cli 0.0.26 → 0.0.27

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.
@@ -108,6 +108,17 @@
108
108
  "description": "Copyright notice for your product (e.g., \"Copyright © 2025 My Company\"). Appears in application metadata, installers, and about dialogs.",
109
109
  "type": "string"
110
110
  },
111
+ "license": {
112
+ "additionalProperties": false,
113
+ "description": "License configuration for io.Connect Desktop.",
114
+ "properties": {
115
+ "copyLicenseToOutput": {
116
+ "description": "Copy license key to the io.Connect Desktop resources directory during build and dev mode. The license key is read from the IOCD_LICENSE_KEY environment variable or the config/iocd.license.key file. Default: true.",
117
+ "type": "boolean"
118
+ }
119
+ },
120
+ "type": "object"
121
+ },
111
122
  "mac": {
112
123
  "additionalProperties": false,
113
124
  "description": "macOS-specific configuration for app bundles, code signing, and notarization.",
@@ -6,11 +6,13 @@ const path_1 = require("../utils/path");
6
6
  const fs_1 = require("fs");
7
7
  const path_2 = require("path");
8
8
  const license_service_1 = require("./license.service");
9
+ const config_service_1 = require("./config/config.service");
9
10
  const logger = logger_1.Logger.getInstance("license-file.service");
10
11
  /**
11
12
  * LicenseFileService handles copying the license key file to the application binary directory.
12
13
  *
13
14
  * This service:
15
+ * - Checks if license copying is enabled in config (default: true)
14
16
  * - Gets the license key from LicenseService (either from environment variable or config/iocd.license.key)
15
17
  * - Writes it to the io.Connect Desktop directory as "license.key"
16
18
  *
@@ -18,9 +20,15 @@ const logger = logger_1.Logger.getInstance("license-file.service");
18
20
  */
19
21
  class LicenseFileService {
20
22
  /**
21
- * Copy the license key to the iocd directory if it exists
23
+ * Copy the license key to the iocd directory if it exists and copying is enabled
22
24
  */
23
25
  static async copyLicenseFile() {
26
+ // Check if license copying is enabled (default: true)
27
+ const copyEnabled = config_service_1.ConfigManager.config.license?.copyLicenseToOutput ?? true;
28
+ if (!copyEnabled) {
29
+ logger.debug("License copying is disabled in config - skipping license file copy");
30
+ return;
31
+ }
24
32
  const licenseService = new license_service_1.LicenseService();
25
33
  const licenseKey = licenseService.getLicenseKey();
26
34
  if (!licenseKey) {
@@ -1 +1 @@
1
- {"version":3,"file":"license-file.service.js","sourceRoot":"","sources":["../../src/services/license-file.service.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AACzC,wCAA0C;AAC1C,2BAAmC;AACnC,+BAA4B;AAC5B,uDAAmD;AAEnD,MAAM,MAAM,GAAG,eAAM,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;AAE1D;;;;;;;;GAQG;AACH,MAAa,kBAAkB;IAC3B;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,eAAe;QACxB,MAAM,cAAc,GAAG,IAAI,gCAAc,EAAE,CAAC;QAC5C,MAAM,UAAU,GAAG,cAAc,CAAC,aAAa,EAAE,CAAC;QAElD,IAAI,CAAC,UAAU,EAAE,CAAC;YACd,MAAM,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;YAClE,OAAO;QACX,CAAC;QAED,MAAM,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;QAEhE,IAAI,CAAC;YACD,yBAAyB;YACzB,MAAM,OAAO,GAAG,gBAAS,CAAC,mBAAmB,EAAE,CAAC;YAChD,MAAM,iBAAiB,GAAG,IAAA,WAAI,EAAC,OAAO,EAAE,aAAa,CAAC,CAAC;YAEvD,MAAM,CAAC,KAAK,CAAC,2BAA2B,iBAAiB,EAAE,CAAC,CAAC;YAE7D,IAAA,kBAAa,EAAC,iBAAiB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;YAEtD,MAAM,CAAC,IAAI,CAAC,wCAAwC,iBAAiB,EAAE,CAAC,CAAC;QAC7E,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,CAAC,KAAK,CAAC,iCAAiC,KAAK,EAAE,CAAC,CAAC;YACvD,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;CACJ;AA9BD,gDA8BC"}
1
+ {"version":3,"file":"license-file.service.js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,CAAC,CAAC;YACvD,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;CACJ;AAtCD,gDAsCC"}
@@ -36,5 +36,8 @@
36
36
  "notarization": {
37
37
  "type": "notarytool"
38
38
  }
39
+ },
40
+ "license": {
41
+ "copyLicenseToOutput": true
39
42
  }
40
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interopio/iocd-cli",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "CLI tool for setting up, building and packaging io.Connect Desktop platforms",
5
5
  "engines": {
6
6
  "node": ">=18.0.0",