Skip to content

Commit 24b2375

Browse files
committed
create script for package
1 parent 96aa61a commit 24b2375

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/target
22
/todo
33
/.idea
4+
/*.tar

auto/build-macos

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/sh
22

3-
TARGET=x86_64-apple-darwin
43
CURRENT_DIR=$(dirname "$0")
54
cd "$CURRENT_DIR"/..
65

7-
docker volume create rust-registry
8-
docker run -v $(pwd):/source -w /source -v rust-registry:/usr/local/cargo/registry rust sh -c "rustup target add ${TARGET} && cargo build --release --bin rtd --target ${TARGET}"
6+
cargo build --release --target x86_64-apple-darwin

auto/package

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
set -eu
4+
5+
CURRENT_DIR=$(dirname "$0")
6+
cd "$CURRENT_DIR"/..
7+
8+
auto/build-macos
9+
auto/build-linux
10+
11+
tar -cvf rtd-macos.tar -C target/x86_64-apple-darwin/release rtd
12+
tar -cvf rtd-linux.tar -C target/x86_64-unknown-linux-gnu/release rtd

0 commit comments

Comments
 (0)