Skip to content

Commit bb7d035

Browse files
author
Felix Obenhuber
committed
Fix install script
1 parent 5435b20 commit bb7d035

File tree

5 files changed

+5
-14
lines changed

5 files changed

+5
-14
lines changed

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test_script:
3333
cargo build --target %TARGET% &&
3434
cargo build --target %TARGET% --release &&
3535
cargo test --target %TARGET% &&
36-
cargo test --target %TARGET% --release &&
36+
cargo test --target %TARGET% --release
3737
)
3838

3939
before_deploy:

ci/before_deploy.ps1

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This script takes care of packaging the build artifacts that will go in the
2-
# release zipfile
3-
41
$SRC_DIR = $PWD.Path
52
$STAGE = [System.Guid]::NewGuid().ToString()
63

@@ -10,8 +7,7 @@ Set-Location $STAGE
107

118
$ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).zip"
129

13-
# TODO Update this to package the right artifacts
14-
Copy-Item "$SRC_DIR\target\$($Env:TARGET)\release\hello.exe" '.\'
10+
Copy-Item "$SRC_DIR\target\$($Env:TARGET)\release\rogcat.exe" '.\'
1511

1612
7z a "$ZIP" *
1713

ci/before_deploy.sh

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This script takes care of building your crate and packaging it for release
2-
31
set -ex
42

53
main() {
@@ -17,11 +15,9 @@ main() {
1715

1816
test -f Cargo.lock || cargo generate-lockfile
1917

20-
# TODO Update this to build the artifacts that matter to you
21-
cross rustc --bin hello --target $TARGET --release -- -C lto
18+
cross rustc --bin rogcat --target $TARGET --release -- -C lto
2219

23-
# TODO Update this to package the right artifacts
24-
cp target/$TARGET/release/hello $stage/
20+
cp target/$TARGET/release/rogcat $stage/
2521

2622
cd $stage
2723
tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *

ci/script.sh

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
set -ex
44

5-
# TODO This is the "test phase", tweak it as you see fit
65
main() {
76
cross build --target $TARGET
87
cross build --target $TARGET --release

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fn build_cli() -> App<'static, 'static> {
133133
'enumerate' will append a file sequence number after the filename passed with '-o' option whenever a new file is \
134134
created (see 'records-per-file' option). 'date' will prefix the output filename with the current local date \
135135
when a new file is created"))
136-
.arg(Arg::with_name("TERMINAL_FORMAT")
136+
.arg(Arg::new("TERMINAL_FORMAT")
137137
.long("terminal-format")
138138
.short("e")
139139
.takes_value(true)

0 commit comments

Comments
 (0)