welsonjs/helloworld.js
Namhyeon, Go afe7d6213a Refactor deploy time recording and improve instance setup
Moved RecordFirstDeployTime from MainForm to Program for better separation of concerns. Updated instance directory creation and asset copying logic in Program.cs to support JS entrypoints, including library copying and first deploy time recording. Added a sleep call to helloworld.js for demonstration purposes.
2025-11-20 17:09:43 +09:00

24 lines
503 B
JavaScript

var SYS = require("lib/system");
var HTTP = require("lib/http");
//var Toolkit = require("lib/toolkit");
function main(args) {
console.log("Hello world");
if (typeof WScript !== "undefined") {
console.log("Process version:", SYS.getProcessVersion());
}
try {
var web = HTTP.create();
console.log(web.userAgent);
} catch (e) {
console.error("lib/http: Something wrong");
}
sleep(100000);
//Toolkit.create();
}
exports.main = main;