mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
Merge branch 'master' into v1.5.0
This commit is contained in:
@@ -708,5 +708,14 @@
|
||||
"ReleaseImg": "https://clan.cloudflare.steamstatic.com/images//32055887/9a141be5c44ca6fc81551a2c7e7f28407df413ed.png",
|
||||
"ReleaseDate": "1709831174",
|
||||
"year": "2024"
|
||||
},
|
||||
{
|
||||
"BSVersion": "1.36.0",
|
||||
"BSManifest": "8533509040167838423",
|
||||
"OculusBinaryId": "6863072637125790",
|
||||
"ReleaseURL": "https://store.steampowered.com/news/app/620980/view/4205873192610459250",
|
||||
"ReleaseImg": "https://clan.akamai.steamstatic.com/images//32055887/b8bd8a050e2bc3903cf18a277c5489ade01f7e75.png",
|
||||
"ReleaseDate": "1712681263",
|
||||
"year": "2024"
|
||||
}
|
||||
]
|
||||
@@ -18,9 +18,6 @@
|
||||
{
|
||||
"username": "Falmil"
|
||||
},
|
||||
{
|
||||
"username": "K1Lc4m"
|
||||
},
|
||||
{
|
||||
"username": "Anonymously42",
|
||||
"type": "diamond",
|
||||
@@ -30,9 +27,6 @@
|
||||
"username": "Burt",
|
||||
"type": "gold"
|
||||
},
|
||||
{
|
||||
"username": "Ilnahro"
|
||||
},
|
||||
{
|
||||
"username": "Phil",
|
||||
"type": "gold"
|
||||
@@ -41,18 +35,10 @@
|
||||
"username": "Protocrush",
|
||||
"type": "gold"
|
||||
},
|
||||
{
|
||||
"username": "ServerMensch",
|
||||
"type": "gold"
|
||||
},
|
||||
{
|
||||
"username": "Karlito",
|
||||
"type": "gold"
|
||||
},
|
||||
{
|
||||
"username": "Cathery",
|
||||
"type": "gold"
|
||||
},
|
||||
{
|
||||
"username": ".sharkey"
|
||||
},
|
||||
@@ -74,9 +60,6 @@
|
||||
{
|
||||
"username": "Minescence"
|
||||
},
|
||||
{
|
||||
"username": "Finlay"
|
||||
},
|
||||
{
|
||||
"username": "mereknom"
|
||||
},
|
||||
@@ -92,5 +75,9 @@
|
||||
},
|
||||
{
|
||||
"username": "liborsaf"
|
||||
},
|
||||
{
|
||||
"username": "aatame3",
|
||||
"type": "gold"
|
||||
}
|
||||
]
|
||||
|
||||
Generated
+25
-1071
File diff suppressed because it is too large
Load Diff
@@ -14,10 +14,10 @@
|
||||
"postinstall": "npm run electron-rebuild && npm run link-modules"
|
||||
},
|
||||
"dependencies": {
|
||||
"@resvg/resvg-js": "2.6.2",
|
||||
"ps-list": "^7.2.0",
|
||||
"query-process": "^0.0.3",
|
||||
"regedit-rs": "^1.0.2",
|
||||
"sharp": "^0.33.2"
|
||||
"regedit-rs": "^1.0.2"
|
||||
},
|
||||
"license": "MIT",
|
||||
"volta": {
|
||||
|
||||
@@ -14,7 +14,7 @@ import { WindowManagerService } from "../window-manager.service";
|
||||
import { IpcService } from "../ipc.service";
|
||||
import { BSVersionLibService } from "../bs-version-lib.service";
|
||||
import { execOnOs } from "../../helpers/env.helpers";
|
||||
import sharp from "sharp";
|
||||
import { Resvg } from "@resvg/resvg-js";
|
||||
import { StoreLauncherInterface } from "./store-launcher.interface";
|
||||
import { SteamLauncherService } from "./steam-launcher.service";
|
||||
import { OculusLauncherService } from "./oculus-launcher.service";
|
||||
@@ -127,16 +127,18 @@ export class BSLauncherService {
|
||||
return res;
|
||||
}
|
||||
|
||||
private createShortcutPngBuffer(color: Color): Promise<Buffer>{
|
||||
private createShortcutPngBuffer(color: Color): Buffer{
|
||||
|
||||
const svgBuffer = Buffer.from(`
|
||||
const svg = `
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 406.4 406.4" height="406.4" width="406.4">
|
||||
<rect rx="69.453" height="406.4" width="406.4" fill="${color.hex()}"/>
|
||||
<path d="M65.467 60.6H336.4v33.867L200.933 162.2 65.467 94.467z" fill="#fff"/>
|
||||
</svg>
|
||||
`);
|
||||
`;
|
||||
|
||||
return sharp(svgBuffer).resize(256).png().toBuffer();
|
||||
return new Resvg(svg, {
|
||||
fitTo: { mode: "width", value: 256 }
|
||||
}).render().asPng();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -223,7 +225,7 @@ export class BSLauncherService {
|
||||
|
||||
launchOption.version = {...(await this.remoteVersion.getVersionDetails(launchOption.version.BSVersion)), ...launchOption.version};
|
||||
|
||||
this.ipc.once("shortcut-launch-options", (_, reply) => {
|
||||
this.ipc.once("shortcut-launch-options", (_data, reply) => {
|
||||
reply(of(launchOption));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user