Skip to content

Commit

Permalink
Add support for Homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
subdan committed Jun 22, 2020
1 parent 0b4c941 commit 94ad50f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion FigmaExport.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "FigmaExport"
spec.version = "0.8.3"
spec.version = "0.9.2"
spec.summary = "Command line utility to export colors, icons and images from Figma to Xcode / Android Studio project."
spec.homepage = "https://github.com/RedMadRobot/figma-export"
spec.license = { type: "MIT", file: "LICENSE" }
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ Images will be exported to `drawable` and `drawable-night` directory as vector x
### Manual
[Download](https://github.com/RedMadRobot/figma-export/releases) latest release and read [Usage](#usage)

### Homebrew
```
brew install subdan/tools/figma-export
```

### CocoaPods + Fastlane
Add the following line to your Podfile:
```ruby
Expand Down
13 changes: 7 additions & 6 deletions Sources/FigmaExport/Output/FileConverter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ final class FileConverter {

func convert(inputDirectoryPath: String) throws {
let task = Process()
#if DEBUG
task.executableURL = URL(fileURLWithPath: "/Users/d.subbotin/Documents/projects/figma-export/Release/vd-tool/bin/vd-tool")
#else
task.executableURL = URL(fileURLWithPath: "./vd-tool/bin/vd-tool")
#endif
task.executableURL = URL(fileURLWithPath: "/usr/local/bin/vd-tool")
task.arguments = ["-c", "-in", inputDirectoryPath]
try task.run()
do {
try task.run()
} catch {
task.executableURL = URL(fileURLWithPath: "./vd-tool/bin/vd-tool")
try task.run()
}
task.waitUntilExit()
}
}

0 comments on commit 94ad50f

Please sign in to comment.