Skip to content

Commit

Permalink
Merge branch 'pin-toml-echo'
Browse files Browse the repository at this point in the history
This pins toml-echo cargo package version for a more stable build
process.

#25
  • Loading branch information
x1ddos committed May 20, 2021
2 parents 0092697 + a20047f commit 709e426
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bitbox-bridge/release/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ RUN rustup target add aarch64-apple-darwin

##############################
# toml-echo is a tool for echoing toml variables (like the package.version)
RUN CARGO_HOME=/opt/cargo cargo install toml-echo
RUN CARGO_HOME=/opt/cargo cargo install --version 0.3.0 toml-echo


##############################
Expand Down
1 change: 1 addition & 0 deletions bitbox-bridge/release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Packages (deb/rpm/tar.gz2) will be created without further work.
* Run `package.cmd`

## OSX
* Install "toml-echo", `cargo install --version 0.3.0 toml-echo`.
* Copy the whole project to an OSX machine
* Run `bitbox-bridge/release/darwin/package.sh`

Expand Down
3 changes: 0 additions & 3 deletions bitbox-bridge/release/darwin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ CARGO_HOME=/tmp/cargo \
TARGET_CC=aarch64-apple-darwin20.2-clang \
cargo build --target aarch64-apple-darwin --release

NAME=BitBoxBridge
VERSION=$(toml-echo bitbox-bridge/Cargo.toml package.version)

(
cd bitbox-bridge/release/darwin
mkdir -p tmp/opt/shiftcrypto/bitbox-bridge/bin
Expand Down
2 changes: 1 addition & 1 deletion bitbox-bridge/release/windows/wix/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Package

1. install wix toolset and visual studio
2. install toml-echo: `cargo install toml-echo`
2. install toml-echo: `cargo install --version 0.3.0 toml-echo`
3. launch X64 native tools command prompt for VS 20XX
4. run package-unsigned.cmd

Expand Down
2 changes: 1 addition & 1 deletion bitbox-bridge/release/windows/wix/package-unsigned.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FOR /F "tokens=* USEBACKQ" %%F IN (`toml-echo ..\..\..\Cargo.toml package.version`) DO (
FOR /F "tokens=* USEBACKQ" %%F IN (`toml-echo Cargo.toml package.version`) DO (
SET VERSION=%%F
)
ECHO Packaging version %VERSION%
Expand Down
2 changes: 1 addition & 1 deletion bitbox-bridge/release/windows/wix/package.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FOR /F "tokens=* USEBACKQ" %%F IN (`toml-echo ..\..\..\Cargo.toml package.version`) DO (
FOR /F "tokens=* USEBACKQ" %%F IN (`toml-echo Cargo.toml package.version`) DO (
SET VERSION=%%F
)
ECHO Packaging version %VERSION%
Expand Down

0 comments on commit 709e426

Please sign in to comment.