chore: addjust to scripts changes
This commit is contained in:
parent
a9f69f8cd3
commit
d6c94b1ab0
28
README.md
28
README.md
@ -18,8 +18,10 @@ git clone --recurse-submodules [URL-to-clone-nushell-plugin]
|
||||
<pre>
|
||||
.
|
||||
├── collect-install.sh Script to collect all nu_plugin_* and install in /usr/local/bin
|
||||
├── env Main value settings
|
||||
├── distribution
|
||||
│ ├── collect.sh Script to build and collect nu_plugin_*
|
||||
│ ├── collect-install.sh Script to build and collect nu_plugin_*
|
||||
│ ├── install_nu_plugins.nu Nushell script to install nu_plugin_*
|
||||
│ ├── LICENSE
|
||||
│ └── README.txt
|
||||
├── generate Template to generate plugins. Used with make_plugin.sh
|
||||
@ -40,6 +42,13 @@ git clone --recurse-submodules [URL-to-clone-nushell-plugin]
|
||||
└── README.md
|
||||
</pre>
|
||||
|
||||
Main values can be changed in [env](env)
|
||||
```bash
|
||||
export TARGET_PATH=${TARGET_PATH:-distribution}
|
||||
export INSTALL_FILE=${INSTALL_FILE:-install_nu_plugins.nu}
|
||||
export INSTALL_BIN_PATH=${INSTALL_BIN_PATH:-/usr/local/bin}
|
||||
```
|
||||
|
||||
## Build and Install
|
||||
|
||||
- Run [build-all.sh](build-all.sh)
|
||||
@ -48,7 +57,8 @@ git clone --recurse-submodules [URL-to-clone-nushell-plugin]
|
||||
```
|
||||
- Collect all target/release with [collect-install.sh](collect-install.sh), this will:
|
||||
- Run [distribution/collect.sh](distribution/collect.sh) to copy into [distribution](distribution) directory
|
||||
- install [distribution](distribution) directory **nu_plugin_** into **/usr/local/bin**
|
||||
- Install [distribution](distribution) directory **nu_plugin_** into **/usr/local/bin**
|
||||
- Generatel [distribution](distribution) **nu_plugin_** install script [install_nu_plugin.nu](distribution/install_nu_plugin.nu)
|
||||
```bash
|
||||
./collect-install.sh
|
||||
```
|
||||
@ -56,19 +66,11 @@ git clone --recurse-submodules [URL-to-clone-nushell-plugin]
|
||||
|
||||
Plugins have to be added from [Nushell](https://nushell.sh/)
|
||||
|
||||
```nushell
|
||||
plugin add /usr/local/bin/nu_plugin_clipboard
|
||||
plugin add /usr/local/bin/nu_plugin_desktop_notifications
|
||||
plugin add /usr/local/bin/nu_plugin_hashes
|
||||
plugin add /usr/local/bin/nu_plugin_highlight
|
||||
plugin add /usr/local/bin/nu_plugin_image
|
||||
plugin add /usr/local/bin/nu_plugin_kcl
|
||||
plugin add /usr/local/bin/nu_plugin_port_extension
|
||||
plugin add /usr/local/bin/nu_plugin_qr_maker
|
||||
plugin add /usr/local/bin/nu_plugin_tera
|
||||
Use [install_nu_plugin.nu](distribution/install_nu_plugin.nu)
|
||||
```
|
||||
distribution/install_nu_plugin.nu
|
||||
```
|
||||
|
||||
### TODO
|
||||
|
||||
- [ ] Use settings for **platforms-architectures targets**
|
||||
- [ ] Use param values for **install path**
|
||||
|
Loading…
x
Reference in New Issue
Block a user