Update Settings Shell.

This commit is contained in:
Bruce
2025-11-29 23:02:15 +08:00
parent cf50b09bf0
commit 5796fb40e1
41 changed files with 515 additions and 383 deletions
+10 -1
View File
@@ -1,5 +1,14 @@
(function(global) {
"use strict";
var res = Bridge.Resources;
var storage = Bridge.External.Storage;
var path = storage.path;
var root = path.getDir(path.program);
function getLibRes(libfilename, resid) {
var libpath = path.combine(root, libfilename);
return res.fromfile(libpath, resid);
}
function getSettingsItem(page, displayName) {
return {
@@ -8,7 +17,7 @@
};
}
var settingItems = {
appinstaller: getSettingsItem("appinstaller.html", "App Installer")
appinstaller: getSettingsItem("appinstaller.html", getLibRes("appinstaller.exe", 300))
};
Object.defineProperty(global, "settingPages", {
get: function() { return settingItems; }