Add crt-static to rustflags to remove need for VC++ runtime for Windows
users
This commit is contained in:
parent
c084a94138
commit
ddd1921deb
2 changed files with 2 additions and 1 deletions
|
|
@ -12,7 +12,6 @@ interface or as a library in other Rust programs.
|
||||||
## Installing
|
## Installing
|
||||||
|
|
||||||
Oxipng can be downloaded from the [Releases](https://github.com/shssoichiro/oxipng/releases) link on the GitHub page.
|
Oxipng can be downloaded from the [Releases](https://github.com/shssoichiro/oxipng/releases) link on the GitHub page.
|
||||||
Windows users will need to ensure they have the [Visual C++ 2015 Runtime](https://www.microsoft.com/en-us/download/details.aspx?id=48145) installed.
|
|
||||||
|
|
||||||
Oxipng can also be installed from Cargo, via the following command:
|
Oxipng can also be installed from Cargo, via the following command:
|
||||||
```
|
```
|
||||||
|
|
@ -74,6 +73,7 @@ passing it, along with an input filename, into the
|
||||||
|
|
||||||
Oxipng began as a complete rewrite of the OptiPNG project,
|
Oxipng began as a complete rewrite of the OptiPNG project,
|
||||||
which was assumed to be dead as no commit had been made to it since March 2014.
|
which was assumed to be dead as no commit had been made to it since March 2014.
|
||||||
|
(OptiPNG has since released a new version, after Oxipng was first released.)
|
||||||
The name has been changed to avoid confusion and potential legal issues.
|
The name has been changed to avoid confusion and potential legal issues.
|
||||||
|
|
||||||
The core goal of rewriting OptiPNG was to implement multithreading,
|
The core goal of rewriting OptiPNG was to implement multithreading,
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ test_script:
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
# Generate artifacts for release
|
# Generate artifacts for release
|
||||||
|
- SET RUSTFLAGS=-C target-feature=+crt-static
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
- mkdir staging
|
- mkdir staging
|
||||||
- copy target\release\oxipng.exe staging
|
- copy target\release\oxipng.exe staging
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue