• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

gitリポジトリのurlを貼り付けるだけでアプリケーションのビルドを実行するアプリ。 macOS用


Commit MetaInfo

Revision23673ce76df7894974a7edfe72887669f9c8f2f3 (tree)
Time2017-08-12 17:23:12
Authormasakih <masakih@user...>
Commitermasakih

Log Message

AppDelegateの取得方法を変更

Change Summary

Incremental Difference

--- a/AppBuilderWithGit/Git.swift
+++ b/AppBuilderWithGit/Git.swift
@@ -70,7 +70,7 @@ final class Git {
7070
7171 private func excuteGit(workingURL: URL, args: [String]) throws {
7272
73- let xcodeURL = (NSApplication.shared().delegate as! AppDelegate).xcodeURL
73+ let xcodeURL = NSApplication.appDelegate.xcodeURL
7474 guard let builderURL = xcodeURL?.appendingPathComponent("/Contents/Developer/usr/bin/git") else {
7575
7676 throw GitError.other("git is not found.")
--- a/AppBuilderWithGit/ProjectBuilder.swift
+++ b/AppBuilderWithGit/ProjectBuilder.swift
@@ -37,7 +37,7 @@ final class ProjectBuilder {
3737
3838 func build() throws {
3939
40- let xcodeURL = (NSApplication.shared().delegate as! AppDelegate).xcodeURL
40+ let xcodeURL = NSApplication.appDelegate.xcodeURL
4141 guard let builderURL = xcodeURL?.appendingPathComponent("/Contents/Developer/usr/bin/xcodebuild") else {
4242
4343 throw ProjectBuilderError.commandNotFound