Skip to content

Commit

Permalink
Improvements for homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanhruda committed Mar 29, 2015
1 parent c32e6dc commit 18bcc50
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Packaging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ func packageApp(appPath: String, deviceIdentifier: String) {
|> flatMap(validateFileExistence)

if let validPath = validPath {
system("xcodebuild -project app-package-launcher/app-package-launcher.xcodeproj \"PACKAGED_APP=\(validPath)\"")
system("mv app-package-launcher/build/Release/app-package-launcher.app \"App Installer.app\"")
system("rm -rf app-package-launcher/build")
println("App packaged to App Installer.app")
let share = "/usr/local/share/"
system("xcodebuild -project \(share)app-package-launcher/app-package-launcher.xcodeproj \"PACKAGED_APP=\(validPath)\" > /dev/null")
system("rm -rf \"App Installer.app\"")
system("mv \(share)app-package-launcher/build/Release/app-package-launcher.app \"App Installer.app\"")
system("rm -rf \(share)app-package-launcher/build")
println("App successfully packaged to \"App Installer.app\"")
} else {
fatalError("Provided .app not found at \(appPath)")
println("Provided .app not found at \"\(appPath)\"")
}
}

Expand Down

0 comments on commit 18bcc50

Please sign in to comment.