Skip to content

Commit fb26bc5

Browse files
committed
fix: hash calc; include deb file in linux upload workflow
1 parent 919d97c commit fb26bc5

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ jobs:
141141
name: linux-build-files
142142
path: |
143143
./out/all/*
144+
./out/make/*
144145
./build-artifacts/*
145146
if-no-files-found: error
146147

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "yomikiru",
33
"productName": "Yomikiru",
4-
"version": "2.22.5-test.2",
4+
"version": "2.22.5-test.3",
55
"description": "An offline desktop reader for manga, comics, and novels. Offers a customizable reading experience with extensive settings, shortcuts, themes and layouts.",
66
"main": ".webpack/main",
77
"author": {

scripts/generate-release.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ type ArtifactKey = keyof ReturnType<typeof createArtifactMap>;
8686
* Calculates SHA256 hash of a file
8787
*/
8888
const calculateSHA256 = (filePath: string): string => {
89-
const fileBuffer = fs.readFileSync(filePath, "binary");
89+
const fileBuffer = fs.readFileSync(filePath);
9090
const hashSum = createHash("sha256");
91-
hashSum.update(fileBuffer);
91+
hashSum.update(new Uint8Array(fileBuffer));
9292
return hashSum.digest("hex");
9393
};
9494

0 commit comments

Comments
 (0)