mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-24 01:39:59 +02:00
regen all archive using antos build system
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
AntOSDK: development API for AntOS based applications/projects
|
||||
|
||||
## Change logs
|
||||
- 0.1.2: add batch building support
|
||||
- 0.1.1: linux worker is renamed to backend, linux-exec job re to cmd-exec, add lua-exec job for backend lua script execution
|
||||
- 0.1.0: antOS SDK is no longer delivered in this package, it will be fetched directly from AntOS release site
|
||||
- 0.0.18: Add some public API on grid view
|
||||
|
@ -2,6 +2,7 @@
|
||||
AntOSDK: development API for AntOS based applications/projects
|
||||
|
||||
## Change logs
|
||||
- 0.1.2: add batch building support
|
||||
- 0.1.1: linux worker is renamed to backend, linux-exec job re to cmd-exec, add lua-exec job for backend lua script execution
|
||||
- 0.1.0: antOS SDK is no longer delivered in this package, it will be fetched directly from AntOS release site
|
||||
- 0.0.18: Add some public API on grid view
|
||||
|
File diff suppressed because one or more lines are too long
@ -7,7 +7,7 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "mrsang@iohub.dev"
|
||||
},
|
||||
"version": "0.1.1-b",
|
||||
"version": "0.1.2-b",
|
||||
"category": "Development",
|
||||
"iconclass": "fa fa-cog",
|
||||
"mimes": [
|
||||
|
Binary file not shown.
@ -7,7 +7,7 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "mrsang@iohub.dev"
|
||||
},
|
||||
"version": "0.1.1-b",
|
||||
"version": "0.1.2-b",
|
||||
"category": "Development",
|
||||
"iconclass": "fa fa-cog",
|
||||
"mimes": [
|
||||
|
@ -139,7 +139,7 @@ namespace OS {
|
||||
const selected = this.targets.selectedItem;
|
||||
if(!selected)
|
||||
return;
|
||||
this.load(this.compile([selected.data.text]));
|
||||
this.load(this.compile([selected.data.text])).catch((e) => this.logger.error(__(e.stack)));
|
||||
}
|
||||
|
||||
(this.find("btnclear") as GUI.tag.ButtonTag).onbtclick = (e) => {
|
||||
|
@ -195,6 +195,58 @@ namespace OS {
|
||||
}
|
||||
});
|
||||
}
|
||||
else if(job === "batch")
|
||||
{
|
||||
return new Promise(async (resolve, reject) =>
|
||||
{
|
||||
try{
|
||||
if(!data || !data.target)
|
||||
{
|
||||
const err = __("No target provided for job: batch");
|
||||
this.logger.error(err);
|
||||
throw new Error(err.__());
|
||||
}
|
||||
let pwd = data.pwd;
|
||||
if(!pwd)
|
||||
{
|
||||
pwd = this.root;
|
||||
}
|
||||
const ret = await pwd.asFileHandle().read();
|
||||
if(ret.error)
|
||||
{
|
||||
this.logger.error(ret.error);
|
||||
throw new Error(ret.error);
|
||||
}
|
||||
const dirs = ret.result.filter(e => e.type === "dir");
|
||||
for(let entry of dirs)
|
||||
{
|
||||
const build_file = `${entry.path}/build.json`.asFileHandle();
|
||||
try {
|
||||
await build_file.onready();
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
this.logger.info(__("No build.json file found in {0}, ignore this file", entry.path));
|
||||
continue;
|
||||
}
|
||||
this.logger.info(__("########### BUILDING: {0} ###########", entry.path));
|
||||
const sdk = new AntOSDKBuilder(this.logger,entry.path);
|
||||
const options = await build_file.read("json");
|
||||
if(!options.root)
|
||||
{
|
||||
options.root = entry.path;
|
||||
}
|
||||
await sdk.batch([data.target], options);
|
||||
}
|
||||
this.logger.info(__("########### Batch building done ###########"));
|
||||
return resolve(undefined);
|
||||
}
|
||||
catch(error)
|
||||
{
|
||||
reject(error);
|
||||
}
|
||||
});
|
||||
}
|
||||
return AntOSDKBuilder.worker.submit(job,data, this.root, this.logger);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user