mirror of
https://github.com/OpenFusionProject/Client.git
synced 2024-11-13 02:10:04 +00:00
Add large address aware patch to build process
This commit is contained in:
parent
4726a50be7
commit
d0f947c4a5
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;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,10 @@
|
||||
"to": "utils"
|
||||
}
|
||||
],
|
||||
"afterPack": "./build/delete-default-app.js"
|
||||
"afterPack": [
|
||||
"./build/4gb-patch.js",
|
||||
"./build/delete-default-app.js"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"fs-extra": "^0.30.0"
|
||||
|
Loading…
Reference in New Issue
Block a user