Skip to content

Commit 709e426

Browse files
committed
Merge branch 'pin-toml-echo'
This pins toml-echo cargo package version for a more stable build process. #25
2 parents 0092697 + a20047f commit 709e426

File tree

6 files changed

+5
-7
lines changed

6 files changed

+5
-7
lines changed

bitbox-bridge/release/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ RUN rustup target add aarch64-apple-darwin
8080

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

8585

8686
##############################

bitbox-bridge/release/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Packages (deb/rpm/tar.gz2) will be created without further work.
1515
* Run `package.cmd`
1616

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

bitbox-bridge/release/darwin/release.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ CARGO_HOME=/tmp/cargo \
1313
TARGET_CC=aarch64-apple-darwin20.2-clang \
1414
cargo build --target aarch64-apple-darwin --release
1515

16-
NAME=BitBoxBridge
17-
VERSION=$(toml-echo bitbox-bridge/Cargo.toml package.version)
18-
1916
(
2017
cd bitbox-bridge/release/darwin
2118
mkdir -p tmp/opt/shiftcrypto/bitbox-bridge/bin

bitbox-bridge/release/windows/wix/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Package
22

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

bitbox-bridge/release/windows/wix/package-unsigned.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FOR /F "tokens=* USEBACKQ" %%F IN (`toml-echo ..\..\..\Cargo.toml package.version`) DO (
1+
FOR /F "tokens=* USEBACKQ" %%F IN (`toml-echo Cargo.toml package.version`) DO (
22
SET VERSION=%%F
33
)
44
ECHO Packaging version %VERSION%

bitbox-bridge/release/windows/wix/package.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FOR /F "tokens=* USEBACKQ" %%F IN (`toml-echo ..\..\..\Cargo.toml package.version`) DO (
1+
FOR /F "tokens=* USEBACKQ" %%F IN (`toml-echo Cargo.toml package.version`) DO (
22
SET VERSION=%%F
33
)
44
ECHO Packaging version %VERSION%

0 commit comments

Comments
 (0)