diff --git a/.gitmodules b/.gitmodules index 9adce588..203ef151 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "capacitor/git_modules/nodejs-mobile"] path = capacitor/git_modules/nodejs-mobile url = https://github.com/nodejs-mobile/nodejs-mobile +[submodule "electron/electron-dist"] + path = electron/electron-dist + url = https://github.com/hayase-app/electron-dist diff --git a/common/modules/anilist.js b/common/modules/anilist.js index c2fafa5a..5f4baf6e 100644 --- a/common/modules/anilist.js +++ b/common/modules/anilist.js @@ -259,7 +259,8 @@ class AnilistClient { credentials: 'omit', headers: { 'Content-Type': 'application/json', - Accept: 'application/json' + Accept: 'application/json', + Referer: 'https://anilist.co' }, body: JSON.stringify({ query: query.replace(/\s/g, '').replaceAll(' ', ' '), diff --git a/electron/electron-dist b/electron/electron-dist new file mode 160000 index 00000000..8957afdf --- /dev/null +++ b/electron/electron-dist @@ -0,0 +1 @@ +Subproject commit 8957afdfbc76a10303c484754145c486a2aa549e diff --git a/electron/package.json b/electron/package.json index 097374cb..6e89e38b 100644 --- a/electron/package.json +++ b/electron/package.json @@ -1,6 +1,6 @@ { "name": "Miru", - "version": "5.5.6", + "version": "5.5.7", "private": true, "author": "ThaUnknown_ ", "description": "Stream anime torrents, real-time with no waiting for downloads.", @@ -18,7 +18,7 @@ "@electron/notarize": "^2.3.2", "common": "workspace:*", "discord-rpc": "4.0.1", - "electron": "29.1.4", + "electron": "32.1.1", "electron-builder": "^24.13.3", "electron-log": "^5.1.7", "electron-updater": "^6.2.1", @@ -43,11 +43,7 @@ "buildResources": "buildResources" }, "asarUnpack": "**/*.node", - "electronDownload": { - "mirror": "https://github.com/aa910d571134/feb7c2e1a10f/releases/download/", - "version": "29.1.4", - "customDir": "2ffc48f0b43f" - }, + "electronDist": "./electron-dist", "protocols": { "name": "miru", "schemes": [ @@ -122,4 +118,4 @@ "artifactName": "${os}-${name}-${version}-installer.${ext}" } } -} +} \ No newline at end of file