wip: patching osu files

This commit is contained in:
HorizonCode 2025-02-18 21:47:55 +01:00
parent f31126e2b1
commit b7f24e897e
4 changed files with 25 additions and 2 deletions

18
package-lock.json generated
View File

@ -1,18 +1,20 @@
{ {
"name": "ezpplauncher-next", "name": "ezpplauncher-next",
"version": "2.1.2", "version": "2.1.7",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "ezpplauncher-next", "name": "ezpplauncher-next",
"version": "2.1.2", "version": "2.1.7",
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@types/better-sqlite3": "^7.6.8", "@types/better-sqlite3": "^7.6.8",
"axios": "^1.6.5", "axios": "^1.6.5",
"better-sqlite3": "^9.2.2", "better-sqlite3": "^9.2.2",
"bsdiff-bin": "^0.1.0",
"bsdiff-wasm": "^0.1.4",
"crypto": "^1.0.1", "crypto": "^1.0.1",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
"custom-electron-titlebar": "^4.2.7", "custom-electron-titlebar": "^4.2.7",
@ -2004,6 +2006,18 @@
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
} }
}, },
"node_modules/bsdiff-bin": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/bsdiff-bin/-/bsdiff-bin-0.1.0.tgz",
"integrity": "sha512-hXGe3uXRgyl2BI1W8c4PdLlDHlPXlYaOaYtWjd5R5MJhF7tq5L4Ng3/qbNGJe7ZIG1htaasM+ziY1TkB1SgrwQ==",
"license": "BSD"
},
"node_modules/bsdiff-wasm": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/bsdiff-wasm/-/bsdiff-wasm-0.1.4.tgz",
"integrity": "sha512-IdD9jw9NLVrerD96nUThyoj+0HyfCbrIJPdCf6iTB7yIdc86jZugpatw20qeMyepY7UDdN5p64bhti1ruHBmSg==",
"license": "MIT"
},
"node_modules/buffer": { "node_modules/buffer": {
"version": "5.7.1", "version": "5.7.1",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",

View File

@ -40,6 +40,8 @@
"@types/better-sqlite3": "^7.6.8", "@types/better-sqlite3": "^7.6.8",
"axios": "^1.6.5", "axios": "^1.6.5",
"better-sqlite3": "^9.2.2", "better-sqlite3": "^9.2.2",
"bsdiff-bin": "^0.1.0",
"bsdiff-wasm": "^0.1.4",
"crypto": "^1.0.1", "crypto": "^1.0.1",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
"custom-electron-titlebar": "^4.2.7", "custom-electron-titlebar": "^4.2.7",

7
test/patch.test.ts Normal file
View File

@ -0,0 +1,7 @@
const bs = require("bsdiff-bin")
(async () => {
bs.patch('./osu!.exe', './osu!patched.exe', './osu!patch.diff', function(err){
if(err) console.log("failed")
});
})();

BIN
working/bspatch.exe Normal file

Binary file not shown.