Comments (3)
Hey @hbarsaiyan, thanks for submitting the issue! The release/update process comes from electron-builder - you can verify checksums in different ways:
- CLI (see this StackExchange question for details):
$ sha512sum YouTube-Music-1.6.4.AppImage | cut -f1 -d\ | xxd -r -p | base64 -w 0
2bdeFR5gm96WlMlg97n/QPFoHTOLV12GlIeApvR6WlgYO1UG6eDCKzlZRoLTn+obQNlp3746Mu3hFJKwbJa/yw==
- node.js script (see this electron-builder issue):
const path = require('path');
const fs = require('fs');
const crypto = require('crypto');
const YOUR_FILE_PATH = 'YouTube-Music-1.6.4.AppImage';
function hashFile(file, algorithm = 'sha512', encoding = 'base64', options) {
return new Promise((resolve, reject) => {
const hash = crypto.createHash(algorithm);
hash.on('error', reject).setEncoding(encoding);
fs.createReadStream(
file,
Object.assign({}, options, {
highWaterMark: 1024 * 1024,
/* better to use more memory but hash faster */
})
)
.on('error', reject)
.on('end', () => {
hash.end();
console.log(hash.read());
resolve(hash.read());
})
.pipe(
hash,
{
end: false,
}
);
});
}
const installerPath = path.resolve(
__dirname,
YOUR_FILE_PATH
);
hashFile(installerPath);
$ node hash.js
2bdeFR5gm96WlMlg97n/QPFoHTOLV12GlIeApvR6WlgYO1UG6eDCKzlZRoLTn+obQNlp3746Mu3hFJKwbJa/yw==
Does it answer your question?
from youtube-music.
@th-ch thanks for the detailed explanation. I didn't about Base64 hash encoding.
from youtube-music.
Or do these SHA512 hashes refer to something else?
from youtube-music.
Related Issues (20)
- [Bug]: Lyrics don't load if sync lyrics enabled HOT 14
- [Bug]: Album Actions doesn't work
- [Bug]: (Synced Lyrics) Lyrics being displayed abnormally in Video mode
- [Suggestion/Bug]: Improving `Synced Lyrics` plugin HOT 1
- [Bug]: Error: net::ERR_FAILED on downloader HOT 1
- [Feature Request]: Show original lyrics if no lyrics on LRCLIB HOT 2
- [Bug]: (Synced Lyrics): Lyrics don't update if the song is started from a playlist's play button
- [Bug]: Song duration left doesn't show up anymore in Discord Rich Presence HOT 5
- [Feature Request]: Adding Rainmeter Integration HOT 2
- [Bug]: In-app menu make history page very lag HOT 1
- [Bug]: (Synced Lyrics): Lyrics stuck at the end when song ends and another one starts HOT 5
- [Feature Request]: Auto-updater HOT 1
- [Feature Request]: Macro Deck support ! HOT 1
- [Feature Request]: User Agent Editor in YouTube Music Settings
- [Feature Request]: Playback buttons on the taskbar icon. HOT 20
- [Feature Request]: (Synced Lyrics) Option to disable album_name in LRCLIB request HOT 1
- [Bug]: (Synced Lyrics) In some unknown conditions, lyrics doesn't display even if lyrics exists and found on LRCLIB. HOT 7
- [Bug]: (Discord Rich Presence): `Play on YouTube Music` feature is broken HOT 2
- [Bug]: Menu Bar disappear and plugin not working after upgrade an login HOT 2
- [Bug]: the proxy does not work in any way HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtube-music.