feat(app): the macOS app shows itself as Stambha, with the pillar icon, in its name, window, menus, dialogs and report, and keeps its bundle identifier and executable, so an installed copy updates in place, where it still showed Stela and Stela's icon

This commit is contained in:
Garvit Surana committed 2026-11-30 13:06:03 +00:00
1 parent e6d9a9ac0c
commit 740703f15f
8 files changed
+16 -16

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

+2 -2
View File
@@ -3,8 +3,8 @@
<plist version="1.0">
<dict>
<key>CFBundleInfoDictionaryVersion</key><string>6.0</string>
<key>CFBundleName</key><string>Stela</string>
<key>CFBundleDisplayName</key><string>Stela</string>
<key>CFBundleName</key><string>Stambha</string>
<key>CFBundleDisplayName</key><string>Stambha</string>
<key>CFBundleIdentifier</key><string>org.stela.Stela</string>
<key>CFBundleExecutable</key><string>Stela</string>
<key>CFBundlePackageType</key><string>APPL</string>
+3 -3
View File
@@ -91,9 +91,9 @@
func inspectSetup() {
let panel = NSOpenPanel()
panel.title = "Inspect Stela Setup"
panel.title = "Inspect Stambha Setup"
panel.message =
"Select EFI/stela/setup.json on a mounted Stela setup volume. Inspection does not change any files."
"Select EFI/stela/setup.json on a mounted Stambha setup volume. Inspection does not change any files."
panel.allowedContentTypes = [.json]
panel.allowsMultipleSelection = false
panel.canChooseDirectories = false
@@ -136,7 +136,7 @@
guard let data = try report() else { return }
let panel = NSSavePanel()
panel.title = "Export System Report"
panel.nameFieldStringValue = "Stela-system-report.json"
panel.nameFieldStringValue = "Stambha-system-report.json"
panel.allowedContentTypes = [.json]
panel.message =
"Includes system specifications and CPU feature observations. Excludes setup keys, machine IDs, disk paths and network settings. Review before sharing."
+3 -3
View File
@@ -4,13 +4,13 @@
enum Brand {
static let icon: NSImage = {
let bundled = Bundle.main.url(forResource: "stela-icon", withExtension: "png")
let bundled = Bundle.main.url(forResource: "stambha-icon", withExtension: "png")
let development = URL(fileURLWithPath: #filePath)
.deletingLastPathComponent().appendingPathComponent("../../../../assets/stela-icon.png")
.deletingLastPathComponent().appendingPathComponent("../../../../assets/stambha-icon.png")
.standardizedFileURL
return bundled.flatMap(NSImage.init(contentsOf:))
?? NSImage(contentsOf: development)
?? NSImage(systemSymbolName: "cpu", accessibilityDescription: "Stela")!
?? NSImage(systemSymbolName: "cpu", accessibilityDescription: "Stambha")!
}()
}
#endif
+3 -3
View File
@@ -13,7 +13,7 @@
}
var body: some Scene {
Window("Stela", id: "main") {
Window("Stambha", id: "main") {
ContentView(model: model)
.frame(minWidth: 640, minHeight: 600)
.task {
@@ -44,7 +44,7 @@
.keyboardShortcut("e", modifiers: [.command, .shift])
.disabled(model.snapshot == nil)
Divider()
Button("Inspect Stela Setup…", action: model.inspectSetup)
Button("Inspect Stambha Setup…", action: model.inspectSetup)
Button("Open System Information…") { model.openSystemApp("System Information") }
}
}
@@ -67,7 +67,7 @@
enum UnsupportedPlatform {
static func main() {
fputs(
"Stela.app requires macOS 13 or later. The inspection library can be tested on this platform.\n",
"Stambha requires macOS 13 or later. The inspection library can be tested on this platform.\n",
stderr)
exit(1)
}
@@ -41,7 +41,7 @@ public struct SetupSummary: Codable, Equatable, Sendable {
case .tooLarge: return "The setup record exceeds the 1 MiB inspection limit."
case .wrongKind:
return
"This file is not a Stela setup record. Select EFI/stela/setup.json from your setup volume."
"This file is not a Stambha setup record. Select EFI/stela/setup.json from your setup volume."
case .unsupportedSchema(let schema):
return
"Setup record schema \(schema) is not supported by this app. This build reads schema 9."
+3 -3
View File
@@ -22,7 +22,7 @@ app="$stage/Stela.app"
mkdir -p "$app/Contents/MacOS" "$app/Contents/Resources"
cp "$binary_directory/Stela" "$app/Contents/MacOS/Stela"
cp "$package/Packaging/Info.plist" "$app/Contents/Info.plist"
cp "$repository/assets/stela-icon.png" "$app/Contents/Resources/stela-icon.png"
cp "$repository/assets/stambha-icon.png" "$app/Contents/Resources/stambha-icon.png"
# Use the workspace package version rather than maintaining a second product version.
version="$(awk '/^\[workspace.package\]/{section=1;next} section && /^\[/{exit} section && /^version = /{gsub(/"/, "", $3);print $3;exit}' "$repository/Cargo.toml")"
@@ -46,9 +46,9 @@ fi
iconset="$stage/Stela.iconset"
mkdir -p "$iconset"
for size in 16 32 128 256 512; do
sips -z "$size" "$size" "$repository/assets/stela-icon.png" --out "$iconset/icon_${size}x${size}.png" >/dev/null
sips -z "$size" "$size" "$repository/assets/stambha-icon.png" --out "$iconset/icon_${size}x${size}.png" >/dev/null
doubled=$((size * 2))
sips -z "$doubled" "$doubled" "$repository/assets/stela-icon.png" --out "$iconset/icon_${size}x${size}@2x.png" >/dev/null
sips -z "$doubled" "$doubled" "$repository/assets/stambha-icon.png" --out "$iconset/icon_${size}x${size}@2x.png" >/dev/null
done
iconutil --convert icns "$iconset" --output "$app/Contents/Resources/Stela.icns"
plutil -lint "$app/Contents/Info.plist"
+1 -1
View File
@@ -393,7 +393,7 @@ fn job() -> Result<Vec<u8>> {
/// The sources `guest/stela-app/build.sh` reads, relative to the root.
const SOURCES: [&str; 7] = [
"Cargo.toml",
"assets/stela-icon.png",
"assets/stambha-icon.png",
"guest/stela-app/Package.swift",
"guest/stela-app/build.sh",
"guest/stela-app/Packaging",