mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
parent
777e8a26df
commit
eaf5f19362
|
@ -17,23 +17,38 @@ build:
|
||||||
dependencies:
|
dependencies:
|
||||||
rust-lang.org: '>=1.56'
|
rust-lang.org: '>=1.56'
|
||||||
rust-lang.org/cargo: '*'
|
rust-lang.org/cargo: '*'
|
||||||
linux:
|
|
||||||
gnu.org/make: '*'
|
|
||||||
script:
|
script:
|
||||||
# raccoin doesn't provide any testability without
|
# raccoin doesn't provide any testability without
|
||||||
# a UI, so we add some
|
# a UI, so we add some
|
||||||
- run: |
|
- run: |
|
||||||
sed -i.bak \
|
sed -i \
|
||||||
-e'1a\
|
-e'1a\
|
||||||
const VERSION: &str = "{{version}}";' \
|
const VERSION: &str = "{{version}}";' \
|
||||||
|
main.rs
|
||||||
|
working-directory: src
|
||||||
|
- run: |
|
||||||
|
sed -i \
|
||||||
-e'/let portfolio_file: PathBuf = portfolio_file.into();/i\
|
-e'/let portfolio_file: PathBuf = portfolio_file.into();/i\
|
||||||
if portfolio_file == "--version" {\
|
if portfolio_file == "--version" {\
|
||||||
println!("raccoin v{VERSION}");\
|
println!("raccoin v{VERSION}");\
|
||||||
return Ok(());\
|
return Ok(());\
|
||||||
}' \
|
}' \
|
||||||
main.rs
|
main.rs
|
||||||
rm main.rs.bak
|
if: '<0.2.0'
|
||||||
working-directory: src
|
working-directory: src
|
||||||
|
- run: |
|
||||||
|
sed -i \
|
||||||
|
-e'/let Some(portfolio_file)/i\
|
||||||
|
if let Some(arg1) = env::args_os().nth(1) {\
|
||||||
|
if arg1 == "--version" {\
|
||||||
|
println!("raccoin v{VERSION}");\
|
||||||
|
return Ok(());\
|
||||||
|
}\
|
||||||
|
}' \
|
||||||
|
main.rs
|
||||||
|
if: '>=0.2.0'
|
||||||
|
working-directory: src
|
||||||
|
|
||||||
- cargo install --locked --path . --root {{prefix}}
|
- cargo install --locked --path . --root {{prefix}}
|
||||||
env:
|
env:
|
||||||
linux:
|
linux:
|
||||||
|
|
Loading…
Reference in a new issue