@overwolf/ow-electron 34.4.1 → 34.5.4-beta.0

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 CHANGED
@@ -7,7 +7,7 @@ We currently have these npm packages:
7
7
  few features to it
8
8
  - [@overwolf/ow-electron-builder](https://www.npmjs.com/package/@overwolf/ow-electron-builder) is a packaged based on electron-builder which
9
9
  supports building ow-electron
10
- - [@overwolf/electron-is-overwolf](https://www.npmjs.com/package/@overwolf/electron-is-overwolf) - similar to
10
+ - @overwolf/electron-is-overwolf - similar to
11
11
  [electron-is-dev](https://www.npmjs.com/package/electron-is-dev)
12
12
 
13
13
  There is no problem that both packages reside side-by-side with the original
@@ -6,7 +6,7 @@ function calculateFileHash(filePath) {
6
6
  return new Promise((resolve, reject) => {
7
7
  const hash = crypto.createHash('sha256');
8
8
  const stream = fs.createReadStream(filePath);
9
-
9
+
10
10
  stream.on('error', err => reject(err));
11
11
  stream.on('data', chunk => hash.update(chunk));
12
12
  stream.on('end', () => resolve(hash.digest('hex')));
@@ -24,23 +24,23 @@ async function validateChecksums(folderPath) {
24
24
  for (const [fileName, expectedHash] of Object.entries(checksums)) {
25
25
  const filePath = path.join(folderPath, fileName);
26
26
 
27
+ console.log(`\nFile: ${fileName}`);
28
+ console.log(`Expected hash: ${expectedHash}`);
29
+
27
30
  if (fs.existsSync(filePath)) {
28
31
  const actualHash = await calculateFileHash(filePath);
32
+ console.log(`Actual hash: ${actualHash}`);
29
33
  const matches = actualHash === expectedHash;
34
+ console.log(`Match: ${matches}`);
35
+
36
+ // Update checksums.json if hashes don't match
30
37
  if (!matches) {
31
- console.log(`Actual hash: ${actualHash}`);
32
- console.log(`File: ${fileName}`);
33
- console.log(`Expected hash: ${expectedHash}`);
34
- console.log(`Match: ${matches}`);
35
- // Update checksums.json if hashes don't match
36
38
  console.log('Updating checksums.json with new hash...');
37
39
  checksums[fileName] = actualHash;
38
40
  hasUpdates = true;
39
- } else {
40
- console.log(`File: ${fileName} match`);
41
41
  }
42
42
  } else {
43
- console.log(`File: ${fileName} not found in specified directory`);
43
+ console.log('File not found in specified directory');
44
44
  }
45
45
  }
46
46
 
package/checksums.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
- "electron-api.json": "da620386690d47805ca1f61d3d48756b2e7cf9d8f5f439da00c8b3bff36d0932",
3
- "ow-electron-v34.4.1-darwin-arm64.zip": "28400fc414337a5107476b6dfc5bc454a7d7201c4419106e6d6053b86f6c5691",
4
- "ow-electron-v34.4.1-darwin-x64.zip": "9ad859ef67b956fde9b67c95b92e8e7acaf56b6a8d849e68b52751e7c96d58b9",
5
- "ow-electron-v34.4.1-linux-x64.zip": "93edc4c4b213a40d7ad8eca1e2c90fe084c4841be5f63f30d4dd026fffe13591",
6
- "ow-electron-v34.4.1-linux-arm64.zip": "2f391f8d334722f4924319d12a7d5a80b09a55108fbf83f3a1dc96f8653ae8f6",
7
- "ow-electron-v34.4.1-linux-armv7l.zip": "29af72e24c74da70c85bfdce1ed6492b7efbe85f88cfb3da642844b51e5d7259",
8
- "ow-electron-v34.4.1-win32-x64.zip": "885f665de038b2fc505c99136bcb32e6cd8ea312d1c389da0f85eb5d0e987324",
9
- "ow-electron-v34.4.1-win32-ia32.zip": "f72a0622a75d6aaf1e9b1289be15aac015fed8df42504fa90f799acd513b4d7e",
10
- "ow-electron-v34.4.1-win32-arm64.zip": "c84fdea6841dc3cfc6b6b83398a80a9ea684c078ea2a2798bd62b1e31bbf26f4",
11
- "electron.d.ts": "ce0562bab8e45bf0fb53b928dfbdbc7e497db6e42a96d05e8695643761aacdab"
2
+ "electron-api.json": "7cfbc13990047fe5917ad9cf3269f83c4759551a5c300011bf8eda3af96efabb",
3
+ "ow-electron-v34.5.4-beta.0-darwin-arm64.zip": "aed16c98d4cf86d9ecb86c34da1bc1eb681225090251763061c6a3b9cfd5dd1f",
4
+ "ow-electron-v34.5.4-beta.0-darwin-x64.zip": "2757469f8b2c39a536eb41517dd5bcb9182eb4bc34141f30312ca2633f3e2306",
5
+ "ow-electron-v34.5.4-beta.0-linux-x64.zip": "47f7c4c8770def808ad4a16074e9df7b3fe5bc559777379a7413893e3d81100d",
6
+ "ow-electron-v34.5.4-beta.0-linux-arm64.zip": "d4c1ea911c0453c7ad3faf3cb4d98e784427e5b3c8902a6eaca841b038003b1f",
7
+ "ow-electron-v34.5.4-beta.0-linux-armv7l.zip": "048256f513e036df0f056c32b249b0ca48f6c3c0481b1e6bdc686df409289f8d",
8
+ "ow-electron-v34.5.4-beta.0-win32-x64.zip": "d6090914a5d52e2e3324f0756b295747624dd376af6454edc8dd9f87d61c90e2",
9
+ "ow-electron-v34.5.4-beta.0-win32-ia32.zip": "19f272b112ad2b2468caa3a01ceaa0f4ab83e100a0decdda36b261c0b584e848",
10
+ "ow-electron-v34.5.4-beta.0-win32-arm64.zip": "912346508a25c56a0f4a5eeda466bb145cabcbff9e68b0f8759bf8847e01dab3",
11
+ "electron.d.ts": "07e5f46c9cbf575aa42e18def188405a35cf18f6e0cfb462f499266b1811b43c"
12
12
  }