diff --git a/.gitignore b/.gitignore index 91e1781..fdc7bb6 100644 --- a/.gitignore +++ b/.gitignore @@ -101,4 +101,5 @@ fastlane/test_output # End of https://www.gitignore.io/api/swift,osx /fengniao.sketch -.swiftpm \ No newline at end of file +.swiftpm +.vscode diff --git a/README.md b/README.md index 55c3fdb..42b747b 100644 --- a/README.md +++ b/README.md @@ -19,22 +19,29 @@ FengNiao is a simple command-line util to deleting unused image resource files f ### Install -You need Swift Package Manager (as well as swift compiler) installed in your macOS; generally you are prepared if you have the latest Xcode installed. +#### Mint + +[Mint](https://github.com/yonaskolb/Mint) is a tool that installs and runs Swift command line tool packages. Make sure +you have Xcode installed, then: + +```sh +> brew install mint +> mint install onevcat/fengniao +``` #### Compile from source ```bash > git clone https://github.com/onevcat/FengNiao.git > cd FengNiao -> ./install.sh +> swift build -c release + +# Then copy the executable to your PATH, such as `/usr/local/bin` +> sudo cp .build/release/FengNiao /usr/local/bin/fengniao ``` FengNiao should be compiled, tested and installed into the `/usr/local/bin`. -#### Homebrew - -You may want to install in from Homebrew. But for now it is not supported. - ### Usage Just navigate to your project folder, then: diff --git a/Sources/FengNiao/main.swift b/Sources/FengNiao/main.swift index 5bd7d8b..242458d 100644 --- a/Sources/FengNiao/main.swift +++ b/Sources/FengNiao/main.swift @@ -29,7 +29,7 @@ import Rainbow import FengNiaoKit import PathKit -let appVersion = "0.7.0" +let appVersion = "0.8.1" #if os(Linux) let EX_OK: Int32 = 0