diff --git a/package-lock.json b/package-lock.json index ce3eb4f..a083abf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,20 @@ { "name": "ezpplauncher-next", - "version": "2.1.2", + "version": "2.1.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ezpplauncher-next", - "version": "2.1.2", + "version": "2.1.7", "hasInstallScript": true, "license": "MIT", "dependencies": { "@types/better-sqlite3": "^7.6.8", "axios": "^1.6.5", "better-sqlite3": "^9.2.2", + "bsdiff-bin": "^0.1.0", + "bsdiff-wasm": "^0.1.4", "crypto": "^1.0.1", "crypto-js": "^4.2.0", "custom-electron-titlebar": "^4.2.7", @@ -2004,6 +2006,18 @@ "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": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", diff --git a/package.json b/package.json index abbd099..d1ae490 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,8 @@ "@types/better-sqlite3": "^7.6.8", "axios": "^1.6.5", "better-sqlite3": "^9.2.2", + "bsdiff-bin": "^0.1.0", + "bsdiff-wasm": "^0.1.4", "crypto": "^1.0.1", "crypto-js": "^4.2.0", "custom-electron-titlebar": "^4.2.7", diff --git a/test/patch.test.ts b/test/patch.test.ts new file mode 100644 index 0000000..deadd58 --- /dev/null +++ b/test/patch.test.ts @@ -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") + }); +})(); diff --git a/working/bspatch.exe b/working/bspatch.exe new file mode 100644 index 0000000..b65a699 Binary files /dev/null and b/working/bspatch.exe differ