Run_On_macOS

运行 — macOS 版”运行”对话框

Windows 风格 Run 对话框的 macOS 实现:无边框浮动窗口,全局快捷键 ⌥R 呼出, 输入路径/命令即可运行,支持历史记录下拉、浏览选择文件等。

功能

构建

需要 macOS + Xcode 命令行工具(swiftc)。

bash build.sh

构建产物为当前目录下的 运行.app(本地 ad-hoc 签名,无需开发者证书), 直接 open 运行.app 或拖入应用程序文件夹即可使用。

目录结构

运行源码/
├── main.swift        # Swift 主程序(窗口/热键/桥接/历史记录)
├── Run.html          # 界面(WKWebView 加载,与 Swift 通过 runBridge 通信)
├── Info.plist        # 应用配置(Bundle ID: com.local.run)
├── AppIcon.icns      # 应用图标
├── icons.iconset/    # 图标源文件
└── build.sh          # 一键构建脚本

说明