upgrade electron to v32

This commit is contained in:
Vendicated 2024-09-20 20:07:17 +02:00
parent 4274647c81
commit 37db07807a
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
3 changed files with 588 additions and 1078 deletions

View file

@ -25,7 +25,7 @@
}, },
"dependencies": { "dependencies": {
"arrpc": "github:OpenAsar/arrpc#c62ec6a04c8d870530aa6944257fe745f6c59a24", "arrpc": "github:OpenAsar/arrpc#c62ec6a04c8d870530aa6944257fe745f6c59a24",
"electron-updater": "^6.2.1" "electron-updater": "^6.3.4"
}, },
"optionalDependencies": { "optionalDependencies": {
"@vencord/venmic": "^6.1.0" "@vencord/venmic": "^6.1.0"
@ -33,26 +33,26 @@
"devDependencies": { "devDependencies": {
"@fal-works/esbuild-plugin-global-externals": "^2.1.2", "@fal-works/esbuild-plugin-global-externals": "^2.1.2",
"@stylistic/eslint-plugin": "^2.8.0", "@stylistic/eslint-plugin": "^2.8.0",
"@types/node": "^20.14.11", "@types/node": "^22.5.5",
"@types/react": "^18.3.3", "@types/react": "^18.3.8",
"@vencord/types": "^1.8.4", "@vencord/types": "^1.8.4",
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
"electron": "^31.2.1", "electron": "^32.1.2",
"electron-builder": "^25.0.1", "electron-builder": "^25.0.5",
"esbuild": "^0.20.2", "esbuild": "^0.23.1",
"eslint": "^9.10.0", "eslint": "^9.11.0",
"eslint-import-resolver-alias": "^1.1.2", "eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-path-alias": "^1.1.0", "eslint-plugin-path-alias": "^2.1.0",
"eslint-plugin-prettier": "^5.2.1", "eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-simple-header": "^1.2.1", "eslint-plugin-simple-header": "^1.2.1",
"eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unused-imports": "^3.2.0", "eslint-plugin-unused-imports": "^4.1.4",
"prettier": "^3.3.3", "prettier": "^3.3.3",
"source-map-support": "^0.5.21", "source-map-support": "^0.5.21",
"tsx": "^4.16.2", "tsx": "^4.19.1",
"type-fest": "^4.23.0", "type-fest": "^4.26.1",
"typescript": "^5.5.4", "typescript": "^5.6.2",
"typescript-eslint": "^8.5.0", "typescript-eslint": "^8.6.0",
"xml-formatter": "^3.6.3" "xml-formatter": "^3.6.3"
}, },
"packageManager": "pnpm@9.1.0", "packageManager": "pnpm@9.1.0",

File diff suppressed because it is too large Load diff

View file

@ -61,14 +61,15 @@ export const DEFAULT_HEIGHT = 720;
export const DISCORD_HOSTNAMES = ["discord.com", "canary.discord.com", "ptb.discord.com"]; export const DISCORD_HOSTNAMES = ["discord.com", "canary.discord.com", "ptb.discord.com"];
const VersionString = `AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${process.versions.chrome.split(".")[0]}.0.0.0 Safari/537.36`;
const BrowserUserAgents = { const BrowserUserAgents = {
darwin: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36", darwin: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) ${VersionString}`,
linux: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36", linux: `Mozilla/5.0 (X11; Linux x86_64) ${VersionString}`,
windows: windows: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) ${VersionString}`
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
}; };
export const BrowserUserAgent = BrowserUserAgents[process.platform] || BrowserUserAgents.windows; export const BrowserUserAgent = BrowserUserAgents[process.platform] || BrowserUserAgents.windows;
console.log(BrowserUserAgent);
export const enum MessageBoxChoice { export const enum MessageBoxChoice {
Default, Default,