Initial Commit
@@ -0,0 +1,3 @@
|
||||
/dist/
|
||||
/.build/
|
||||
/PegasusMonitor.xcodeproj/
|
||||
@@ -0,0 +1,10 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Ignored default folder with query files
|
||||
/queries/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="EMPTY_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/OrionToolbar.iml" filepath="$PROJECT_DIR$/.idea/OrionToolbar.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="SwiftSettingsState">
|
||||
<option name="swiftSdkPath" value="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr" />
|
||||
<option name="toolchainNoticeDismissed" value="true" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,260 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 60;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
A20000000000000000000001 /* OrionToolbarApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = A10000000000000000000001 /* OrionToolbarApp.swift */; };
|
||||
A20000000000000000000002 /* OrionVMController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A10000000000000000000002 /* OrionVMController.swift */; };
|
||||
A20000000000000000000003 /* OrionMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A10000000000000000000003 /* OrionMenuView.swift */; };
|
||||
A20000000000000000000004 /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A10000000000000000000004 /* SettingsView.swift */; };
|
||||
A20000000000000000000005 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A10000000000000000000005 /* Assets.xcassets */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
A10000000000000000000001 /* OrionToolbarApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrionToolbarApp.swift; sourceTree = "<group>"; };
|
||||
A10000000000000000000002 /* OrionVMController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrionVMController.swift; sourceTree = "<group>"; };
|
||||
A10000000000000000000003 /* OrionMenuView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrionMenuView.swift; sourceTree = "<group>"; };
|
||||
A10000000000000000000004 /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = "<group>"; };
|
||||
A10000000000000000000005 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
A10000000000000000000006 /* OrionToolbar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OrionToolbar.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A10000000000000000000007 /* OrionToolbar.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = OrionToolbar.entitlements; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
A40000000000000000000003 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
A30000000000000000000001 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A30000000000000000000002 /* OrionToolbar */,
|
||||
A30000000000000000000003 /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A30000000000000000000002 /* OrionToolbar */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A10000000000000000000001 /* OrionToolbarApp.swift */,
|
||||
A10000000000000000000002 /* OrionVMController.swift */,
|
||||
A10000000000000000000003 /* OrionMenuView.swift */,
|
||||
A10000000000000000000004 /* SettingsView.swift */,
|
||||
A10000000000000000000005 /* Assets.xcassets */,
|
||||
A10000000000000000000007 /* OrionToolbar.entitlements */,
|
||||
);
|
||||
path = OrionToolbar;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A30000000000000000000003 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A10000000000000000000006 /* OrionToolbar.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
A50000000000000000000001 /* OrionToolbar */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = A70000000000000000000002 /* Build configuration list for PBXNativeTarget "OrionToolbar" */;
|
||||
buildPhases = (
|
||||
A40000000000000000000001 /* Sources */,
|
||||
A40000000000000000000003 /* Frameworks */,
|
||||
A40000000000000000000002 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = OrionToolbar;
|
||||
productName = OrionToolbar;
|
||||
productReference = A10000000000000000000006 /* OrionToolbar.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
A60000000000000000000001 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
BuildIndependentTargetsInParallel = 1;
|
||||
LastSwiftUpdateCheck = 2600;
|
||||
LastUpgradeCheck = 2600;
|
||||
TargetAttributes = {
|
||||
A50000000000000000000001 = {
|
||||
CreatedOnToolsVersion = 26.0;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = A70000000000000000000001 /* Build configuration list for PBXProject "OrionToolbar" */;
|
||||
compatibilityVersion = "Xcode 15.0";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
mainGroup = A30000000000000000000001;
|
||||
productRefGroup = A30000000000000000000003 /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
A50000000000000000000001 /* OrionToolbar */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
A40000000000000000000002 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
A20000000000000000000005 /* Assets.xcassets in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
A40000000000000000000001 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
A20000000000000000000001 /* OrionToolbarApp.swift in Sources */,
|
||||
A20000000000000000000002 /* OrionVMController.swift in Sources */,
|
||||
A20000000000000000000003 /* OrionMenuView.swift in Sources */,
|
||||
A20000000000000000000004 /* SettingsView.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
A80000000000000000000001 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
SDKROOT = macosx;
|
||||
SWIFT_VERSION = 5.0;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
A80000000000000000000002 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
SDKROOT = macosx;
|
||||
SWIFT_VERSION = 5.0;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
A80000000000000000000003 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
AUTOMATION_APPLE_EVENTS = NO;
|
||||
CODE_SIGN_ENTITLEMENTS = OrionToolbar/OrionToolbar.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEVELOPMENT_TEAM = 39R6U3437D;
|
||||
ENABLE_APP_SANDBOX = NO;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
ENABLE_RESOURCE_ACCESS_AUDIO_INPUT = NO;
|
||||
ENABLE_RESOURCE_ACCESS_CALENDARS = NO;
|
||||
ENABLE_RESOURCE_ACCESS_CAMERA = NO;
|
||||
ENABLE_RESOURCE_ACCESS_CONTACTS = NO;
|
||||
ENABLE_RESOURCE_ACCESS_LOCATION = NO;
|
||||
ENABLE_RESOURCE_ACCESS_PHOTO_LIBRARY = NO;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
|
||||
INFOPLIST_KEY_LSUIElement = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = net.absdev.OrionToolbar;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
RUNTIME_EXCEPTION_ALLOW_DYLD_ENVIRONMENT_VARIABLES = NO;
|
||||
RUNTIME_EXCEPTION_ALLOW_JIT = NO;
|
||||
RUNTIME_EXCEPTION_ALLOW_UNSIGNED_EXECUTABLE_MEMORY = NO;
|
||||
RUNTIME_EXCEPTION_DEBUGGING_TOOL = NO;
|
||||
RUNTIME_EXCEPTION_DISABLE_EXECUTABLE_PAGE_PROTECTION = NO;
|
||||
RUNTIME_EXCEPTION_DISABLE_LIBRARY_VALIDATION = NO;
|
||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||
SWIFT_VERSION = 5.0;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
A80000000000000000000004 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
AUTOMATION_APPLE_EVENTS = NO;
|
||||
CODE_SIGN_ENTITLEMENTS = OrionToolbar/OrionToolbar.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEVELOPMENT_TEAM = 39R6U3437D;
|
||||
ENABLE_APP_SANDBOX = NO;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
ENABLE_RESOURCE_ACCESS_AUDIO_INPUT = NO;
|
||||
ENABLE_RESOURCE_ACCESS_CALENDARS = NO;
|
||||
ENABLE_RESOURCE_ACCESS_CAMERA = NO;
|
||||
ENABLE_RESOURCE_ACCESS_CONTACTS = NO;
|
||||
ENABLE_RESOURCE_ACCESS_LOCATION = NO;
|
||||
ENABLE_RESOURCE_ACCESS_PHOTO_LIBRARY = NO;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
|
||||
INFOPLIST_KEY_LSUIElement = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = net.absdev.OrionToolbar;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
RUNTIME_EXCEPTION_ALLOW_DYLD_ENVIRONMENT_VARIABLES = NO;
|
||||
RUNTIME_EXCEPTION_ALLOW_JIT = NO;
|
||||
RUNTIME_EXCEPTION_ALLOW_UNSIGNED_EXECUTABLE_MEMORY = NO;
|
||||
RUNTIME_EXCEPTION_DEBUGGING_TOOL = NO;
|
||||
RUNTIME_EXCEPTION_DISABLE_EXECUTABLE_PAGE_PROTECTION = NO;
|
||||
RUNTIME_EXCEPTION_DISABLE_LIBRARY_VALIDATION = NO;
|
||||
SWIFT_COMPILATION_MODE = wholemodule;
|
||||
SWIFT_VERSION = 5.0;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
A70000000000000000000001 /* Build configuration list for PBXProject "OrionToolbar" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
A80000000000000000000001 /* Debug */,
|
||||
A80000000000000000000002 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
A70000000000000000000002 /* Build configuration list for PBXNativeTarget "OrionToolbar" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
A80000000000000000000003 /* Debug */,
|
||||
A80000000000000000000004 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = A60000000000000000000001 /* Project object */;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>SchemeUserState</key>
|
||||
<dict>
|
||||
<key>OrionToolbar.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1 @@
|
||||
{"colors":[{"idiom":"universal"}],"info":{"author":"xcode","version":1}}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"images": [
|
||||
{
|
||||
"filename": "icon_16x16.png",
|
||||
"idiom": "mac",
|
||||
"scale": "1x",
|
||||
"size": "16x16"
|
||||
},
|
||||
{
|
||||
"filename": "icon_16x16@2x.png",
|
||||
"idiom": "mac",
|
||||
"scale": "2x",
|
||||
"size": "16x16"
|
||||
},
|
||||
{
|
||||
"filename": "icon_32x32.png",
|
||||
"idiom": "mac",
|
||||
"scale": "1x",
|
||||
"size": "32x32"
|
||||
},
|
||||
{
|
||||
"filename": "icon_32x32@2x.png",
|
||||
"idiom": "mac",
|
||||
"scale": "2x",
|
||||
"size": "32x32"
|
||||
},
|
||||
{
|
||||
"filename": "icon_128x128.png",
|
||||
"idiom": "mac",
|
||||
"scale": "1x",
|
||||
"size": "128x128"
|
||||
},
|
||||
{
|
||||
"filename": "icon_128x128@2x.png",
|
||||
"idiom": "mac",
|
||||
"scale": "2x",
|
||||
"size": "128x128"
|
||||
},
|
||||
{
|
||||
"filename": "icon_256x256.png",
|
||||
"idiom": "mac",
|
||||
"scale": "1x",
|
||||
"size": "256x256"
|
||||
},
|
||||
{
|
||||
"filename": "icon_256x256@2x.png",
|
||||
"idiom": "mac",
|
||||
"scale": "2x",
|
||||
"size": "256x256"
|
||||
},
|
||||
{
|
||||
"filename": "icon_512x512.png",
|
||||
"idiom": "mac",
|
||||
"scale": "1x",
|
||||
"size": "512x512"
|
||||
},
|
||||
{
|
||||
"filename": "icon_512x512@2x.png",
|
||||
"idiom": "mac",
|
||||
"scale": "2x",
|
||||
"size": "512x512"
|
||||
}
|
||||
],
|
||||
"info": {
|
||||
"author": "xcode",
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 819 B |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 307 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 307 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
@@ -0,0 +1 @@
|
||||
{"info":{"author":"xcode","version":1}}
|
||||
@@ -0,0 +1,415 @@
|
||||
|
||||
import AppKit
|
||||
import SwiftUI
|
||||
|
||||
struct OrionMenuView: View {
|
||||
@EnvironmentObject var vm: OrionVMController
|
||||
@Environment(\.openSettings) private var openSettings
|
||||
|
||||
@State private var expandedGroups: Set<String> = []
|
||||
@State private var expandedServers: Set<UUID> = []
|
||||
|
||||
private var groups: [String] {
|
||||
let preferred = [
|
||||
"Windows", "Ubuntu", "Debian", "Fedora",
|
||||
"CentOS", "Alpine", "Oracle Linux",
|
||||
"Rocky Linux", "AlmaLinux", "Arch Linux",
|
||||
"Gentoo", "FreeBSD", "Other"
|
||||
]
|
||||
|
||||
return preferred.filter { os in
|
||||
vm.discoveredVMs.contains {
|
||||
$0.operatingSystem == os
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
header
|
||||
|
||||
Divider()
|
||||
|
||||
ScrollView {
|
||||
VStack(alignment: .leading, spacing: 4) {
|
||||
discoverySection
|
||||
|
||||
Divider()
|
||||
.padding(.vertical, 10)
|
||||
|
||||
integratedSection
|
||||
}
|
||||
.padding(.horizontal, 14)
|
||||
.padding(.vertical, 10)
|
||||
}
|
||||
.frame(maxHeight: 560)
|
||||
|
||||
Divider()
|
||||
|
||||
footer
|
||||
}
|
||||
.frame(width: 410)
|
||||
.task {
|
||||
await vm.discoverVMs()
|
||||
}
|
||||
.alert(
|
||||
"OrionToolbar",
|
||||
isPresented: Binding(
|
||||
get: { vm.lastError != nil },
|
||||
set: { if !$0 { vm.lastError = nil } }
|
||||
)
|
||||
) {
|
||||
Button("OK") { vm.lastError = nil }
|
||||
} message: {
|
||||
Text(vm.lastError ?? "")
|
||||
}
|
||||
}
|
||||
|
||||
private var header: some View {
|
||||
HStack {
|
||||
Image(systemName: "server.rack")
|
||||
.foregroundStyle(.blue)
|
||||
|
||||
Text("OrionToolbar")
|
||||
.font(.headline)
|
||||
|
||||
Spacer()
|
||||
|
||||
if vm.discovering {
|
||||
ProgressView()
|
||||
.controlSize(.small)
|
||||
}
|
||||
|
||||
Button {
|
||||
Task { await vm.discoverVMs() }
|
||||
} label: {
|
||||
Image(systemName: "arrow.clockwise")
|
||||
}
|
||||
.buttonStyle(.borderless)
|
||||
.disabled(vm.discovering)
|
||||
.help("Refresh Parallels virtual machines")
|
||||
}
|
||||
.padding(16)
|
||||
}
|
||||
|
||||
private var discoverySection: some View {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
HStack {
|
||||
Text("PARALLELS VIRTUAL MACHINES")
|
||||
.font(.caption)
|
||||
.fontWeight(.semibold)
|
||||
.foregroundStyle(.secondary)
|
||||
|
||||
Spacer()
|
||||
|
||||
Text("\(vm.discoveredVMs.count)")
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
|
||||
if vm.discoveredVMs.isEmpty {
|
||||
ContentUnavailableView(
|
||||
"No Virtual Machines",
|
||||
systemImage: "desktopcomputer",
|
||||
description: Text(
|
||||
"Refresh to discover Parallels virtual machines."
|
||||
)
|
||||
)
|
||||
.frame(height: 120)
|
||||
}
|
||||
|
||||
ForEach(groups, id: \.self) { group in
|
||||
operatingSystemGroup(group)
|
||||
}
|
||||
|
||||
if !vm.discoveredVMs.isEmpty {
|
||||
Divider()
|
||||
.padding(.vertical, 6)
|
||||
|
||||
HStack {
|
||||
Text("\(vm.selectedVMIDs.count) selected")
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
|
||||
Spacer()
|
||||
|
||||
Button("Select All") {
|
||||
vm.selectAllVMs()
|
||||
}
|
||||
|
||||
Button("Clear") {
|
||||
vm.clearVMSelection()
|
||||
}
|
||||
.disabled(vm.selectedVMIDs.isEmpty)
|
||||
}
|
||||
|
||||
Button {
|
||||
vm.integrateSelectedVMs()
|
||||
} label: {
|
||||
Label(
|
||||
"Integrate Selected",
|
||||
systemImage: "plus.circle.fill"
|
||||
)
|
||||
.frame(maxWidth: .infinity)
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
.disabled(vm.selectedVMIDs.isEmpty)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func operatingSystemGroup(
|
||||
_ group: String
|
||||
) -> some View {
|
||||
let machines = vm.discoveredVMs.filter {
|
||||
$0.operatingSystem == group
|
||||
}
|
||||
|
||||
return VStack(alignment: .leading, spacing: 3) {
|
||||
Button {
|
||||
if expandedGroups.contains(group) {
|
||||
expandedGroups.remove(group)
|
||||
} else {
|
||||
expandedGroups.insert(group)
|
||||
}
|
||||
} label: {
|
||||
HStack(spacing: 10) {
|
||||
Image(systemName:
|
||||
expandedGroups.contains(group)
|
||||
? "chevron.down"
|
||||
: "chevron.right"
|
||||
)
|
||||
.font(.caption)
|
||||
.frame(width: 12)
|
||||
|
||||
Image(systemName: machines.first?.symbol
|
||||
?? "desktopcomputer"
|
||||
)
|
||||
.frame(width: 22)
|
||||
|
||||
Text(group)
|
||||
.fontWeight(.medium)
|
||||
|
||||
Spacer()
|
||||
|
||||
Text("\(machines.count)")
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
.contentShape(Rectangle())
|
||||
.padding(.vertical, 9)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
|
||||
if expandedGroups.contains(group) {
|
||||
ForEach(machines) { machine in
|
||||
machineRow(machine)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func machineRow(
|
||||
_ machine: ParallelsVM
|
||||
) -> some View {
|
||||
HStack(alignment: .center, spacing: 10) {
|
||||
Toggle(
|
||||
"",
|
||||
isOn: Binding(
|
||||
get: {
|
||||
vm.selectedVMIDs.contains(machine.id)
|
||||
},
|
||||
set: { selected in
|
||||
if selected {
|
||||
vm.selectedVMIDs.insert(machine.id)
|
||||
} else {
|
||||
vm.selectedVMIDs.remove(machine.id)
|
||||
}
|
||||
}
|
||||
)
|
||||
)
|
||||
.labelsHidden()
|
||||
.toggleStyle(.checkbox)
|
||||
|
||||
if let icon = vm.icon(for: machine) {
|
||||
Image(nsImage: icon)
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.frame(width: 30, height: 30)
|
||||
} else {
|
||||
Image(systemName: machine.symbol)
|
||||
.font(.title3)
|
||||
.frame(width: 30, height: 30)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
|
||||
VStack(alignment: .leading, spacing: 3) {
|
||||
Text(machine.name)
|
||||
.font(.system(size: 13, weight: .medium))
|
||||
|
||||
HStack(spacing: 5) {
|
||||
Circle()
|
||||
.fill(
|
||||
machine.status.lowercased() == "running"
|
||||
? Color.green : Color.gray
|
||||
)
|
||||
.frame(width: 7, height: 7)
|
||||
|
||||
Text(machine.status.capitalized)
|
||||
|
||||
if vm.isIntegrated(machine) {
|
||||
Text("· Integrated")
|
||||
.foregroundStyle(.green)
|
||||
}
|
||||
}
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
|
||||
Spacer(minLength: 0)
|
||||
}
|
||||
.padding(.leading, 22)
|
||||
.padding(.vertical, 6)
|
||||
}
|
||||
|
||||
private var integratedSection: some View {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
Text("INTEGRATED SERVERS")
|
||||
.font(.caption)
|
||||
.fontWeight(.semibold)
|
||||
.foregroundStyle(.secondary)
|
||||
|
||||
ForEach(vm.servers) { server in
|
||||
integratedServerRow(server)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func integratedServerRow(
|
||||
_ server: ServerDefinition
|
||||
) -> some View {
|
||||
let status = vm.status(for: server)
|
||||
let expanded = expandedServers.contains(server.id)
|
||||
|
||||
return VStack(alignment: .leading, spacing: 5) {
|
||||
Button {
|
||||
if expanded {
|
||||
expandedServers.remove(server.id)
|
||||
} else {
|
||||
expandedServers.insert(server.id)
|
||||
}
|
||||
} label: {
|
||||
HStack(spacing: 10) {
|
||||
Image(systemName:
|
||||
expanded ? "chevron.down" : "chevron.right"
|
||||
)
|
||||
.font(.caption)
|
||||
|
||||
Circle()
|
||||
.fill(status == .running
|
||||
? Color.green : Color.gray)
|
||||
.frame(width: 9, height: 9)
|
||||
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
Text(server.name)
|
||||
.fontWeight(.medium)
|
||||
|
||||
Text(status.title)
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.contentShape(Rectangle())
|
||||
.padding(.vertical, 8)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
|
||||
if expanded {
|
||||
VStack(alignment: .leading, spacing: 5) {
|
||||
if status == .stopped {
|
||||
action("Start", "play.fill") {
|
||||
vm.start(server)
|
||||
}
|
||||
} else {
|
||||
action("Stop", "stop.fill") {
|
||||
vm.stop(server)
|
||||
}
|
||||
.disabled(vm.isBusy(server))
|
||||
|
||||
action("Restart", "arrow.clockwise") {
|
||||
vm.restart(server)
|
||||
}
|
||||
.disabled(
|
||||
vm.isBusy(server) ||
|
||||
status != .running
|
||||
)
|
||||
|
||||
action(
|
||||
"Force Stop",
|
||||
"exclamationmark.triangle"
|
||||
) {
|
||||
vm.forceStop(server)
|
||||
}
|
||||
.disabled(vm.isBusy(server))
|
||||
}
|
||||
|
||||
action("Open SSH in Terminal", "terminal") {
|
||||
vm.openSSH(server)
|
||||
}
|
||||
.disabled(
|
||||
status != .running ||
|
||||
server.host.isEmpty
|
||||
)
|
||||
|
||||
action("Open Mailpit", "envelope") {
|
||||
vm.openMailpit(server)
|
||||
}
|
||||
.disabled(
|
||||
status != .running ||
|
||||
server.mailpitPort == nil ||
|
||||
server.host.isEmpty
|
||||
)
|
||||
}
|
||||
.padding(.leading, 26)
|
||||
.padding(.bottom, 8)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func action(
|
||||
_ title: String,
|
||||
_ symbol: String,
|
||||
perform: @escaping () -> Void
|
||||
) -> some View {
|
||||
Button(action: perform) {
|
||||
Label(title, systemImage: symbol)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.padding(.vertical, 5)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
}
|
||||
|
||||
private var footer: some View {
|
||||
VStack(spacing: 2) {
|
||||
action("Open Parallels Desktop", "macwindow") {
|
||||
vm.openParallels()
|
||||
}
|
||||
|
||||
action("Settings…", "gearshape") {
|
||||
openSettings()
|
||||
NSApplication.shared.activate(
|
||||
ignoringOtherApps: true
|
||||
)
|
||||
}
|
||||
|
||||
Divider()
|
||||
|
||||
action("Quit OrionToolbar", "xmark") {
|
||||
NSApplication.shared.terminate(nil)
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.vertical, 10)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict/>
|
||||
</plist>
|
||||
@@ -0,0 +1,31 @@
|
||||
import SwiftUI
|
||||
|
||||
@main
|
||||
struct OrionToolbarApp: App {
|
||||
@StateObject private var vm = OrionVMController()
|
||||
|
||||
private var aggregateColor: Color {
|
||||
let states = vm.servers.map { vm.status(for: $0) }
|
||||
if states.isEmpty { return .gray }
|
||||
if states.allSatisfy({ $0 == .running }) { return .green }
|
||||
if states.contains(where: { $0 == .transitioning || $0 == .checking || $0 == .suspended }) { return .orange }
|
||||
if states.contains(where: { $0 == .running }) { return .orange }
|
||||
if states.allSatisfy({ $0 == .stopped }) { return .red }
|
||||
return .red
|
||||
}
|
||||
|
||||
var body: some Scene {
|
||||
MenuBarExtra {
|
||||
OrionMenuView().environmentObject(vm)
|
||||
} label: {
|
||||
HStack(spacing: 4) {
|
||||
Image(systemName: "server.rack")
|
||||
Circle().fill(aggregateColor).frame(width: 7, height: 7)
|
||||
}
|
||||
.accessibilityLabel("Server status")
|
||||
}
|
||||
.menuBarExtraStyle(.window)
|
||||
|
||||
Settings { SettingsView().environmentObject(vm) }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,298 @@
|
||||
import AppKit
|
||||
import Foundation
|
||||
|
||||
struct ServerDefinition: Identifiable, Codable, Hashable {
|
||||
var id = UUID()
|
||||
var name: String
|
||||
var vmName: String
|
||||
var vmUUID: String? = nil
|
||||
var host: String
|
||||
var sshUser: String
|
||||
var sshPort: Int = 22
|
||||
var sshIdentityFile: String = ""
|
||||
var mailpitPort: Int?
|
||||
|
||||
static let orion = ServerDefinition(name: "Orion", vmName: "Ubuntu Linux Server", host: "10.211.55.100", sshUser: "sysadmin", sshPort: 22, sshIdentityFile: "", mailpitPort: 8025)
|
||||
}
|
||||
|
||||
|
||||
struct ParallelsVM: Identifiable, Hashable {
|
||||
let id: String
|
||||
let name: String
|
||||
let status: String
|
||||
let ipAddress: String
|
||||
let operatingSystem: String
|
||||
var bundlePath: String?
|
||||
|
||||
var symbol: String {
|
||||
switch operatingSystem {
|
||||
case "Windows": return "desktopcomputer"
|
||||
case "Ubuntu": return "server.rack"
|
||||
case "Debian": return "server.rack"
|
||||
case "Fedora": return "server.rack"
|
||||
case "CentOS": return "server.rack"
|
||||
case "Alpine": return "server.rack"
|
||||
case "Oracle Linux": return "server.rack"
|
||||
default: return "desktopcomputer"
|
||||
}
|
||||
}
|
||||
|
||||
static func detectOS(_ name: String) -> String {
|
||||
let value = name.lowercased()
|
||||
|
||||
if value.contains("windows") { return "Windows" }
|
||||
if value.contains("ubuntu") { return "Ubuntu" }
|
||||
if value.contains("debian") { return "Debian" }
|
||||
if value.contains("fedora") { return "Fedora" }
|
||||
if value.contains("centos") { return "CentOS" }
|
||||
if value.contains("alpine") { return "Alpine" }
|
||||
if value.contains("oracle") { return "Oracle Linux" }
|
||||
if value.contains("rocky") { return "Rocky Linux" }
|
||||
if value.contains("alma") { return "AlmaLinux" }
|
||||
if value.contains("arch") { return "Arch Linux" }
|
||||
if value.contains("gentoo") { return "Gentoo" }
|
||||
if value.contains("freebsd") { return "FreeBSD" }
|
||||
|
||||
return "Other"
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
final class OrionVMController: ObservableObject {
|
||||
enum VMStatus: Equatable {
|
||||
case checking, running, stopped, suspended, transitioning, unavailable(String)
|
||||
var title: String { switch self { case .checking: "Checking…"; case .running: "Running"; case .stopped: "Stopped"; case .suspended: "Suspended"; case .transitioning: "Working…"; case .unavailable: "Unavailable" } }
|
||||
var symbolName: String { switch self { case .running: "server.rack"; case .stopped: "power"; case .suspended: "pause.circle"; case .transitioning, .checking: "arrow.triangle.2.circlepath"; case .unavailable: "exclamationmark.triangle" } }
|
||||
}
|
||||
|
||||
@Published var servers: [ServerDefinition] { didSet { saveServers() } }
|
||||
@Published var statuses: [UUID: VMStatus] = [:]
|
||||
@Published var busyServers: Set<UUID> = []
|
||||
@Published var lastError: String?
|
||||
@Published var discoveredVMs: [ParallelsVM] = []
|
||||
@Published var selectedVMIDs: Set<String> = []
|
||||
@Published var discovering = false
|
||||
private var timer: Timer?
|
||||
private let defaultsKey = "serverDefinitions.v2"
|
||||
|
||||
init() {
|
||||
if let data = UserDefaults.standard.data(forKey: defaultsKey), let saved = try? JSONDecoder().decode([ServerDefinition].self, from: data), !saved.isEmpty { servers = saved }
|
||||
else { servers = [.orion] }
|
||||
Task {
|
||||
await discoverVMs()
|
||||
await refreshAll()
|
||||
}
|
||||
timer = Timer.scheduledTimer(withTimeInterval: 5, repeats: true) { [weak self] _ in Task { @MainActor in await self?.refreshAll() } }
|
||||
}
|
||||
deinit { timer?.invalidate() }
|
||||
|
||||
|
||||
func discoverVMs() async {
|
||||
guard !discovering else { return }
|
||||
|
||||
discovering = true
|
||||
defer { discovering = false }
|
||||
|
||||
do {
|
||||
let output = try await runPrlctl(["list", "-a", "-j"])
|
||||
|
||||
guard let data = output.data(using: .utf8),
|
||||
let records = try JSONSerialization.jsonObject(
|
||||
with: data
|
||||
) as? [[String: Any]] else {
|
||||
throw OrionError.commandFailed(
|
||||
"Invalid Parallels VM discovery response."
|
||||
)
|
||||
}
|
||||
|
||||
discoveredVMs = records.compactMap { record in
|
||||
guard let uuid = record["uuid"] as? String,
|
||||
let name = record["name"] as? String else {
|
||||
return nil
|
||||
}
|
||||
|
||||
let status = record["status"] as? String ?? "unknown"
|
||||
let ip = record["ip_configured"] as? String ?? ""
|
||||
|
||||
return ParallelsVM(
|
||||
id: uuid,
|
||||
name: name,
|
||||
status: status,
|
||||
ipAddress: ip == "-" ? "" : ip,
|
||||
operatingSystem: ParallelsVM.detectOS(name),
|
||||
bundlePath: nil
|
||||
)
|
||||
}
|
||||
.sorted {
|
||||
$0.name.localizedStandardCompare($1.name)
|
||||
== .orderedAscending
|
||||
}
|
||||
|
||||
// Keep selections only for VMs still present.
|
||||
let available = Set(discoveredVMs.map(\.id))
|
||||
selectedVMIDs.formIntersection(available)
|
||||
|
||||
// Associate existing configurations with discovered VMs.
|
||||
// This preserves the original Orion configuration.
|
||||
for machine in discoveredVMs {
|
||||
guard let index = servers.firstIndex(where: {
|
||||
$0.vmUUID == machine.id ||
|
||||
($0.vmUUID == nil && $0.vmName == machine.name)
|
||||
}) else {
|
||||
continue
|
||||
}
|
||||
|
||||
if servers[index].vmUUID == nil {
|
||||
servers[index].vmUUID = machine.id
|
||||
}
|
||||
}
|
||||
|
||||
} catch {
|
||||
lastError = error.localizedDescription
|
||||
}
|
||||
}
|
||||
|
||||
func isIntegrated(_ machine: ParallelsVM) -> Bool {
|
||||
servers.contains {
|
||||
$0.vmUUID == machine.id ||
|
||||
($0.vmUUID == nil && $0.vmName == machine.name)
|
||||
}
|
||||
}
|
||||
|
||||
func toggleSelection(_ machine: ParallelsVM) {
|
||||
if selectedVMIDs.contains(machine.id) {
|
||||
selectedVMIDs.remove(machine.id)
|
||||
} else {
|
||||
selectedVMIDs.insert(machine.id)
|
||||
}
|
||||
}
|
||||
|
||||
func selectAllVMs() {
|
||||
selectedVMIDs = Set(discoveredVMs.map(\.id))
|
||||
}
|
||||
|
||||
func clearVMSelection() {
|
||||
selectedVMIDs.removeAll()
|
||||
}
|
||||
|
||||
func integrateSelectedVMs() {
|
||||
let selected = discoveredVMs.filter {
|
||||
selectedVMIDs.contains($0.id)
|
||||
}
|
||||
|
||||
for machine in selected {
|
||||
guard !isIntegrated(machine) else { continue }
|
||||
|
||||
let server = ServerDefinition(
|
||||
name: machine.name,
|
||||
vmName: machine.name,
|
||||
vmUUID: machine.id,
|
||||
host: machine.ipAddress,
|
||||
sshUser: "sysadmin",
|
||||
sshPort: 22,
|
||||
sshIdentityFile: "",
|
||||
mailpitPort: nil
|
||||
)
|
||||
|
||||
add(server)
|
||||
}
|
||||
|
||||
selectedVMIDs.removeAll()
|
||||
}
|
||||
|
||||
func icon(for machine: ParallelsVM) -> NSImage? {
|
||||
guard let path = machine.bundlePath,
|
||||
FileManager.default.fileExists(atPath: path) else {
|
||||
return nil
|
||||
}
|
||||
|
||||
return NSWorkspace.shared.icon(forFile: path)
|
||||
}
|
||||
|
||||
func status(for server: ServerDefinition) -> VMStatus { statuses[server.id] ?? .checking }
|
||||
func isBusy(_ server: ServerDefinition) -> Bool { busyServers.contains(server.id) }
|
||||
func add(_ server: ServerDefinition) { servers.append(server); Task { await refreshStatus(server) } }
|
||||
func update(_ server: ServerDefinition) { if let i = servers.firstIndex(where: { $0.id == server.id }) { servers[i] = server; Task { await refreshStatus(server) } } }
|
||||
func delete(at offsets: IndexSet) { for i in offsets { statuses[servers[i].id] = nil }; servers.remove(atOffsets: offsets) }
|
||||
|
||||
func refreshAll() async { for server in servers { await refreshStatus(server) } }
|
||||
func refreshStatus(_ server: ServerDefinition) async {
|
||||
guard !isBusy(server) else { return }
|
||||
do {
|
||||
let output = try await runPrlctl(["status", server.vmName]); let value = output.lowercased()
|
||||
if value.contains("running") { statuses[server.id] = .running }
|
||||
else if value.contains("stopped") { statuses[server.id] = .stopped }
|
||||
else if value.contains("suspended") || value.contains("paused") { statuses[server.id] = .suspended }
|
||||
else { statuses[server.id] = .unavailable(output.trimmingCharacters(in: .whitespacesAndNewlines)) }
|
||||
} catch { statuses[server.id] = .unavailable(error.localizedDescription) }
|
||||
}
|
||||
|
||||
func start(_ s: ServerDefinition) { perform(["start", s.vmName], server: s) }
|
||||
func stop(_ s: ServerDefinition) { perform(["stop", s.vmName], server: s) }
|
||||
func restart(_ s: ServerDefinition) { perform(["restart", s.vmName], server: s) }
|
||||
func forceStop(_ s: ServerDefinition) { perform(["stop", s.vmName, "--kill"], server: s) }
|
||||
|
||||
private func perform(_ arguments: [String], server: ServerDefinition) {
|
||||
guard !isBusy(server) else { return }; busyServers.insert(server.id); statuses[server.id] = .transitioning; lastError = nil
|
||||
Task { do { _ = try await runPrlctl(arguments) } catch { lastError = error.localizedDescription }; busyServers.remove(server.id); try? await Task.sleep(for: .seconds(1)); await refreshStatus(server) }
|
||||
}
|
||||
|
||||
func openSSH(_ s: ServerDefinition) {
|
||||
let userHost = "\(s.sshUser)@\(s.host)"
|
||||
var command = "/usr/bin/ssh -p \(s.sshPort)"
|
||||
let identity = s.sshIdentityFile.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
if !identity.isEmpty {
|
||||
command += " -i \(shellQuote((identity as NSString).expandingTildeInPath))"
|
||||
}
|
||||
command += " \(shellQuote(userHost))"
|
||||
|
||||
do {
|
||||
// Terminal reliably opens executable .command files without requiring
|
||||
// Apple Events/Automation permission from this menu-bar application.
|
||||
let directory = FileManager.default.temporaryDirectory
|
||||
.appendingPathComponent("OrionToolbar", isDirectory: true)
|
||||
try FileManager.default.createDirectory(at: directory, withIntermediateDirectories: true)
|
||||
|
||||
let safeName = s.name.replacingOccurrences(of: "/", with: "-")
|
||||
let scriptURL = directory.appendingPathComponent("SSH-\(safeName).command")
|
||||
let script = """
|
||||
#!/bin/zsh
|
||||
clear
|
||||
echo "Connecting to \(s.name) (\(userHost))..."
|
||||
exec \(command)
|
||||
"""
|
||||
try script.write(to: scriptURL, atomically: true, encoding: .utf8)
|
||||
try FileManager.default.setAttributes([.posixPermissions: 0o700], ofItemAtPath: scriptURL.path)
|
||||
|
||||
guard let terminalURL = NSWorkspace.shared.urlForApplication(withBundleIdentifier: "com.apple.Terminal") else {
|
||||
lastError = "Terminal.app could not be found."
|
||||
return
|
||||
}
|
||||
|
||||
let configuration = NSWorkspace.OpenConfiguration()
|
||||
configuration.activates = true
|
||||
NSWorkspace.shared.open([scriptURL], withApplicationAt: terminalURL, configuration: configuration) { _, error in
|
||||
Task { @MainActor in
|
||||
if let error { self.lastError = "Could not open Terminal: \(error.localizedDescription)" }
|
||||
}
|
||||
}
|
||||
} catch {
|
||||
lastError = "Could not create SSH launcher: \(error.localizedDescription)"
|
||||
}
|
||||
}
|
||||
|
||||
private func shellQuote(_ value: String) -> String {
|
||||
"'" + value.replacingOccurrences(of: "'", with: "'\"'\"'") + "'"
|
||||
}
|
||||
func openMailpit(_ s: ServerDefinition) { if let p = s.mailpitPort, let url = URL(string: "http://\(s.host):\(p)") { NSWorkspace.shared.open(url) } }
|
||||
func openParallels() { NSWorkspace.shared.openApplication(at: URL(fileURLWithPath: "/Applications/Parallels Desktop.app"), configuration: .init()) }
|
||||
|
||||
private func saveServers() { if let data = try? JSONEncoder().encode(servers) { UserDefaults.standard.set(data, forKey: defaultsKey) } }
|
||||
private func prlctlURL() -> URL? { ["/usr/local/bin/prlctl", "/Applications/Parallels Desktop.app/Contents/MacOS/prlctl"].map(URL.init(fileURLWithPath:)).first { FileManager.default.isExecutableFile(atPath: $0.path) } }
|
||||
private func runPrlctl(_ arguments: [String]) async throws -> String {
|
||||
guard let executable = prlctlURL() else { throw OrionError.prlctlNotFound }
|
||||
return try await Task.detached(priority: .userInitiated) { let p = Process(); let pipe = Pipe(); p.executableURL = executable; p.arguments = arguments; p.standardOutput = pipe; p.standardError = pipe; try p.run(); p.waitUntilExit(); let out = String(decoding: pipe.fileHandleForReading.readDataToEndOfFile(), as: UTF8.self); guard p.terminationStatus == 0 else { throw OrionError.commandFailed(out) }; return out }.value
|
||||
}
|
||||
}
|
||||
|
||||
enum OrionError: LocalizedError { case prlctlNotFound, commandFailed(String); var errorDescription: String? { switch self { case .prlctlNotFound: "Parallels prlctl was not found."; case .commandFailed(let o): o.trimmingCharacters(in: .whitespacesAndNewlines) } } }
|
||||
@@ -0,0 +1,47 @@
|
||||
import SwiftUI
|
||||
|
||||
struct SettingsView: View {
|
||||
@EnvironmentObject var vm: OrionVMController
|
||||
@State private var selection: UUID?
|
||||
@State private var editing: ServerDefinition?
|
||||
var body: some View {
|
||||
HStack(spacing: 0) {
|
||||
List(selection: $selection) { ForEach(vm.servers) { s in Label(s.name, systemImage: vm.status(for: s).symbolName).tag(s.id) } }
|
||||
.frame(width: 190)
|
||||
Divider()
|
||||
VStack(alignment: .leading, spacing: 14) {
|
||||
if let id = selection, let server = vm.servers.first(where: { $0.id == id }) {
|
||||
Text(server.name).font(.title2).fontWeight(.semibold)
|
||||
LabeledContent("Parallels VM", value: server.vmName); LabeledContent("Host", value: server.host); LabeledContent("SSH user", value: server.sshUser); LabeledContent("SSH port", value: String(server.sshPort)); LabeledContent("SSH key", value: server.sshIdentityFile.isEmpty ? "Default SSH configuration" : server.sshIdentityFile); LabeledContent("Mailpit", value: server.mailpitPort.map(String.init) ?? "Disabled")
|
||||
HStack { Button("Edit…") { editing = server }; Button("Force Stop", role: .destructive) { vm.forceStop(server) }.disabled(vm.status(for: server) == .stopped) }
|
||||
Spacer()
|
||||
} else { ContentUnavailableView("Select a Server", systemImage: "server.rack") }
|
||||
Divider()
|
||||
HStack { Button("Add Server…", systemImage: "plus") { editing = ServerDefinition(name: "New Server", vmName: "", host: "", sshUser: "sysadmin", sshPort: 22, sshIdentityFile: "", mailpitPort: nil) }; Spacer(); Button("Delete", role: .destructive) { if let id = selection, let i = vm.servers.firstIndex(where: {$0.id == id}) { vm.delete(at: IndexSet(integer: i)); selection = nil } }.disabled(selection == nil) }
|
||||
}.padding(20)
|
||||
}.frame(width: 650, height: 380)
|
||||
.sheet(item: $editing) { server in ServerEditor(server: server, isNew: !vm.servers.contains(where: {$0.id == server.id})) { value, isNew in if isNew { vm.add(value) } else { vm.update(value) }; selection = value.id } }
|
||||
}
|
||||
}
|
||||
|
||||
struct ServerEditor: View {
|
||||
@Environment(\.dismiss) private var dismiss
|
||||
@State var server: ServerDefinition
|
||||
let isNew: Bool
|
||||
let save: (ServerDefinition, Bool) -> Void
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 14) {
|
||||
Text(isNew ? "Add Server" : "Edit Server").font(.title2).fontWeight(.semibold)
|
||||
Form {
|
||||
TextField("Display name", text: $server.name)
|
||||
TextField("Parallels VM name", text: $server.vmName)
|
||||
TextField("IP address / host", text: $server.host)
|
||||
TextField("SSH user", text: $server.sshUser)
|
||||
TextField("SSH port", value: $server.sshPort, format: .number)
|
||||
TextField("SSH identity file (optional)", text: $server.sshIdentityFile, prompt: Text("~/.ssh/id_ed25519"))
|
||||
TextField("Mailpit port (optional)", text: Binding(get: { server.mailpitPort.map(String.init) ?? "" }, set: { server.mailpitPort = Int($0) }))
|
||||
}
|
||||
HStack { Spacer(); Button("Cancel") { dismiss() }; Button("Save") { save(server, isNew); dismiss() }.keyboardShortcut(.defaultAction).disabled(server.name.isEmpty || server.vmName.isEmpty || server.host.isEmpty || server.sshUser.isEmpty || server.sshPort < 1 || server.sshPort > 65535) }
|
||||
}.padding(20).frame(width: 470)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# Orion Toolbar — Multi-Server Edition
|
||||
|
||||
Native macOS menu-bar controller for multiple Parallels Desktop VMs.
|
||||
|
||||
## Features
|
||||
- Add, edit and delete server definitions
|
||||
- Persistent server configuration
|
||||
- Per-server Start, Stop, Restart and Force Stop
|
||||
- Live VM state refreshed every 5 seconds
|
||||
- Per-server SSH shortcut
|
||||
- Optional per-server Mailpit shortcut
|
||||
- Opens Parallels Desktop
|
||||
- Orion is included as the initial server
|
||||
|
||||
A server definition contains a display name, exact Parallels VM name, host/IP, SSH username, and optional Mailpit port.
|
||||
|
||||
Open `OrionToolbar.xcodeproj`, select your signing team, then Build & Run.
|
||||
@@ -0,0 +1,134 @@
|
||||
import SwiftUI
|
||||
|
||||
struct OrionMenuView: View {
|
||||
@EnvironmentObject var vm: OrionVMController
|
||||
@Environment(\.openSettings) private var openSettings
|
||||
|
||||
private var server: ServerDefinition { vm.servers.first ?? .orion }
|
||||
private var status: OrionVMController.VMStatus { vm.status(for: server) }
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
statusRow
|
||||
separator
|
||||
menuRow("terminal", "Open SSH in Terminal") { vm.openSSH(server) }
|
||||
.disabled(status != .running)
|
||||
menuRow("envelope.fill", "Open Mailpit", tint: .blue) { vm.openMailpit(server) }
|
||||
.disabled(status != .running || server.mailpitPort == nil)
|
||||
separator
|
||||
if status == .stopped {
|
||||
menuRow("play.fill", "Start", tint: .green) { vm.start(server) }
|
||||
} else {
|
||||
menuRow("stop.fill", "Stop", tint: .red) { vm.stop(server) }
|
||||
.disabled(vm.isBusy(server))
|
||||
menuRow("arrow.clockwise", "Restart", tint: .orange) { vm.restart(server) }
|
||||
.disabled(vm.isBusy(server) || status != .running)
|
||||
menuRow("exclamationmark.triangle.fill", "Force Stop", tint: .orange) { vm.forceStop(server) }
|
||||
.disabled(vm.isBusy(server))
|
||||
}
|
||||
separator
|
||||
menuRow("macwindow", "Open in Parallels Desktop", tint: .red) { vm.openParallels() }
|
||||
separator
|
||||
menuRow("gearshape.fill", "Settings…", tint: .secondary) {
|
||||
openSettings()
|
||||
NSApplication.shared.activate(ignoringOtherApps: true)
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.15) {
|
||||
NSApplication.shared.activate(ignoringOtherApps: true)
|
||||
NSApplication.shared.windows
|
||||
.filter { $0.isVisible }
|
||||
.forEach { $0.makeKeyAndOrderFront(nil) }
|
||||
}
|
||||
}
|
||||
separator
|
||||
menuRow("xmark", "Quit OrionToolbar") { NSApplication.shared.terminate(nil) }
|
||||
}
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.vertical, 10)
|
||||
.frame(width: 365)
|
||||
.task { await vm.refreshStatus(server) }
|
||||
}
|
||||
|
||||
private var statusRow: some View {
|
||||
Button {
|
||||
Task { await vm.refreshStatus(server) }
|
||||
} label: {
|
||||
HStack(spacing: 12) {
|
||||
Circle()
|
||||
.fill(statusDotColor)
|
||||
.frame(width: 12, height: 12)
|
||||
|
||||
VStack(alignment: .leading, spacing: 3) {
|
||||
Text(server.name)
|
||||
.font(.system(size: 17, weight: .medium))
|
||||
.foregroundStyle(.primary)
|
||||
|
||||
HStack(spacing: 5) {
|
||||
Text(status.title)
|
||||
.foregroundStyle(.secondary)
|
||||
Text("·")
|
||||
.foregroundStyle(.secondary)
|
||||
Text(reachabilityText)
|
||||
.foregroundStyle(reachabilityColor)
|
||||
}
|
||||
.font(.system(size: 14))
|
||||
}
|
||||
|
||||
Spacer()
|
||||
if vm.isBusy(server) {
|
||||
ProgressView().controlSize(.small)
|
||||
} else {
|
||||
Image(systemName: "chevron.right")
|
||||
.font(.system(size: 15, weight: .semibold))
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
}
|
||||
.contentShape(Rectangle())
|
||||
.frame(height: 62)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
}
|
||||
|
||||
private var separator: some View {
|
||||
Divider().padding(.vertical, 4)
|
||||
}
|
||||
|
||||
private func menuRow(_ icon: String, _ title: String, tint: Color = .primary, action: @escaping () -> Void) -> some View {
|
||||
Button(action: action) {
|
||||
HStack(spacing: 14) {
|
||||
Image(systemName: icon)
|
||||
.font(.system(size: 17, weight: .medium))
|
||||
.foregroundStyle(tint)
|
||||
.frame(width: 24, alignment: .center)
|
||||
Text(title)
|
||||
.font(.system(size: 16))
|
||||
.foregroundStyle(.primary)
|
||||
Spacer()
|
||||
}
|
||||
.contentShape(Rectangle())
|
||||
.frame(height: 43)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
}
|
||||
|
||||
private var statusDotColor: Color {
|
||||
switch status {
|
||||
case .running: .green
|
||||
case .stopped, .unavailable: .red
|
||||
case .suspended, .transitioning: .orange
|
||||
case .checking: .gray
|
||||
}
|
||||
}
|
||||
|
||||
private var reachabilityText: String {
|
||||
switch status {
|
||||
case .running: "Reachable"
|
||||
case .checking: "Checking…"
|
||||
case .transitioning: "Working…"
|
||||
default: "Unavailable"
|
||||
}
|
||||
}
|
||||
|
||||
private var reachabilityColor: Color {
|
||||
status == .running ? .green : .secondary
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
import AppKit
|
||||
import Foundation
|
||||
|
||||
struct ServerDefinition: Identifiable, Codable, Hashable {
|
||||
var id = UUID()
|
||||
var name: String
|
||||
var vmName: String
|
||||
var host: String
|
||||
var sshUser: String
|
||||
var sshPort: Int = 22
|
||||
var sshIdentityFile: String = ""
|
||||
var mailpitPort: Int?
|
||||
|
||||
static let orion = ServerDefinition(name: "Orion", vmName: "Ubuntu Linux Server", host: "10.211.55.100", sshUser: "sysadmin", sshPort: 22, sshIdentityFile: "", mailpitPort: 8025)
|
||||
}
|
||||
|
||||
@MainActor
|
||||
final class OrionVMController: ObservableObject {
|
||||
enum VMStatus: Equatable {
|
||||
case checking, running, stopped, suspended, transitioning, unavailable(String)
|
||||
var title: String { switch self { case .checking: "Checking…"; case .running: "Running"; case .stopped: "Stopped"; case .suspended: "Suspended"; case .transitioning: "Working…"; case .unavailable: "Unavailable" } }
|
||||
var symbolName: String { switch self { case .running: "server.rack"; case .stopped: "power"; case .suspended: "pause.circle"; case .transitioning, .checking: "arrow.triangle.2.circlepath"; case .unavailable: "exclamationmark.triangle" } }
|
||||
}
|
||||
|
||||
@Published var servers: [ServerDefinition] { didSet { saveServers() } }
|
||||
@Published var statuses: [UUID: VMStatus] = [:]
|
||||
@Published var busyServers: Set<UUID> = []
|
||||
@Published var lastError: String?
|
||||
private var timer: Timer?
|
||||
private let defaultsKey = "serverDefinitions.v2"
|
||||
|
||||
init() {
|
||||
if let data = UserDefaults.standard.data(forKey: defaultsKey), let saved = try? JSONDecoder().decode([ServerDefinition].self, from: data), !saved.isEmpty { servers = saved }
|
||||
else { servers = [.orion] }
|
||||
Task { await refreshAll() }
|
||||
timer = Timer.scheduledTimer(withTimeInterval: 5, repeats: true) { [weak self] _ in Task { @MainActor in await self?.refreshAll() } }
|
||||
}
|
||||
deinit { timer?.invalidate() }
|
||||
|
||||
func status(for server: ServerDefinition) -> VMStatus { statuses[server.id] ?? .checking }
|
||||
func isBusy(_ server: ServerDefinition) -> Bool { busyServers.contains(server.id) }
|
||||
func add(_ server: ServerDefinition) { servers.append(server); Task { await refreshStatus(server) } }
|
||||
func update(_ server: ServerDefinition) { if let i = servers.firstIndex(where: { $0.id == server.id }) { servers[i] = server; Task { await refreshStatus(server) } } }
|
||||
func delete(at offsets: IndexSet) { for i in offsets { statuses[servers[i].id] = nil }; servers.remove(atOffsets: offsets) }
|
||||
|
||||
func refreshAll() async { for server in servers { await refreshStatus(server) } }
|
||||
func refreshStatus(_ server: ServerDefinition) async {
|
||||
guard !isBusy(server) else { return }
|
||||
do {
|
||||
let output = try await runPrlctl(["status", server.vmName]); let value = output.lowercased()
|
||||
if value.contains("running") { statuses[server.id] = .running }
|
||||
else if value.contains("stopped") { statuses[server.id] = .stopped }
|
||||
else if value.contains("suspended") || value.contains("paused") { statuses[server.id] = .suspended }
|
||||
else { statuses[server.id] = .unavailable(output.trimmingCharacters(in: .whitespacesAndNewlines)) }
|
||||
} catch { statuses[server.id] = .unavailable(error.localizedDescription) }
|
||||
}
|
||||
|
||||
func start(_ s: ServerDefinition) { perform(["start", s.vmName], server: s) }
|
||||
func stop(_ s: ServerDefinition) { perform(["stop", s.vmName], server: s) }
|
||||
func restart(_ s: ServerDefinition) { perform(["restart", s.vmName], server: s) }
|
||||
func forceStop(_ s: ServerDefinition) { perform(["stop", s.vmName, "--kill"], server: s) }
|
||||
|
||||
private func perform(_ arguments: [String], server: ServerDefinition) {
|
||||
guard !isBusy(server) else { return }; busyServers.insert(server.id); statuses[server.id] = .transitioning; lastError = nil
|
||||
Task { do { _ = try await runPrlctl(arguments) } catch { lastError = error.localizedDescription }; busyServers.remove(server.id); try? await Task.sleep(for: .seconds(1)); await refreshStatus(server) }
|
||||
}
|
||||
|
||||
func openSSH(_ s: ServerDefinition) {
|
||||
let userHost = "\(s.sshUser)@\(s.host)"
|
||||
var command = "/usr/bin/ssh -p \(s.sshPort)"
|
||||
let identity = s.sshIdentityFile.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
if !identity.isEmpty {
|
||||
command += " -i \(shellQuote((identity as NSString).expandingTildeInPath))"
|
||||
}
|
||||
command += " \(shellQuote(userHost))"
|
||||
|
||||
do {
|
||||
// Terminal reliably opens executable .command files without requiring
|
||||
// Apple Events/Automation permission from this menu-bar application.
|
||||
let directory = FileManager.default.temporaryDirectory
|
||||
.appendingPathComponent("OrionToolbar", isDirectory: true)
|
||||
try FileManager.default.createDirectory(at: directory, withIntermediateDirectories: true)
|
||||
|
||||
let safeName = s.name.replacingOccurrences(of: "/", with: "-")
|
||||
let scriptURL = directory.appendingPathComponent("SSH-\(safeName).command")
|
||||
let script = """
|
||||
#!/bin/zsh
|
||||
clear
|
||||
echo "Connecting to \(s.name) (\(userHost))..."
|
||||
exec \(command)
|
||||
"""
|
||||
try script.write(to: scriptURL, atomically: true, encoding: .utf8)
|
||||
try FileManager.default.setAttributes([.posixPermissions: 0o700], ofItemAtPath: scriptURL.path)
|
||||
|
||||
guard let terminalURL = NSWorkspace.shared.urlForApplication(withBundleIdentifier: "com.apple.Terminal") else {
|
||||
lastError = "Terminal.app could not be found."
|
||||
return
|
||||
}
|
||||
|
||||
let configuration = NSWorkspace.OpenConfiguration()
|
||||
configuration.activates = true
|
||||
NSWorkspace.shared.open([scriptURL], withApplicationAt: terminalURL, configuration: configuration) { _, error in
|
||||
Task { @MainActor in
|
||||
if let error { self.lastError = "Could not open Terminal: \(error.localizedDescription)" }
|
||||
}
|
||||
}
|
||||
} catch {
|
||||
lastError = "Could not create SSH launcher: \(error.localizedDescription)"
|
||||
}
|
||||
}
|
||||
|
||||
private func shellQuote(_ value: String) -> String {
|
||||
"'" + value.replacingOccurrences(of: "'", with: "'\"'\"'") + "'"
|
||||
}
|
||||
func openMailpit(_ s: ServerDefinition) { if let p = s.mailpitPort, let url = URL(string: "http://\(s.host):\(p)") { NSWorkspace.shared.open(url) } }
|
||||
func openParallels() { NSWorkspace.shared.openApplication(at: URL(fileURLWithPath: "/Applications/Parallels Desktop.app"), configuration: .init()) }
|
||||
|
||||
private func saveServers() { if let data = try? JSONEncoder().encode(servers) { UserDefaults.standard.set(data, forKey: defaultsKey) } }
|
||||
private func prlctlURL() -> URL? { ["/usr/local/bin/prlctl", "/Applications/Parallels Desktop.app/Contents/MacOS/prlctl"].map(URL.init(fileURLWithPath:)).first { FileManager.default.isExecutableFile(atPath: $0.path) } }
|
||||
private func runPrlctl(_ arguments: [String]) async throws -> String {
|
||||
guard let executable = prlctlURL() else { throw OrionError.prlctlNotFound }
|
||||
return try await Task.detached(priority: .userInitiated) { let p = Process(); let pipe = Pipe(); p.executableURL = executable; p.arguments = arguments; p.standardOutput = pipe; p.standardError = pipe; try p.run(); p.waitUntilExit(); let out = String(decoding: pipe.fileHandleForReading.readDataToEndOfFile(), as: UTF8.self); guard p.terminationStatus == 0 else { throw OrionError.commandFailed(out) }; return out }.value
|
||||
}
|
||||
}
|
||||
|
||||
enum OrionError: LocalizedError { case prlctlNotFound, commandFailed(String); var errorDescription: String? { switch self { case .prlctlNotFound: "Parallels prlctl was not found."; case .commandFailed(let o): o.trimmingCharacters(in: .whitespacesAndNewlines) } } }
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
|
||||
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>method</key>
|
||||
<string>developer-id</string>
|
||||
|
||||
<key>signingStyle</key>
|
||||
<string>automatic</string>
|
||||
|
||||
<key>teamID</key>
|
||||
<string>39R6U3437D</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>ApplicationProperties</key>
|
||||
<dict>
|
||||
<key>ApplicationPath</key>
|
||||
<string>Applications/OrionToolbar.app</string>
|
||||
<key>Architectures</key>
|
||||
<array>
|
||||
<string>x86_64</string>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>net.absdev.OrionToolbar</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>SigningIdentity</key>
|
||||
<string>Apple Development: Mark Gregory (FLBRJ3BYDD)</string>
|
||||
<key>Team</key>
|
||||
<string>39R6U3437D</string>
|
||||
</dict>
|
||||
<key>ArchiveVersion</key>
|
||||
<integer>2</integer>
|
||||
<key>CreationDate</key>
|
||||
<date>2026-10-23T06:02:07Z</date>
|
||||
<key>Name</key>
|
||||
<string>OrionToolbar</string>
|
||||
<key>SchemeName</key>
|
||||
<string>OrionToolbar</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>26A434</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>OrionToolbar</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>AppIcon</string>
|
||||
<key>CFBundleIconName</key>
|
||||
<string>AppIcon</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>net.absdev.OrionToolbar</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>OrionToolbar</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
<array>
|
||||
<string>MacOSX</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string>26A425</string>
|
||||
<key>DTPlatformName</key>
|
||||
<string>macosx</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>27.0</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>26A425</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx27.0</string>
|
||||
<key>DTXcode</key>
|
||||
<string>2710</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>27A9275</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>14.0</string>
|
||||
<key>LSUIElement</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1 @@
|
||||
APPL????
|
||||
@@ -0,0 +1,139 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>files</key>
|
||||
<dict>
|
||||
<key>Resources/AppIcon.icns</key>
|
||||
<data>
|
||||
kowWyzP1FuwiM/wh8U4ufyNXdqA=
|
||||
</data>
|
||||
<key>Resources/Assets.car</key>
|
||||
<data>
|
||||
VE6iKwrpeXhU6TBYdOv7OmEeQFs=
|
||||
</data>
|
||||
</dict>
|
||||
<key>files2</key>
|
||||
<dict>
|
||||
<key>Resources/AppIcon.icns</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
//yUqvzN+P68C7dK/PRYMSlQN8t9AzlionLbQKJuWYw=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Resources/Assets.car</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
ryHiulc8osgyOqIe2Gxiyt+EjitNulEQKKph0XWDixM=
|
||||
</data>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^Resources/</key>
|
||||
<true/>
|
||||
<key>^Resources/.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Resources/Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
|
||||
<dict>
|
||||
<key>nested</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>10</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^Resources/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Resources/Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^[^/]+$</key>
|
||||
<dict>
|
||||
<key>nested</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>10</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1 @@
|
||||
/Applications
|
||||
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>26A434</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>OrionToolbar</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>AppIcon</string>
|
||||
<key>CFBundleIconName</key>
|
||||
<string>AppIcon</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>net.absdev.OrionToolbar</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>OrionToolbar</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
<array>
|
||||
<string>MacOSX</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string>26A425</string>
|
||||
<key>DTPlatformName</key>
|
||||
<string>macosx</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>27.0</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>26A425</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx27.0</string>
|
||||
<key>DTXcode</key>
|
||||
<string>2710</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>27A9275</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>14.0</string>
|
||||
<key>LSUIElement</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1 @@
|
||||
APPL????
|
||||
@@ -0,0 +1,139 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>files</key>
|
||||
<dict>
|
||||
<key>Resources/AppIcon.icns</key>
|
||||
<data>
|
||||
kowWyzP1FuwiM/wh8U4ufyNXdqA=
|
||||
</data>
|
||||
<key>Resources/Assets.car</key>
|
||||
<data>
|
||||
VE6iKwrpeXhU6TBYdOv7OmEeQFs=
|
||||
</data>
|
||||
</dict>
|
||||
<key>files2</key>
|
||||
<dict>
|
||||
<key>Resources/AppIcon.icns</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
//yUqvzN+P68C7dK/PRYMSlQN8t9AzlionLbQKJuWYw=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Resources/Assets.car</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
ryHiulc8osgyOqIe2Gxiyt+EjitNulEQKKph0XWDixM=
|
||||
</data>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^Resources/</key>
|
||||
<true/>
|
||||
<key>^Resources/.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Resources/Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
|
||||
<dict>
|
||||
<key>nested</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>10</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^Resources/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Resources/Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^[^/]+$</key>
|
||||
<dict>
|
||||
<key>nested</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>10</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>OrionToolbar</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>architectures</key>
|
||||
<array>
|
||||
<string>x86_64</string>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>buildNumber</key>
|
||||
<string>1</string>
|
||||
<key>certificate</key>
|
||||
<dict>
|
||||
<key>SHA1</key>
|
||||
<string>B99D353C88996866C49E4389B375645F76870A3F</string>
|
||||
<key>dateExpires</key>
|
||||
<string>01/02/2027</string>
|
||||
<key>type</key>
|
||||
<string>Developer ID Application</string>
|
||||
</dict>
|
||||
<key>name</key>
|
||||
<string>OrionToolbar.app</string>
|
||||
<key>team</key>
|
||||
<dict>
|
||||
<key>id</key>
|
||||
<string>39R6U3437D</string>
|
||||
<key>name</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
<key>versionNumber</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>destination</key>
|
||||
<string>export</string>
|
||||
<key>method</key>
|
||||
<string>developer-id</string>
|
||||
<key>signingStyle</key>
|
||||
<string>automatic</string>
|
||||
<key>teamID</key>
|
||||
<string>39R6U3437D</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>26A434</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>OrionToolbar</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>AppIcon</string>
|
||||
<key>CFBundleIconName</key>
|
||||
<string>AppIcon</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>net.absdev.OrionToolbar</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>OrionToolbar</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
<array>
|
||||
<string>MacOSX</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string>26A425</string>
|
||||
<key>DTPlatformName</key>
|
||||
<string>macosx</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>27.0</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>26A425</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx27.0</string>
|
||||
<key>DTXcode</key>
|
||||
<string>2710</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>27A9275</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>14.0</string>
|
||||
<key>LSUIElement</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1 @@
|
||||
APPL????
|
||||
@@ -0,0 +1,139 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>files</key>
|
||||
<dict>
|
||||
<key>Resources/AppIcon.icns</key>
|
||||
<data>
|
||||
kowWyzP1FuwiM/wh8U4ufyNXdqA=
|
||||
</data>
|
||||
<key>Resources/Assets.car</key>
|
||||
<data>
|
||||
VE6iKwrpeXhU6TBYdOv7OmEeQFs=
|
||||
</data>
|
||||
</dict>
|
||||
<key>files2</key>
|
||||
<dict>
|
||||
<key>Resources/AppIcon.icns</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
//yUqvzN+P68C7dK/PRYMSlQN8t9AzlionLbQKJuWYw=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Resources/Assets.car</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
ryHiulc8osgyOqIe2Gxiyt+EjitNulEQKKph0XWDixM=
|
||||
</data>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^Resources/</key>
|
||||
<true/>
|
||||
<key>^Resources/.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Resources/Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
|
||||
<dict>
|
||||
<key>nested</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>10</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^Resources/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Resources/Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^[^/]+$</key>
|
||||
<dict>
|
||||
<key>nested</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>10</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,95 @@
|
||||
2026-10-23 06:02:09 +0000 [MT] Initial pipeline context: <IDEDistributionProcessingPipelineContext: 0x749d636700; archive(resolved)="<IDEArchive: 0x749c755b20>", distributionTask(resolved)="2", distributionDestination(resolved)="1", distributionMethod(resolved)="<IDEDistributionMethodDeveloperID: 0x749e8e4120>", team(resolved)="<IDEProvisioningBasicTeam: 0x749c0445c0; teamID='39R6U3437D', teamName='(null)'>">
|
||||
Chain (12, self inclusive):
|
||||
<IDEDistributionProcessingPipelineContext: 0x749d636700; archive = "<IDEArchive: 0x749c755b20>", distributionMethod="<IDEDistributionMethodDeveloperID: 0x749e8e4120>", team="<IDEProvisioningBasicTeam: 0x749c0445c0; teamID='39R6U3437D', teamName='(null)'>">
|
||||
<IDEDistributionProcessingPipelineContext: 0x749d636400; archive = "<IDEArchive: 0x749c755b20>", distributionMethod="<IDEDistributionMethodDeveloperID: 0x749e8e4120>", team="<IDEProvisioningBasicTeam: 0x749c0445c0; teamID='39R6U3437D', teamName='(null)'>">
|
||||
<IDEDistributionContext: 0x749d542080; archive = "<IDEArchive: 0x749c755b20>", distributionMethod="<IDEDistributionMethodDeveloperID: 0x749e8e4120>", team="<IDEProvisioningBasicTeam: 0x749c0445c0; teamID='39R6U3437D', teamName='(null)'>">
|
||||
<IDEDistributionContext: 0x749d541e00; archive = "<IDEArchive: 0x749c755b20>", distributionMethod="<IDEDistributionMethodDeveloperID: 0x749e8e4120>", team="<IDEProvisioningBasicTeam: 0x749c0445c0; teamID='39R6U3437D', teamName='(null)'>">
|
||||
<IDEDistributionContext: 0x749d541b80; archive = "<IDEArchive: 0x749c755b20>", distributionMethod="<IDEDistributionMethodDeveloperID: 0x749e8e4120>", team="<IDEProvisioningBasicTeam: 0x749c0445c0; teamID='39R6U3437D', teamName='(null)'>">
|
||||
<IDEDistributionContext: 0x749d541900; archive = "<IDEArchive: 0x749c755b20>", distributionMethod="<IDEDistributionMethodDeveloperID: 0x749e8e4120>", team="<IDEProvisioningBasicTeam: 0x749c0445c0; teamID='39R6U3437D', teamName='(null)'>">
|
||||
<IDEDistributionContext: 0x749d540a00; archive = "<IDEArchive: 0x749c755b20>", distributionMethod="<IDEDistributionMethodDeveloperID: 0x749e8e4120>", team="<IDEProvisioningBasicTeam: 0x749c0445c0; teamID='39R6U3437D', teamName='(null)'>">
|
||||
<IDEDistributionContext: 0x749d540780; archive = "<IDEArchive: 0x749c755b20>", distributionMethod="<IDEDistributionMethodDeveloperID: 0x749e8e4120>", team="<IDEProvisioningBasicTeam: 0x749c0445c0; teamID='39R6U3437D', teamName='(null)'>">
|
||||
<IDEDistributionContext: 0x749d540500; archive = "<IDEArchive: 0x749c755b20>", distributionMethod="<IDEDistributionMethodDeveloperID: 0x749e8e4120>", team="<IDEProvisioningBasicTeam: 0x749c0445c0; teamID='39R6U3437D', teamName='(null)'>">
|
||||
<IDEDistributionContext: 0x749d540280; archive = "<IDEArchive: 0x749c755b20>", distributionMethod="<IDEDistributionMethodDeveloperID: 0x749e8e4120>", team="(null)">
|
||||
<IDEDistributionContext: 0x749d540000; archive = "<IDEArchive: 0x749c755b20>", distributionMethod="<IDEDistributionMethodDeveloperID: 0x749e8e4120>", team="(null)">
|
||||
<IDEDistributionContext: 0x100c8dbd0; archive = "<IDEArchive: 0x749c755b20>", distributionMethod="(null)", team="(null)">
|
||||
</IDEDistributionProcessingPipelineContext: 0x749d636700>
|
||||
2026-10-23 06:02:09 +0000 [MT] Processing step: IDEDistributionCreateDestRootStep
|
||||
2026-10-23 06:02:09 +0000 [MT] Processing step: IDEDistributionCopyItemStep
|
||||
2026-10-23 06:02:09 +0000 [MT] Running /usr/bin/ditto '-V' '/Volumes/Developer/Applications/OrionToolbar/build/OrionToolbar.xcarchive/Products/Applications/OrionToolbar.app' '/var/folders/54/8knnwrw15j74z4w2z_3_25q00000gn/T/XcodeDistPipeline.~~~ktGJUG/Root/Applications/OrionToolbar.app'
|
||||
2026-10-23 06:02:09 +0000 >>> Copying /Volumes/Developer/Applications/OrionToolbar/build/OrionToolbar.xcarchive/Products/Applications/OrionToolbar.app
|
||||
2026-10-23 06:02:09 +0000 copying file ./Contents/_CodeSignature/CodeResources ...
|
||||
2026-10-23 06:02:09 +0000 2672 bytes for ./Contents/_CodeSignature/CodeResources
|
||||
2026-10-23 06:02:09 +0000 copying file ./Contents/Info.plist ...
|
||||
2026-10-23 06:02:09 +0000 1521 bytes for ./Contents/Info.plist
|
||||
2026-10-23 06:02:09 +0000 copying file ./Contents/Resources/AppIcon.icns ...
|
||||
2026-10-23 06:02:09 +0000 140248 bytes for ./Contents/Resources/AppIcon.icns
|
||||
2026-10-23 06:02:09 +0000 copying file ./Contents/Resources/Assets.car ...
|
||||
2026-10-23 06:02:09 +0000 3193432 bytes for ./Contents/Resources/Assets.car
|
||||
2026-10-23 06:02:09 +0000 copying file ./Contents/PkgInfo ...
|
||||
2026-10-23 06:02:09 +0000 8 bytes for ./Contents/PkgInfo
|
||||
2026-10-23 06:02:09 +0000 copying file ./Contents/MacOS/OrionToolbar ...
|
||||
2026-10-23 06:02:09 +0000 711120 bytes for ./Contents/MacOS/OrionToolbar
|
||||
2026-10-23 06:02:09 +0000 [MT] /usr/bin/ditto exited with 0
|
||||
2026-10-23 06:02:09 +0000 [MT] Processing step: IDEDistributionEmbedProfileStep
|
||||
2026-10-23 06:02:09 +0000 [MT] Skipping profile for item: <IDEDistributionItem: 0x749e60bf00; bundleID='net.absdev.OrionToolbar', path='<DVTFilePath:0x749c755b90:'/Volumes/Developer/Applications/OrionToolbar/build/OrionToolbar.xcarchive/Products/Applications/OrionToolbar.app'>', codeSigningInfo='<_DVTCodeSigningInformation_Path: 0x749e60bc60; isSigned='1', isAdHocSigned='0', signingCertificate='<DVTSigningCertificate: 0x749e9d3720; name='Apple Development: Mark Gregory (FLBRJ3BYDD)', hash='875DE11FCFFF2EB50E87DC0B12F2585D92B2AEAF', serialNumber='5F46F7DDD0779AD1270CCEB3E078669F', certificateKinds='(
|
||||
"1.2.840.113635.100.6.1.12",
|
||||
"1.2.840.113635.100.6.1.2"
|
||||
), issueDate='2026-09-18 13:22:44 +0000''>', entitlements='{
|
||||
}', teamID='39R6U3437D', identifier='net.absdev.OrionToolbar', executablePath='<DVTFilePath:0x749e60b9c0:'/Volumes/Developer/Applications/OrionToolbar/build/OrionToolbar.xcarchive/Products/Applications/OrionToolbar.app/Contents/MacOS/OrionToolbar'>', hardenedRuntime='1'>'>
|
||||
2026-10-23 06:02:09 +0000 [MT] Processing step: IDEDistributionInfoPlistStep
|
||||
2026-10-23 06:02:09 +0000 [MT] Skipping step: IDEDistributionInfoPlistStep because it said so
|
||||
2026-10-23 06:02:09 +0000 [MT] Processing step: IDEDistributionAppThinningPlistStep
|
||||
2026-10-23 06:02:09 +0000 [MT] Processing step: IDEDistributionSymbolsStep
|
||||
2026-10-23 06:02:09 +0000 [MT] Skipping step: IDEDistributionSymbolsStep because it said so
|
||||
2026-10-23 06:02:09 +0000 [MT] Processing step: IDEDistributionAppThinningStep
|
||||
2026-10-23 06:02:09 +0000 [MT] Skipping step: IDEDistributionAppThinningStep because it said so
|
||||
2026-10-23 06:02:09 +0000 [MT] Processing step: IDEDistributionArchThinningStep
|
||||
2026-10-23 06:02:09 +0000 [MT] Archs to thin for item /Volumes/Developer/Applications/OrionToolbar/build/OrionToolbar.xcarchive/Products/Applications/OrionToolbar.app are []
|
||||
2026-10-23 06:02:09 +0000 [MT] Processing step: IDEDistributionODRStep
|
||||
2026-10-23 06:02:09 +0000 [MT] Processing step: IDEDistributionStripXattrsStep
|
||||
2026-10-23 06:02:09 +0000 [MT] Skipping stripping extended attributes because the codesign step will strip them.
|
||||
2026-10-23 06:02:09 +0000 [MT] Processing step: IDEDistributionCodesignStep
|
||||
2026-10-23 06:02:09 +0000 [MT] Entitlements for <IDEDistributionItem: 0x749e60bf00; bundleID='net.absdev.OrionToolbar', path='<DVTFilePath:0x749c755b90:'/Volumes/Developer/Applications/OrionToolbar/build/OrionToolbar.xcarchive/Products/Applications/OrionToolbar.app'>', codeSigningInfo='<_DVTCodeSigningInformation_Path: 0x749e60bc60; isSigned='1', isAdHocSigned='0', signingCertificate='<DVTSigningCertificate: 0x749e9d3b80; name='Apple Development: Mark Gregory (FLBRJ3BYDD)', hash='875DE11FCFFF2EB50E87DC0B12F2585D92B2AEAF', serialNumber='5F46F7DDD0779AD1270CCEB3E078669F', certificateKinds='(
|
||||
"1.2.840.113635.100.6.1.12",
|
||||
"1.2.840.113635.100.6.1.2"
|
||||
), issueDate='2026-09-18 13:22:44 +0000''>', entitlements='{
|
||||
}', teamID='39R6U3437D', identifier='net.absdev.OrionToolbar', executablePath='<DVTFilePath:0x749e60b9c0:'/Volumes/Developer/Applications/OrionToolbar/build/OrionToolbar.xcarchive/Products/Applications/OrionToolbar.app/Contents/MacOS/OrionToolbar'>', hardenedRuntime='1'>'>: {
|
||||
}
|
||||
2026-10-23 06:02:09 +0000 [MT] Associated App Clip Identifiers Filter: Skipping because "com.apple.developer.associated-appclip-app-identifiers" is not present
|
||||
2026-10-23 06:02:09 +0000 [MT] Entitlements for <IDEDistributionItem: 0x749e60bf00; bundleID='net.absdev.OrionToolbar', path='<DVTFilePath:0x749c755b90:'/Volumes/Developer/Applications/OrionToolbar/build/OrionToolbar.xcarchive/Products/Applications/OrionToolbar.app'>', codeSigningInfo='<_DVTCodeSigningInformation_Path: 0x749e60bc60; isSigned='1', isAdHocSigned='0', signingCertificate='<DVTSigningCertificate: 0x749e9d3b80; name='Apple Development: Mark Gregory (FLBRJ3BYDD)', hash='875DE11FCFFF2EB50E87DC0B12F2585D92B2AEAF', serialNumber='5F46F7DDD0779AD1270CCEB3E078669F', certificateKinds='(
|
||||
"1.2.840.113635.100.6.1.12",
|
||||
"1.2.840.113635.100.6.1.2"
|
||||
), issueDate='2026-09-18 13:22:44 +0000''>', entitlements='{
|
||||
}', teamID='39R6U3437D', identifier='net.absdev.OrionToolbar', executablePath='<DVTFilePath:0x749e60b9c0:'/Volumes/Developer/Applications/OrionToolbar/build/OrionToolbar.xcarchive/Products/Applications/OrionToolbar.app/Contents/MacOS/OrionToolbar'>', hardenedRuntime='1'>'> are: {
|
||||
}
|
||||
2026-10-23 06:02:09 +0000 [MT] Writing entitlements for <IDEDistributionItem: 0x749e60bf00; bundleID='net.absdev.OrionToolbar', path='<DVTFilePath:0x749c755b90:'/Volumes/Developer/Applications/OrionToolbar/build/OrionToolbar.xcarchive/Products/Applications/OrionToolbar.app'>', codeSigningInfo='<_DVTCodeSigningInformation_Path: 0x749e60bc60; isSigned='1', isAdHocSigned='0', signingCertificate='<DVTSigningCertificate: 0x749e9d3b80; name='Apple Development: Mark Gregory (FLBRJ3BYDD)', hash='875DE11FCFFF2EB50E87DC0B12F2585D92B2AEAF', serialNumber='5F46F7DDD0779AD1270CCEB3E078669F', certificateKinds='(
|
||||
"1.2.840.113635.100.6.1.12",
|
||||
"1.2.840.113635.100.6.1.2"
|
||||
), issueDate='2026-09-18 13:22:44 +0000''>', entitlements='{
|
||||
}', teamID='39R6U3437D', identifier='net.absdev.OrionToolbar', executablePath='<DVTFilePath:0x749e60b9c0:'/Volumes/Developer/Applications/OrionToolbar/build/OrionToolbar.xcarchive/Products/Applications/OrionToolbar.app/Contents/MacOS/OrionToolbar'>', hardenedRuntime='1'>'> to: /var/folders/54/8knnwrw15j74z4w2z_3_25q00000gn/T/XcodeDistPipeline.~~~ktGJUG/entitlements~~~lELp8b
|
||||
2026-10-23 06:02:09 +0000 [MT] invoking codesign: <NSConcreteTask: 0x749c0f34d0; launchPath='/usr/bin/codesign', arguments='(
|
||||
"-f",
|
||||
"-s",
|
||||
B99D353C88996866C49E4389B375645F76870A3F,
|
||||
"--entitlements",
|
||||
"/var/folders/54/8knnwrw15j74z4w2z_3_25q00000gn/T/XcodeDistPipeline.~~~ktGJUG/entitlements~~~lELp8b",
|
||||
"--requirements",
|
||||
"=designated => anchor apple generic and identifier \"$self.identifier\" and ((cert leaf[field.1.2.840.113635.100.6.1.9] exists) or ( certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = \"39R6U3437D\" ))",
|
||||
"--preserve-metadata=identifier,flags,runtime,launch-constraints,library-constraints",
|
||||
"--generate-entitlement-der",
|
||||
"--strip-disallowed-xattrs",
|
||||
"-vvv",
|
||||
"/var/folders/54/8knnwrw15j74z4w2z_3_25q00000gn/T/XcodeDistPipeline.~~~ktGJUG/Root/Applications/OrionToolbar.app"
|
||||
)'>
|
||||
2026-10-23 06:02:11 +0000 [MT] codesign output: /var/folders/54/8knnwrw15j74z4w2z_3_25q00000gn/T/XcodeDistPipeline.~~~ktGJUG/Root/Applications/OrionToolbar.app: replacing existing signature
|
||||
/var/folders/54/8knnwrw15j74z4w2z_3_25q00000gn/T/XcodeDistPipeline.~~~ktGJUG/Root/Applications/OrionToolbar.app: signed app bundle with Mach-O universal (x86_64 arm64) [net.absdev.OrionToolbar]
|
||||
2026-10-23 06:02:11 +0000 [MT] Processing step: IDEDistributionZipODRItemStep
|
||||
2026-10-23 06:02:11 +0000 [MT] Skipping step: IDEDistributionZipODRItemStep because it said so
|
||||
2026-10-23 06:02:11 +0000 [MT] Processing step: IDEDistributionSkipPackagingStep
|
||||
2026-10-23 06:02:11 +0000 [MT] Processing step: IDEDistributionAppStoreInformationStep
|
||||
2026-10-23 06:02:11 +0000 [MT] Skipping step: IDEDistributionAppStoreInformationStep because it said so
|
||||
2026-10-23 06:02:11 +0000 [MT] Processing step: IDEDistributionGenerateProcessedDistributionItems
|
||||
2026-10-23 06:02:11 +0000 [MT] IDEDistributionItem init <DVTFilePath:0x749c0b8f50:'/var/folders/54/8knnwrw15j74z4w2z_3_25q00000gn/T/XcodeDistPipeline.~~~ktGJUG/Root/Applications/OrionToolbar.app'>
|
||||
2026-10-23 06:02:11 +0000 [MT] [OPTIONAL] Didn't find embedded provisioning profile for <DVTFilePath:0x749c0b8f50:'/var/folders/54/8knnwrw15j74z4w2z_3_25q00000gn/T/XcodeDistPipeline.~~~ktGJUG/Root/Applications/OrionToolbar.app'>: Error Domain=NSCocoaErrorDomain Code=4 "No file at <DVTFilePath:0x749c0bb720:'/var/folders/54/8knnwrw15j74z4w2z_3_25q00000gn/T/XcodeDistPipeline.~~~ktGJUG/Root/Applications/OrionToolbar.app/Contents/embedded.provisionprofile'>" UserInfo={NSLocalizedDescription=No file at <DVTFilePath:0x749c0bb720:'/var/folders/54/8knnwrw15j74z4w2z_3_25q00000gn/T/XcodeDistPipeline.~~~ktGJUG/Root/Applications/OrionToolbar.app/Contents/embedded.provisionprofile'>}
|
||||
2026-10-23 06:02:11 +0000 [MT] Processing step: IDEDistributionCreateManifestStep
|
||||
2026-10-23 06:02:11 +0000 [MT] Skipping step: IDEDistributionCreateManifestStep because it said so
|
||||
@@ -0,0 +1,276 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
# ============================================================
|
||||
# Orion Toolbar - Direct Distribution Build
|
||||
# ============================================================
|
||||
|
||||
APP_NAME="OrionToolbar"
|
||||
SCHEME="OrionToolbar"
|
||||
PROJECT="OrionToolbar.xcodeproj"
|
||||
|
||||
# Change this if your Developer ID identity has a different name.
|
||||
SIGNING_IDENTITY="B99D353C88996866C49E4389B375645F76870A3F"
|
||||
|
||||
# Existing notarytool Keychain profile.
|
||||
# Change if you use a different profile name.
|
||||
NOTARY_PROFILE="orion-notary"
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
BUILD_DIR="$ROOT_DIR/build"
|
||||
ARCHIVE_PATH="$BUILD_DIR/$APP_NAME.xcarchive"
|
||||
EXPORT_DIR="$BUILD_DIR/export"
|
||||
DMG_STAGE="$BUILD_DIR/dmg"
|
||||
DMG_PATH="$ROOT_DIR/$APP_NAME.dmg"
|
||||
EXPORT_OPTIONS="$BUILD_DIR/ExportOptions.plist"
|
||||
|
||||
echo
|
||||
echo "============================================================"
|
||||
echo " ORION TOOLBAR - DIRECT DISTRIBUTION"
|
||||
echo "============================================================"
|
||||
echo
|
||||
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Clean
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo "==> Cleaning previous build..."
|
||||
|
||||
rm -rf "$BUILD_DIR"
|
||||
rm -f "$DMG_PATH"
|
||||
|
||||
mkdir -p "$BUILD_DIR"
|
||||
mkdir -p "$EXPORT_DIR"
|
||||
mkdir -p "$DMG_STAGE"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Export options
|
||||
# ------------------------------------------------------------
|
||||
|
||||
cat > "$EXPORT_OPTIONS" <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
|
||||
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>method</key>
|
||||
<string>developer-id</string>
|
||||
|
||||
<key>signingStyle</key>
|
||||
<string>automatic</string>
|
||||
|
||||
<key>teamID</key>
|
||||
<string>39R6U3437D</string>
|
||||
</dict>
|
||||
</plist>
|
||||
EOF
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Archive
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Creating Release archive..."
|
||||
|
||||
xcodebuild \
|
||||
-project "$PROJECT" \
|
||||
-scheme "$SCHEME" \
|
||||
-configuration Release \
|
||||
-destination "generic/platform=macOS" \
|
||||
-archivePath "$ARCHIVE_PATH" \
|
||||
clean archive
|
||||
|
||||
echo
|
||||
echo "==> Archive created."
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Export Developer ID application
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Exporting Developer ID application..."
|
||||
|
||||
xcodebuild \
|
||||
-exportArchive \
|
||||
-archivePath "$ARCHIVE_PATH" \
|
||||
-exportPath "$EXPORT_DIR" \
|
||||
-exportOptionsPlist "$EXPORT_OPTIONS"
|
||||
|
||||
APP_PATH="$EXPORT_DIR/$APP_NAME.app"
|
||||
|
||||
if [ ! -d "$APP_PATH" ]; then
|
||||
echo
|
||||
echo "ERROR: Exported application not found:"
|
||||
echo "$APP_PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Verify application signature
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Verifying application signature..."
|
||||
|
||||
codesign \
|
||||
--verify \
|
||||
--deep \
|
||||
--strict \
|
||||
--verbose=2 \
|
||||
"$APP_PATH"
|
||||
|
||||
echo
|
||||
echo "==> Signature information..."
|
||||
|
||||
codesign -dv --verbose=4 "$APP_PATH" 2>&1 | \
|
||||
grep -E "Identifier=|Authority=|TeamIdentifier=|Runtime Version=" || true
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Notarize application
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Creating notarization ZIP..."
|
||||
|
||||
APP_ZIP="$BUILD_DIR/$APP_NAME.zip"
|
||||
|
||||
ditto \
|
||||
-c \
|
||||
-k \
|
||||
--keepParent \
|
||||
"$APP_PATH" \
|
||||
"$APP_ZIP"
|
||||
|
||||
echo
|
||||
echo "==> Submitting application to Apple notarization..."
|
||||
|
||||
xcrun notarytool submit \
|
||||
"$APP_ZIP" \
|
||||
--keychain-profile "$NOTARY_PROFILE" \
|
||||
--wait
|
||||
|
||||
echo
|
||||
echo "==> Stapling notarization ticket to application..."
|
||||
|
||||
xcrun stapler staple "$APP_PATH"
|
||||
|
||||
echo
|
||||
echo "==> Validating application ticket..."
|
||||
|
||||
xcrun stapler validate "$APP_PATH"
|
||||
|
||||
echo
|
||||
echo "==> Gatekeeper application check..."
|
||||
|
||||
spctl \
|
||||
--assess \
|
||||
--type execute \
|
||||
--verbose=4 \
|
||||
"$APP_PATH"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Build DMG contents
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Preparing DMG..."
|
||||
|
||||
rm -rf "$DMG_STAGE"
|
||||
mkdir -p "$DMG_STAGE"
|
||||
|
||||
ditto "$APP_PATH" "$DMG_STAGE/$APP_NAME.app"
|
||||
|
||||
ln -s /Applications "$DMG_STAGE/Applications"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Create DMG
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Creating DMG..."
|
||||
|
||||
hdiutil create \
|
||||
-volname "$APP_NAME" \
|
||||
-srcfolder "$DMG_STAGE" \
|
||||
-ov \
|
||||
-format UDZO \
|
||||
"$DMG_PATH"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Sign DMG
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Signing DMG..."
|
||||
|
||||
codesign \
|
||||
--force \
|
||||
--timestamp \
|
||||
--sign "$SIGNING_IDENTITY" \
|
||||
"$DMG_PATH"
|
||||
|
||||
echo
|
||||
echo "==> Verifying DMG signature..."
|
||||
|
||||
codesign \
|
||||
--verify \
|
||||
--verbose=2 \
|
||||
"$DMG_PATH"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Notarize DMG
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Submitting DMG to Apple notarization..."
|
||||
|
||||
xcrun notarytool submit \
|
||||
"$DMG_PATH" \
|
||||
--keychain-profile "$NOTARY_PROFILE" \
|
||||
--wait
|
||||
|
||||
echo
|
||||
echo "==> Stapling notarization ticket to DMG..."
|
||||
|
||||
xcrun stapler staple "$DMG_PATH"
|
||||
|
||||
echo
|
||||
echo "==> Validating DMG ticket..."
|
||||
|
||||
xcrun stapler validate "$DMG_PATH"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Final verification
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Final Gatekeeper assessment..."
|
||||
|
||||
spctl \
|
||||
--assess \
|
||||
--type open \
|
||||
--context context:primary-signature \
|
||||
--verbose=4 \
|
||||
"$DMG_PATH" || true
|
||||
|
||||
echo
|
||||
echo "==> DMG information..."
|
||||
|
||||
ls -lh "$DMG_PATH"
|
||||
|
||||
echo
|
||||
echo "==> SHA-256..."
|
||||
|
||||
shasum -a 256 "$DMG_PATH"
|
||||
|
||||
echo
|
||||
echo "============================================================"
|
||||
echo " RELEASE BUILD COMPLETE"
|
||||
echo "============================================================"
|
||||
echo
|
||||
echo "DMG:"
|
||||
echo "$DMG_PATH"
|
||||
echo
|
||||
@@ -0,0 +1,200 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
APP_NAME="OrionToolbar"
|
||||
SCHEME="OrionToolbar"
|
||||
PROJECT="OrionToolbar.xcodeproj"
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
BUILD_DIR="$ROOT_DIR/.build"
|
||||
LOG_DIR="$ROOT_DIR/build-logs"
|
||||
|
||||
CONFIGURATION="Release"
|
||||
LAUNCH=false
|
||||
RUN_TESTS=true
|
||||
|
||||
for arg in "$@"; do
|
||||
case "$arg" in
|
||||
--launch)
|
||||
LAUNCH=true
|
||||
;;
|
||||
--no-tests)
|
||||
RUN_TESTS=false
|
||||
;;
|
||||
*)
|
||||
echo "Unknown argument: $arg"
|
||||
echo "Usage: $0 [--launch] [--no-tests]"
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
mkdir -p "$BUILD_DIR" "$LOG_DIR"
|
||||
|
||||
LOG_FILE="$LOG_DIR/build-test-$(date +%Y%m%d-%H%M%S).log"
|
||||
|
||||
exec > >(tee -a "$LOG_FILE") 2>&1
|
||||
|
||||
echo
|
||||
echo "============================================================"
|
||||
echo " ORION TOOLBAR - RELEASE BUILD AND TEST"
|
||||
echo "============================================================"
|
||||
echo
|
||||
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
echo "==> Environment"
|
||||
|
||||
xcodebuild -version
|
||||
swift --version
|
||||
|
||||
echo
|
||||
echo "==> Checking project"
|
||||
|
||||
test -d "$PROJECT" || {
|
||||
echo "ERROR: Xcode project not found."
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo
|
||||
echo "==> Checking Parallels"
|
||||
|
||||
PRLCTL=""
|
||||
|
||||
for candidate in \
|
||||
/usr/local/bin/prlctl \
|
||||
"/Applications/Parallels Desktop.app/Contents/MacOS/prlctl"
|
||||
do
|
||||
if [ -x "$candidate" ]; then
|
||||
PRLCTL="$candidate"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "$PRLCTL" ]; then
|
||||
echo "Parallels CLI: $PRLCTL"
|
||||
|
||||
echo
|
||||
echo "==> Discovering virtual machines"
|
||||
|
||||
"$PRLCTL" list -a -j | python3 -c '
|
||||
import json
|
||||
import sys
|
||||
|
||||
machines = json.load(sys.stdin)
|
||||
|
||||
print(f"Discovered {len(machines)} virtual machines")
|
||||
print()
|
||||
|
||||
for machine in machines:
|
||||
print(
|
||||
f"{machine.get('name', 'Unknown'):<35} "
|
||||
f"{machine.get('status', 'unknown'):<12} "
|
||||
f"{machine.get('uuid', '')}"
|
||||
)
|
||||
'
|
||||
else
|
||||
echo "WARNING: Parallels CLI not found."
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "==> Building Release configuration"
|
||||
|
||||
xcodebuild \
|
||||
-project "$PROJECT" \
|
||||
-scheme "$SCHEME" \
|
||||
-configuration "$CONFIGURATION" \
|
||||
-destination "generic/platform=macOS" \
|
||||
-derivedDataPath "$BUILD_DIR" \
|
||||
CODE_SIGNING_ALLOWED=NO \
|
||||
clean build
|
||||
|
||||
APP_PATH="$BUILD_DIR/Build/Products/$CONFIGURATION/$APP_NAME.app"
|
||||
|
||||
if [ ! -d "$APP_PATH" ]; then
|
||||
echo "ERROR: Built application not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "==> Validating application bundle"
|
||||
|
||||
plutil -lint "$APP_PATH/Contents/Info.plist"
|
||||
|
||||
echo
|
||||
echo "==> Application information"
|
||||
|
||||
defaults read "$APP_PATH/Contents/Info" \
|
||||
CFBundleIdentifier || true
|
||||
|
||||
defaults read "$APP_PATH/Contents/Info" \
|
||||
CFBundleShortVersionString || true
|
||||
|
||||
defaults read "$APP_PATH/Contents/Info" \
|
||||
CFBundleVersion || true
|
||||
|
||||
echo
|
||||
echo "==> Checking executable"
|
||||
|
||||
EXECUTABLE=$(
|
||||
/usr/libexec/PlistBuddy \
|
||||
-c "Print CFBundleExecutable" \
|
||||
"$APP_PATH/Contents/Info.plist"
|
||||
)
|
||||
|
||||
test -x "$APP_PATH/Contents/MacOS/$EXECUTABLE"
|
||||
|
||||
file "$APP_PATH/Contents/MacOS/$EXECUTABLE"
|
||||
|
||||
echo
|
||||
echo "==> Checking available test targets"
|
||||
|
||||
if [ "$RUN_TESTS" = true ]; then
|
||||
|
||||
TEST_OUTPUT="$LOG_DIR/test-targets.txt"
|
||||
|
||||
xcodebuild \
|
||||
-list \
|
||||
-project "$PROJECT" > "$TEST_OUTPUT"
|
||||
|
||||
if grep -Eq '^[[:space:]]+.*Tests$' "$TEST_OUTPUT"; then
|
||||
|
||||
echo "Test targets detected."
|
||||
|
||||
xcodebuild \
|
||||
-project "$PROJECT" \
|
||||
-scheme "$SCHEME" \
|
||||
-configuration "$CONFIGURATION" \
|
||||
-destination "platform=macOS" \
|
||||
-derivedDataPath "$BUILD_DIR" \
|
||||
CODE_SIGNING_ALLOWED=NO \
|
||||
test
|
||||
|
||||
else
|
||||
echo "No test targets detected; skipping XCTest."
|
||||
fi
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "==> Build size"
|
||||
|
||||
du -sh "$APP_PATH"
|
||||
|
||||
if [ "$LAUNCH" = true ]; then
|
||||
echo
|
||||
echo "==> Launching OrionToolbar"
|
||||
|
||||
open "$APP_PATH"
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "============================================================"
|
||||
echo " BUILD AND TEST COMPLETE"
|
||||
echo "============================================================"
|
||||
echo
|
||||
echo "Application:"
|
||||
echo "$APP_PATH"
|
||||
echo
|
||||
echo "Log:"
|
||||
echo "$LOG_FILE"
|
||||
echo
|
||||
@@ -0,0 +1,318 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# ============================================================
|
||||
# OrionToolbar - Developer ID Release
|
||||
# ============================================================
|
||||
|
||||
APP_NAME="OrionToolbar"
|
||||
SCHEME="OrionToolbar"
|
||||
PROJECT="OrionToolbar.xcodeproj"
|
||||
|
||||
SIGNING_IDENTITY="B99D353C88996866C49E4389B375645F76870A3F"
|
||||
TEAM_ID="39R6U3437D"
|
||||
NOTARY_PROFILE="orion-notary"
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
|
||||
BUILD_DIR="$ROOT_DIR/build"
|
||||
LOG_DIR="$ROOT_DIR/build-logs"
|
||||
|
||||
ARCHIVE_PATH="$BUILD_DIR/$APP_NAME.xcarchive"
|
||||
EXPORT_DIR="$BUILD_DIR/export"
|
||||
DMG_STAGE="$BUILD_DIR/dmg"
|
||||
|
||||
DMG_PATH="$ROOT_DIR/$APP_NAME.dmg"
|
||||
EXPORT_OPTIONS="$BUILD_DIR/ExportOptions.plist"
|
||||
|
||||
mkdir -p "$LOG_DIR"
|
||||
|
||||
LOG_FILE="$LOG_DIR/release-$(date +%Y%m%d-%H%M%S).log"
|
||||
|
||||
exec > >(tee -a "$LOG_FILE") 2>&1
|
||||
|
||||
echo
|
||||
echo "============================================================"
|
||||
echo " ORION TOOLBAR - DIRECT DISTRIBUTION"
|
||||
echo "============================================================"
|
||||
echo
|
||||
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Prerequisites
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo "==> Checking signing identity"
|
||||
|
||||
security find-identity -v -p codesigning
|
||||
|
||||
if ! security find-identity -v -p codesigning | \
|
||||
grep -q "$SIGNING_IDENTITY"; then
|
||||
|
||||
echo "ERROR: Developer ID signing identity unavailable."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "==> Checking notarization profile"
|
||||
|
||||
xcrun notarytool history \
|
||||
--keychain-profile "$NOTARY_PROFILE" \
|
||||
>/dev/null
|
||||
|
||||
echo "Notarization profile available."
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Clean
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Cleaning previous release"
|
||||
|
||||
rm -rf "$BUILD_DIR"
|
||||
rm -f "$DMG_PATH"
|
||||
|
||||
mkdir -p \
|
||||
"$BUILD_DIR" \
|
||||
"$EXPORT_DIR" \
|
||||
"$DMG_STAGE"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Export options
|
||||
# ------------------------------------------------------------
|
||||
|
||||
cat > "$EXPORT_OPTIONS" <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
|
||||
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"\>
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>method</key>
|
||||
<string>developer-id</string>
|
||||
|
||||
<key>signingStyle</key>
|
||||
<string>automatic</string>
|
||||
|
||||
<key>teamID</key>
|
||||
<string>$TEAM_ID</string>
|
||||
</dict>
|
||||
</plist>
|
||||
EOF
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Archive
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Creating Release archive"
|
||||
|
||||
xcodebuild \
|
||||
-project "$PROJECT" \
|
||||
-scheme "$SCHEME" \
|
||||
-configuration Release \
|
||||
-destination "generic/platform=macOS" \
|
||||
-archivePath "$ARCHIVE_PATH" \
|
||||
clean archive
|
||||
|
||||
echo
|
||||
echo "==> Archive created"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Export
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Exporting Developer ID application"
|
||||
|
||||
xcodebuild \
|
||||
-exportArchive \
|
||||
-archivePath "$ARCHIVE_PATH" \
|
||||
-exportPath "$EXPORT_DIR" \
|
||||
-exportOptionsPlist "$EXPORT_OPTIONS"
|
||||
|
||||
APP_PATH="$EXPORT_DIR/$APP_NAME.app"
|
||||
|
||||
if [ ! -d "$APP_PATH" ]; then
|
||||
echo "ERROR: Exported application not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Verify signature
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Verifying application signature"
|
||||
|
||||
codesign \
|
||||
--verify \
|
||||
--deep \
|
||||
--strict \
|
||||
--verbose=2 \
|
||||
"$APP_PATH"
|
||||
|
||||
echo
|
||||
echo "==> Checking signing team"
|
||||
|
||||
ACTUAL_TEAM=$(
|
||||
codesign -dv --verbose=4 "$APP_PATH" 2>&1 |
|
||||
sed -n 's/^TeamIdentifier=//p'
|
||||
)
|
||||
|
||||
if [ "$ACTUAL_TEAM" != "$TEAM_ID" ]; then
|
||||
echo "ERROR: Incorrect signing team: $ACTUAL_TEAM"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Signing team verified: $ACTUAL_TEAM"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Notarize application
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Creating notarization ZIP"
|
||||
|
||||
APP_ZIP="$BUILD_DIR/$APP_NAME.zip"
|
||||
|
||||
ditto \
|
||||
-c \
|
||||
-k \
|
||||
--keepParent \
|
||||
"$APP_PATH" \
|
||||
"$APP_ZIP"
|
||||
|
||||
echo
|
||||
echo "==> Notarizing application"
|
||||
|
||||
xcrun notarytool submit \
|
||||
"$APP_ZIP" \
|
||||
--keychain-profile "$NOTARY_PROFILE" \
|
||||
--wait
|
||||
|
||||
echo
|
||||
echo "==> Stapling application"
|
||||
|
||||
xcrun stapler staple "$APP_PATH"
|
||||
|
||||
echo
|
||||
echo "==> Validating application ticket"
|
||||
|
||||
xcrun stapler validate "$APP_PATH"
|
||||
|
||||
echo
|
||||
echo "==> Gatekeeper application verification"
|
||||
|
||||
spctl \
|
||||
--assess \
|
||||
--type execute \
|
||||
--verbose=4 \
|
||||
"$APP_PATH"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Prepare DMG
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Preparing DMG"
|
||||
|
||||
rm -rf "$DMG_STAGE"
|
||||
mkdir -p "$DMG_STAGE"
|
||||
|
||||
ditto "$APP_PATH" "$DMG_STAGE/$APP_NAME.app"
|
||||
|
||||
ln -s /Applications "$DMG_STAGE/Applications"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Create DMG
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Creating DMG"
|
||||
|
||||
hdiutil create \
|
||||
-volname "$APP_NAME" \
|
||||
-srcfolder "$DMG_STAGE" \
|
||||
-ov \
|
||||
-format UDZO \
|
||||
"$DMG_PATH"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Sign DMG
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Signing DMG"
|
||||
|
||||
codesign \
|
||||
--force \
|
||||
--timestamp \
|
||||
--sign "$SIGNING_IDENTITY" \
|
||||
"$DMG_PATH"
|
||||
|
||||
echo
|
||||
echo "==> Verifying DMG signature"
|
||||
|
||||
codesign \
|
||||
--verify \
|
||||
--verbose=2 \
|
||||
"$DMG_PATH"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Notarize DMG
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Notarizing DMG"
|
||||
|
||||
xcrun notarytool submit \
|
||||
"$DMG_PATH" \
|
||||
--keychain-profile "$NOTARY_PROFILE" \
|
||||
--wait
|
||||
|
||||
echo
|
||||
echo "==> Stapling DMG"
|
||||
|
||||
xcrun stapler staple "$DMG_PATH"
|
||||
|
||||
echo
|
||||
echo "==> Validating DMG ticket"
|
||||
|
||||
xcrun stapler validate "$DMG_PATH"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Final verification
|
||||
# ------------------------------------------------------------
|
||||
|
||||
echo
|
||||
echo "==> Final Gatekeeper verification"
|
||||
|
||||
spctl \
|
||||
--assess \
|
||||
--type open \
|
||||
--context context:primary-signature \
|
||||
--verbose=4 \
|
||||
"$DMG_PATH"
|
||||
|
||||
echo
|
||||
echo "==> Final DMG information"
|
||||
|
||||
ls -lh "$DMG_PATH"
|
||||
|
||||
echo
|
||||
echo "==> SHA-256"
|
||||
|
||||
shasum -a 256 "$DMG_PATH"
|
||||
|
||||
echo
|
||||
echo "============================================================"
|
||||
echo " RELEASE BUILD COMPLETE"
|
||||
echo "============================================================"
|
||||
echo
|
||||
echo "DMG:"
|
||||
echo "$DMG_PATH"
|
||||
echo
|
||||
echo "Build log:"
|
||||
echo "$LOG_FILE"
|
||||
echo
|
||||