diff --git a/Cargo.lock b/Cargo.lock index d105ee5..d5b0ef7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -329,7 +329,7 @@ dependencies = [ [[package]] name = "yj" -version = "0.7.16" +version = "0.7.17" dependencies = [ "failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.35 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 496bff6..e03784c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yj" -version = "0.7.16" +version = "0.7.17" authors = ["Bruce Adams "] categories = ["command-line-utilities"] diff --git a/Dockerfile b/Dockerfile index 40e122f..bfe2727 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM scratch -COPY target/yj.linux /yj +COPY target/x86_64-unknown-linux-musl/release/yj / ENTRYPOINT [ "/yj" ] diff --git a/README.md b/README.md index 52ff70d..0644f84 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Simple command line tool to convert a YAML input file into a JSON output file. ```bash $ yj --help -yj 0.7.16 +yj 0.7.17 Bruce Adams Read YAML, write JSON diff --git a/release-build.sh b/release-build.sh index e2ff86e..9f2913f 100755 --- a/release-build.sh +++ b/release-build.sh @@ -10,14 +10,14 @@ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=clang++ rustup target add x86_64-unknown-linux-musl cargo build --release --target x86_64-unknown-linux-musl - mv -f "target/x86_64-unknown-linux-musl/release/$BINARY" "target/$BINARY.linux" + cp -fp "target/x86_64-unknown-linux-musl/release/$BINARY" "target/$BINARY.linux" elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cargo build --release - mv -f "target/release/$BINARY" "target/$BINARY.macos" + cp -fp "target/release/$BINARY" "target/$BINARY.macos" elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then cargo build --release - mv -f "target/release/$BINARY.exe" "target" + cp -fp "target/release/$BINARY.exe" "target" else cargo build --release - mv -f "target/release/$BINARY" "target/$BINARY.$TRAVIS_OS_NAME" + cp -fp "target/release/$BINARY" "target/$BINARY.$TRAVIS_OS_NAME" fi