Skip to content

Commit 94ad50f

Browse files
committed
Add support for Homebrew
1 parent 0b4c941 commit 94ad50f

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

FigmaExport.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = "FigmaExport"
3-
spec.version = "0.8.3"
3+
spec.version = "0.9.2"
44
spec.summary = "Command line utility to export colors, icons and images from Figma to Xcode / Android Studio project."
55
spec.homepage = "https://github.com/RedMadRobot/figma-export"
66
spec.license = { type: "MIT", file: "LICENSE" }

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ Images will be exported to `drawable` and `drawable-night` directory as vector x
102102
### Manual
103103
[Download](https://github.com/RedMadRobot/figma-export/releases) latest release and read [Usage](#usage)
104104

105+
### Homebrew
106+
```
107+
brew install subdan/tools/figma-export
108+
```
109+
105110
### CocoaPods + Fastlane
106111
Add the following line to your Podfile:
107112
```ruby

Sources/FigmaExport/Output/FileConverter.swift

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ final class FileConverter {
55

66
func convert(inputDirectoryPath: String) throws {
77
let task = Process()
8-
#if DEBUG
9-
task.executableURL = URL(fileURLWithPath: "/Users/d.subbotin/Documents/projects/figma-export/Release/vd-tool/bin/vd-tool")
10-
#else
11-
task.executableURL = URL(fileURLWithPath: "./vd-tool/bin/vd-tool")
12-
#endif
8+
task.executableURL = URL(fileURLWithPath: "/usr/local/bin/vd-tool")
139
task.arguments = ["-c", "-in", inputDirectoryPath]
14-
try task.run()
10+
do {
11+
try task.run()
12+
} catch {
13+
task.executableURL = URL(fileURLWithPath: "./vd-tool/bin/vd-tool")
14+
try task.run()
15+
}
1516
task.waitUntilExit()
1617
}
1718
}

0 commit comments

Comments
 (0)