refactor(checksum): streamline checksum handling and improve UI transitions

- Removed GITHUB_TOKEN from workflow as it's no longer needed.
- Enhanced ButtonCard component with smoother transitions for checksum display.
- Cleaned up unused styles related to checksum interactions.
This commit is contained in:
taroj1205 2025-05-09 12:19:35 +12:00
parent 3816206f6b
commit 79d4aeb39b
No known key found for this signature in database
GPG key ID: 0FCB6CFFE0981AB7
3 changed files with 3 additions and 25 deletions

View file

@ -3,13 +3,9 @@
* Returns a mapping from filename to checksum.
*/
export async function getChecksums() {
const token = import.meta.env.GITHUB_TOKEN;
if (!token) throw new Error('GITHUB_TOKEN is not set in environment variables');
const res = await fetch('https://api.github.com/repos/zen-browser/desktop/releases/latest', {
headers: {
'Accept': 'application/vnd.github+json',
'Authorization': `Bearer ${token}`,
'X-GitHub-Api-Version': '2022-11-28',
'User-Agent': 'zen-browser-checksum-fetcher',
},