mirror of
https://github.com/OpenFusionProject/Client.git
synced 2025-09-30 14:10:06 +00:00
Add large address aware patch to build process
This commit is contained in:
19
build/4gb-patch.js
Normal file
19
build/4gb-patch.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const fs = require('fs');
|
||||
const file = './dist/win-ia32-unpacked/OpenFusionClient.exe'
|
||||
|
||||
exports.default = async function() {
|
||||
fs.open(file, "r+", (err, fd) => {
|
||||
if(!err) {
|
||||
fs.write(
|
||||
fd, new Uint8Array([0x22]), 0, 1, 0x166,
|
||||
(err) => {
|
||||
if(err) {
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
);
|
||||
} else {
|
||||
throw err;
|
||||
}
|
||||
});
|
||||
}
|
@@ -1,10 +1,10 @@
|
||||
const fs = require('fs');
|
||||
const dir = './dist/win-ia32-unpacked/resources/default_app'
|
||||
|
||||
exports.default = async function(context) {
|
||||
fs.rmdir(dir, { recursive: true }, (err) => {
|
||||
exports.default = async function() {
|
||||
fs.rm(dir, { recursive: true }, (err) => {
|
||||
if (err) {
|
||||
throw err;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user