diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e699a2..f662274 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: command: install args: --git https://github.com/cross-rs/cross cross - name: R-01 Build - run: cross build --release --target=riscv64gc-unknown-linux-gnu + run: cross build --release --target=riscv64gc-unknown-linux-gnu --no-default-features --features r01 - name: Copy R-01 binary run : cp -f ./target/riscv64gc-unknown-linux-gnu/release/upico upico - name: Compress R-01 Build diff --git a/Cargo.toml b/Cargo.toml index 5dc6222..d46faf2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ rusb = "0.9" serde = { version = "1.0.188", features = ["serde_derive"] } [features] -default = ["r01"] +default = ["cm4"] r01 = [] cm4 = [] a06 = [] diff --git a/install.sh b/install.sh index f369431..19b6b5a 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,7 @@ #!/bin/sh cp -f upico /usr/local/bin/ +chmod +x /usr/local/bin/upico cp -f upico.service /etc/systemd/system/ systemctl enable upico systemctl start upico