config sdk log

This commit is contained in:
appflowy
2021-09-05 13:50:23 +08:00
parent 7a38114ba0
commit 317cbb37b6
43 changed files with 255 additions and 167 deletions

View File

@ -12,4 +12,5 @@ rustup show
# 2. ~/.bashrc
# 3. ~/.profile
# 4. ~/.zshrc
cargo make desktop
cargo make desktop
#cargo make gen_dart_event

View File

@ -1,3 +0,0 @@
#!/bin/sh
#!/usr/bin/env fish
cargo make gen_dart_event

View File

@ -1,4 +0,0 @@
#!/bin/sh
brew install sqlite3
cargo install diesel_cli --no-default-features --features sqlite

View File

@ -1,7 +0,0 @@
#!/bin/sh
echo 'install rust'
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
echo 'export PATH="$$HOME/.cargo/bin:$$PATH"' >> ~/.bash_profile
source ~/.bash_profile

View File

@ -1,20 +0,0 @@
#!/bin/sh
#targets
rustup target add x86_64-apple-darwin
#tools
echo 'install tools'
rustup component add rustfmt
cargo install cargo-expand
cargo install cargo-watch
cargo install cargo-cache
cargo install bunyan
#protobuf code gen env
brew install protobuf@3.13
brew tap dart-lang/dart
brew install dart
pub global activate protoc_plugin
cargo install --version 2.20.0 protobuf-codegen

View File

@ -25,7 +25,7 @@ description = "Build desktop targets."
script = [
"""
cd rust-lib/
cargo build --package=dart-ffi --target ${DESKTOP_TARGET} --features="observable"
cargo build --package=dart-ffi --target ${DESKTOP_TARGET} --features="observable","http_server"
cd ../
""",
]

43
scripts/makefile/env.toml Normal file
View File

@ -0,0 +1,43 @@
[tasks.env_setup]
script = """
brew install sqlite3
cargo install diesel_cli --no-default-features --features sqlite
"""
[tasks.install_sqlite3]
script = """
brew install sqlite3
cargo install diesel_cli --no-default-features --features sqlite
"""
[tasks.install_rust]
script = """
echo 'install rust'
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
echo 'export PATH="$$HOME/.cargo/bin:$$PATH"' >> ~/.bash_profile
source ~/.bash_profile
"""
[tasks.install_tools]
script = """
#targets
rustup target add x86_64-apple-darwin
#tools
echo 'install tools'
rustup component add rustfmt
cargo install cargo-expand
cargo install cargo-watch
cargo install cargo-cache
cargo install bunyan
#protobuf code gen env
brew install protobuf@3.13
brew tap dart-lang/dart
brew install dart
pub global activate protoc_plugin
cargo install --version 2.20.0 protobuf-codegen
"""