@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 +1 -1
- package/checksum-validator.js +9 -9
- package/checksums.json +10 -10
- package/electron-api.json +330 -311
- package/electron.d.ts +14 -4
- package/ow-electron.d.ts +1 -1
- package/package.json +6 -3
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
|
-
-
|
|
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
|
package/checksum-validator.js
CHANGED
|
@@ -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(
|
|
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": "
|
|
3
|
-
"ow-electron-v34.4.
|
|
4
|
-
"ow-electron-v34.4.
|
|
5
|
-
"ow-electron-v34.4.
|
|
6
|
-
"ow-electron-v34.4.
|
|
7
|
-
"ow-electron-v34.4.
|
|
8
|
-
"ow-electron-v34.4.
|
|
9
|
-
"ow-electron-v34.4.
|
|
10
|
-
"ow-electron-v34.4.
|
|
11
|
-
"electron.d.ts": "
|
|
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
|
}
|