• 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

Revision671c493cec7ea75da1100a90e125581627ac5caf (tree)
Zeit2018-05-25 22:38:05
Autormasakih <masakih@user...>
Commitermasakih

Log Message

書式を合わせた

Ändern Zusammenfassung

Diff

--- a/AppBuilderWithGit/ApplicationDirecrories.swift
+++ b/AppBuilderWithGit/ApplicationDirecrories.swift
@@ -48,7 +48,6 @@ func createDirectory(_ url: URL) -> Bool {
4848 } catch {
4949
5050 return false
51-
5251 }
5352 }
5453
--- a/AppBuilderWithGit/BuildInfo.swift
+++ b/AppBuilderWithGit/BuildInfo.swift
@@ -39,13 +39,11 @@ struct BuildInfo {
3939
4040 init?(projectURL: URL) {
4141
42- guard let projectFileURL = find(in: projectURL)
43- else { return nil }
42+ guard let projectFileURL = find(in: projectURL) else { return nil }
4443
4544 self.projectURL = projectURL
4645
47- guard let type = ProjectType(projectFileURL: projectFileURL)
48- else { return nil }
46+ guard let type = ProjectType(projectFileURL: projectFileURL) else { return nil }
4947
5048 switch type {
5149
--- a/AppBuilderWithGit/LogStocker.swift
+++ b/AppBuilderWithGit/LogStocker.swift
@@ -25,7 +25,6 @@ private func nameWithDate(_ name: String) -> String {
2525 formatter.dateFormat = "yyyy-MM-dd-HH-mm-ss-A"
2626
2727 return formatter.string(from: Date()) + "-" + name
28-
2928 }
3029
3130 final class LogStocker {
@@ -36,8 +35,7 @@ final class LogStocker {
3635
3736 do {
3837
39- let datename = nameWithDate(name)
40- guard let url = fileURL(for: datename) else { return nil }
38+ guard let url = fileURL(for: nameWithDate(name)) else { return nil }
4139
4240 try Data().write(to: url)
4341
--- a/AppBuilderWithGit/ProjectFinder.swift
+++ b/AppBuilderWithGit/ProjectFinder.swift
@@ -30,6 +30,7 @@ func findFile(pattern: String, in url: URL, depth: Int = 1) -> URL? {
3030 guard let contents = try? FileManager.default.contentsOfDirectory(at: url,
3131 includingPropertiesForKeys: [.isDirectoryKey])
3232 else {
33+
3334 return nil
3435 }
3536
--- a/AppBuilderWithGit/String-extensions.swift
+++ b/AppBuilderWithGit/String-extensions.swift
@@ -13,6 +13,7 @@ extension String {
1313 func match(_ pattern: String, options: NSRegularExpression.Options = []) -> Bool {
1414
1515 guard let regex = try? NSRegularExpression(pattern: pattern, options: options) else {
16+
1617 return false
1718 }
1819