mirror of
https://github.com/OpenFusionProject/Client.git
synced 2024-11-22 13:40:06 +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,8 +1,8 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const dir = './dist/win-ia32-unpacked/resources/default_app'
|
const dir = './dist/win-ia32-unpacked/resources/default_app'
|
||||||
|
|
||||||
exports.default = async function(context) {
|
exports.default = async function() {
|
||||||
fs.rmdir(dir, { recursive: true }, (err) => {
|
fs.rm(dir, { recursive: true }, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,10 @@
|
|||||||
"to": "utils"
|
"to": "utils"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"afterPack": "./build/delete-default-app.js"
|
"afterPack": [
|
||||||
|
"./build/4gb-patch.js",
|
||||||
|
"./build/delete-default-app.js"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fs-extra": "^0.30.0"
|
"fs-extra": "^0.30.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user