浏览代码

Use better launch path for CLI

master
Matt Baer 6 年前
父节点
当前提交
7539da8e1f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      writeas/ViewController.swift

+ 1
- 1
writeas/ViewController.swift 查看文件

@@ -98,7 +98,7 @@ class ViewController: NSViewController, NSTextViewDelegate, NSUserNotificationCe

DispatchQueue.global(qos: .background).async {
let task = Process()
task.launchPath = Bundle.main.executablePath! + "/../../Resources/writeas"
task.launchPath = Bundle.main.resourcePath! + "/writeas"
task.arguments = ["--font", Preferences.getFont().rawValue]
let pipe = Pipe()
task.standardInput = pipe


正在加载...
取消
保存