Added list
This commit is contained in:
@ -9,7 +9,8 @@
|
|||||||
|
|
||||||
const pathOfVersion = path.join(pathOfPublic, 'v' + version);
|
const pathOfVersion = path.join(pathOfPublic, 'v' + version);
|
||||||
const pathOfApps = path.join(pathOfVersion, 'apps');
|
const pathOfApps = path.join(pathOfVersion, 'apps');
|
||||||
const pathOfList = path.join(pathOfVersion, 'autoGeneratedList.json');
|
const pathOfList = path.join(pathOfVersion, 'autoGeneratedList.json'); //kept for backward compat
|
||||||
|
const pathOfList2 = path.join(pathOfVersion, 'list');
|
||||||
|
|
||||||
return fs.readdir(pathOfApps)
|
return fs.readdir(pathOfApps)
|
||||||
.then(function (items) {
|
.then(function (items) {
|
||||||
@ -53,6 +54,10 @@
|
|||||||
appDetails: appDetails
|
appDetails: appDetails
|
||||||
});
|
});
|
||||||
|
|
||||||
|
fs.outputJsonSync(pathOfList2, {
|
||||||
|
oneClickApps: appDetails
|
||||||
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user