Преглед на файлове

[flutter]: add some scripts

annie преди 3 години
родител
ревизия
c90cdb90d7
променени са 4 файла, в които са добавени 33 реда и са изтрити 6 реда
  1. 2 1
      .gitignore
  2. 1 1
      app_flowy/macos/Podfile.lock
  3. 4 4
      rust-lib/dart-ffi/Cargo.toml
  4. 26 0
      scripts/makefile/env.toml

+ 2 - 1
.gitignore

@@ -11,4 +11,5 @@ Cargo.lock
 **/target/
 **/*.db
 .idea/
-/flowy-test/
+/flowy-test/
+.ruby-version

+ 1 - 1
app_flowy/macos/Podfile.lock

@@ -55,4 +55,4 @@ SPEC CHECKSUMS:
 
 PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c
 
-COCOAPODS: 1.10.1
+COCOAPODS: 1.11.2

+ 4 - 4
rust-lib/dart-ffi/Cargo.toml

@@ -7,11 +7,11 @@ edition = "2018"
 [lib]
 name = "dart_ffi"
 # this value will change depending on the target os
-# for iOS it would be `cdylib`
-# for Macos it would be `cdylib`
+# for iOS it would be `rlib`
+# for Macos it would be `rlib`
 # for android it would be `c-dylib`
-# default cdylib
-crate-type = ["cdylib"]
+# default rlib
+crate-type = ["rlib"]
 
 
 [dependencies]

+ 26 - 0
scripts/makefile/env.toml

@@ -39,6 +39,32 @@ cargo install cargo-cache
 cargo install bunyan
 """
 
+[tasks.install_cocoapods]
+script = """
+# execute "xcode-select --install" before if "extconf.rb failed" error occurs
+sudo gem install cocoapods
+"""
+
+[tasks.install_rbenv]
+script = """
+brew install rbenv
+rbenv init
+rbenv install 2.7.1
+rbenv global 2.7.1
+
+# https://github.com/rbenv/rbenv
+curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
+"""
+
+[tasks.install_fish]
+script = """
+brew install fish
+
+# https://stackoverflow.com/questions/26208231/modifying-path-with-fish-shell
+# Export the PATH using the command:
+# set -Ua fish_user_paths the_path_you_want_to_export
+"""
+
 [tasks.install_flutter]
 script = """
 echo "[❤️] Follow the https://flutter.dev/docs/get-started/install instructions to install the flutter, skip if you already installed."