@overwolf/ow-electron 34.5.4-beta.0 → 34.5.5-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/checksum-validator.js +8 -8
- package/checksums.json +10 -10
- package/electron-api.json +302 -302
- package/electron.d.ts +1 -1
- package/ow-electron.d.ts +1 -1
- package/package.json +3 -3
package/checksum-validator.js
CHANGED
|
@@ -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
|
-
|
|
30
27
|
if (fs.existsSync(filePath)) {
|
|
31
28
|
const actualHash = await calculateFileHash(filePath);
|
|
32
|
-
console.log(`Actual hash: ${actualHash}`);
|
|
33
29
|
const matches = actualHash === expectedHash;
|
|
34
|
-
console.log(`Match: ${matches}`);
|
|
35
|
-
|
|
36
|
-
// Update checksums.json if hashes don't match
|
|
37
30
|
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
|
|
38
36
|
console.log('Updating checksums.json with new hash...');
|
|
39
37
|
checksums[fileName] = actualHash;
|
|
40
38
|
hasUpdates = true;
|
|
39
|
+
} else {
|
|
40
|
+
console.log(`File: ${fileName} match`);
|
|
41
41
|
}
|
|
42
42
|
} else {
|
|
43
|
-
console.log(
|
|
43
|
+
console.log(`File: ${fileName} 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.5.
|
|
4
|
-
"ow-electron-v34.5.
|
|
5
|
-
"ow-electron-v34.5.
|
|
6
|
-
"ow-electron-v34.5.
|
|
7
|
-
"ow-electron-v34.5.
|
|
8
|
-
"ow-electron-v34.5.
|
|
9
|
-
"ow-electron-v34.5.
|
|
10
|
-
"ow-electron-v34.5.
|
|
11
|
-
"electron.d.ts": "
|
|
2
|
+
"electron-api.json": "4066b0a9b54761afdd1ba52d67bf246bbe9719240312ec8658a432aa01827bd2",
|
|
3
|
+
"ow-electron-v34.5.5-beta.0-darwin-arm64.zip": "c74b919c76dbe43b9b1f5cdc658fcabec3091bcc0f5d24b5663aff7631e24362",
|
|
4
|
+
"ow-electron-v34.5.5-beta.0-darwin-x64.zip": "4ef44c66f837442af815b4bebc20ff8051dc274ea55b492922c57431fd47ebf1",
|
|
5
|
+
"ow-electron-v34.5.5-beta.0-linux-x64.zip": "560674f6a45b6c025e385fa9d9eb6131d19ba834a539366469935e2474a0c7f9",
|
|
6
|
+
"ow-electron-v34.5.5-beta.0-linux-arm64.zip": "f9847cdb521e82d1a64468dabf5b1dd51795504aaa55162399c2603fced60312",
|
|
7
|
+
"ow-electron-v34.5.5-beta.0-linux-armv7l.zip": "c5aa5f77ba3386f2989e330858e6a41b7293b3e741abc4146cf19b5a08b34473",
|
|
8
|
+
"ow-electron-v34.5.5-beta.0-win32-x64.zip": "be527dc740a6eee82d236708a424e00ec5c7633bff1e99839a09e312aae2e8fe",
|
|
9
|
+
"ow-electron-v34.5.5-beta.0-win32-ia32.zip": "6ef640e8a2e266a4e1f17f19663ef0595c5159262b4c9ee90cf8dfada27a2696",
|
|
10
|
+
"ow-electron-v34.5.5-beta.0-win32-arm64.zip": "0775c9a861fc1c018b6189123ac1c238074d5943ac769362054952ac1c665c0b",
|
|
11
|
+
"electron.d.ts": "efce6e4ac38694087fde1b7ba156035a327d9a1fc7581d2f5cf63bbeac5958f1"
|
|
12
12
|
}
|