Skip to content

Commit 90aa3bb

Browse files
committed
update to synology path/arch
1 parent acab3ac commit 90aa3bb

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ cargo build --release --target x86_64-unknown-linux-musl
2626

2727
for docker
2828

29+
To build for other platforms, modify the TARGET_ARCH variable in ./docker/make.sh.
30+
31+
For example, with Raspbarry Pi 4, use TARGET_ARCH=aarch64-unknown-linux-gnu
2932
```bash
3033
./docker/make.sh
3134
```

docker/make.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/bin/bash
22

3+
TARGET_ARCH="aarch64-unknown-linux-gnu"
34
SCRIPT=$(readlink -f "$0")
45
DIR=$(dirname "$SCRIPT")
56
VERSION=$(awk -F '"' '/^version/ {print $2}' "$DIR/../Cargo.toml")
67

78
# build
89
cd "$DIR/.."
9-
cargo build --release --target x86_64-unknown-linux-musl
10-
cp "$DIR/../target/x86_64-unknown-linux-musl/release/kosync" "$DIR/kosync"
10+
cargo build --release --target "$TARGET_ARCH"
11+
cp "$DIR/../target/$TARGET_ARCH/release/kosync" "$DIR/kosync"
1112

1213
# build docker
1314
cd "$DIR"

src/defs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use serde_json::json;
1313

1414
pub const DEFAULT_ADDR: &str = "0.0.0.0:3000";
1515
pub const DEFAULT_TREE_NAME: &str = "kosync";
16-
pub const DEFAULT_DB_PATH: &str = "data/kosync";
16+
pub const DEFAULT_DB_PATH: &str = "/volume1/Cusanity/docker_data/kosync";
1717
pub const FIELD_LEN_LIMIT: usize = 4096;
1818

1919
#[derive(Debug, Deserialize, Serialize)]

0 commit comments

Comments
 (0)