712274d912
- Implement the localization service. - Use the proper build process which generates the require JSON files. - Implement getting the locale and language configuration.
23 lines
569 B
JavaScript
23 lines
569 B
JavaScript
const { Binary } = require("@coder/nbin");
|
|
const fs = require("fs");
|
|
const path = require("path");
|
|
|
|
const source = process.argv[2];
|
|
const target = process.argv[3];
|
|
const binaryName = process.argv[4];
|
|
|
|
const bin = new Binary({
|
|
mainFile: path.join(source, "out/vs/server/main.js"),
|
|
target: target,
|
|
});
|
|
|
|
bin.writeFiles(path.join(source, "**"));
|
|
|
|
bin.build().then((binaryData) => {
|
|
const outputPath = path.join(source, binaryName);
|
|
fs.writeFileSync(outputPath, binaryData);
|
|
fs.chmodSync(outputPath, "755");
|
|
}).catch((ex) => {
|
|
console.error(ex);
|
|
process.exit(1);
|
|
});
|