File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
Sources/FigmaExport/Output Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |spec |
2
2
spec . name = "FigmaExport"
3
- spec . version = "0.8.3 "
3
+ spec . version = "0.9.2 "
4
4
spec . summary = "Command line utility to export colors, icons and images from Figma to Xcode / Android Studio project."
5
5
spec . homepage = "https://github.com/RedMadRobot/figma-export"
6
6
spec . license = { type : "MIT" , file : "LICENSE" }
Original file line number Diff line number Diff line change @@ -102,6 +102,11 @@ Images will be exported to `drawable` and `drawable-night` directory as vector x
102
102
### Manual
103
103
[ Download] ( https://github.com/RedMadRobot/figma-export/releases ) latest release and read [ Usage] ( #usage )
104
104
105
+ ### Homebrew
106
+ ```
107
+ brew install subdan/tools/figma-export
108
+ ```
109
+
105
110
### CocoaPods + Fastlane
106
111
Add the following line to your Podfile:
107
112
``` ruby
Original file line number Diff line number Diff line change @@ -5,13 +5,14 @@ final class FileConverter {
5
5
6
6
func convert( inputDirectoryPath: String ) throws {
7
7
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 " )
13
9
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
+ }
15
16
task. waitUntilExit ( )
16
17
}
17
18
}
You can’t perform that action at this time.
0 commit comments