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>
|
<pre>
|
||||||
.
|
.
|
||||||
├── collect-install.sh Script to collect all nu_plugin_* and install in /usr/local/bin
|
├── collect-install.sh Script to collect all nu_plugin_* and install in /usr/local/bin
|
||||||
|
├── env Main value settings
|
||||||
├── distribution
|
├── 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
|
│ ├── LICENSE
|
||||||
│ └── README.txt
|
│ └── README.txt
|
||||||
├── generate Template to generate plugins. Used with make_plugin.sh
|
├── 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
|
└── README.md
|
||||||
</pre>
|
</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
|
## Build and Install
|
||||||
|
|
||||||
- Run [build-all.sh](build-all.sh)
|
- 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:
|
- 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
|
- 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
|
```bash
|
||||||
./collect-install.sh
|
./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/)
|
Plugins have to be added from [Nushell](https://nushell.sh/)
|
||||||
|
|
||||||
```nushell
|
Use [install_nu_plugin.nu](distribution/install_nu_plugin.nu)
|
||||||
plugin add /usr/local/bin/nu_plugin_clipboard
|
```
|
||||||
plugin add /usr/local/bin/nu_plugin_desktop_notifications
|
distribution/install_nu_plugin.nu
|
||||||
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
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### TODO
|
### TODO
|
||||||
|
|
||||||
- [ ] Use settings for **platforms-architectures targets**
|
- [ ] Use settings for **platforms-architectures targets**
|
||||||
- [ ] Use param values for **install path**
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user