Update MdView link
This commit is contained in:
parent
f7fc2e4b94
commit
21d17514da
10
README.md
10
README.md
@ -14,7 +14,7 @@ MdView recursively renders the parent directory of the user-provided file and se
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Simply execute MdView with the path of the Markdown file you wish to view:
|
Execute MdView with the path of the Markdown file you wish to view:
|
||||||
```
|
```
|
||||||
mdview path/to/file.md
|
mdview path/to/file.md
|
||||||
```
|
```
|
||||||
@ -26,11 +26,3 @@ Parameters:
|
|||||||
-port int
|
-port int
|
||||||
port (default 8080)
|
port (default 8080)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
If you already have the Go environment and toolchain set up, you can get the latest version by running:
|
|
||||||
```
|
|
||||||
go install foosoft.net/projects/mdview@latest
|
|
||||||
```
|
|
||||||
Otherwise, you can use the [pre-built binaries](https://github.com/FooSoft/mdview/releases) from the project page.
|
|
||||||
|
22
build.sh
22
build.sh
@ -1,22 +0,0 @@
|
|||||||
#!/usr/bin/bash
|
|
||||||
|
|
||||||
rm -rf ./build
|
|
||||||
export GOARCH=amd64
|
|
||||||
|
|
||||||
export GOOS=windows
|
|
||||||
go build -o ./build/$GOOS/mdview/ .
|
|
||||||
pushd build/$GOOS
|
|
||||||
7za a mdview.$GOOS.zip mdview
|
|
||||||
popd
|
|
||||||
|
|
||||||
export GOOS=linux
|
|
||||||
go build -o ./build/$GOOS/mdview/ .
|
|
||||||
pushd build/$GOOS
|
|
||||||
tar czvf mdview.$GOOS.tar.gz mdview
|
|
||||||
popd
|
|
||||||
|
|
||||||
export GOOS=darwin
|
|
||||||
go build -o ./build/$GOOS/mdview/ .
|
|
||||||
pushd build/$GOOS
|
|
||||||
tar czvf mdview.$GOOS.tar.gz mdview
|
|
||||||
popd
|
|
Loading…
Reference in New Issue
Block a user