File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ function update_script() {
4343 PG_DB_PASS=" $( sed -n ' /Password:/s/[^:]*:[[:space:]]//p' ~ /oxicloud.creds) "
4444 cd /opt/oxicloud
4545 export DATABASE_URL=" postgres://oxicloud:${PG_DB_PASS} @localhost/oxicloud"
46+ export RUSTFLAGS=" -C target-cpu=native"
4647 $STD cargo build --release
4748 mv target/release/oxicloud /usr/bin/oxicloud && chmod +x /usr/bin/oxicloud
4849 msg_ok " Updated OxiCloud"
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ RUST_TOOLCHAIN=$TOOLCHAIN setup_rust
2727msg_info " Building OxiCloud"
2828cd /opt/oxicloud
2929export DATABASE_URL=" postgres://${PG_DB_USER} :${PG_DB_PASS} @localhost/${PG_DB_NAME} "
30+ export RUSTFLAGS=" -C target-cpu=native"
3031$STD cargo build --release
3132mv target/release/oxicloud /usr/bin/oxicloud && chmod +x /usr/bin/oxicloud
3233msg_ok " Built OxiCloud"
You can’t perform that action at this time.
0 commit comments