Add crt-static to rustflags to remove need for VC++ runtime for Windows

users
This commit is contained in:
Josh Holmer 2017-09-11 19:11:46 -04:00
parent c084a94138
commit 0a4f28de76
2 changed files with 6 additions and 5 deletions

View file

@ -12,7 +12,6 @@ interface or as a library in other Rust programs.
## Installing
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:
```
@ -74,6 +73,7 @@ passing it, along with an input filename, into the
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.
(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 core goal of rewriting OptiPNG was to implement multithreading,

View file

@ -30,6 +30,7 @@ test_script:
before_deploy:
# Generate artifacts for release
- SET RUSTFLAGS=-C target-feature=+crt-static
- cargo build --release
- mkdir staging
- copy target\release\oxipng.exe staging
@ -54,8 +55,8 @@ deploy:
# channel to use to produce the release artifacts
# NOTE make sure you only release *once* per target
CHANNEL: stable
appveyor_repo_tag: true
# appveyor_repo_tag: true
branches:
only:
- master
#branches:
# only:
# - master