Hi there! You're probably so tired of unpacking one archive at a time ... Right? Then you can try to install my script.
Briefly about him:
This script was created specifically to simplify the installation of models for the program 'Stick Nodes'. In short, you need to put archives and format files .nodes to folder 'sdcard/Downloads/Nodes', run termux, and run the script with the desired parameters.
And it will unzip the archives and move the all files in .nodes format to the specified folder. (Depends on the key that you specify when you run the script)
So, this script works with two folders: 'sdcard/Downloads' and 'sdcard/Stick Nodes'.
/Result | If you using -cnd -mnd -d, results wi be in this dir. |
---|---|
ls.txt | This is a working file in which the staple stores the names of the files I need to do something. |
/stickfigures | From this folder, the program Stick nodes draws models. |
---|
As you can see, the folder 'Stick Nodes' is in the memory of the device, because of this we need to give permission for Termux to write files...
To install the script and start using it, you need to install the Termux. I heard something has changed there and the author of the program wants everyone to switch to the version with F-Droid. I recommend installing Termux from an F-Droid source.
F-Droid | Termux on F-Droid (Click Here) |
---|---|
Play Market | Termux on PlayMarket (Click Here) |
-
Launch the app
-
Copy:
apt update $$ apt upgrade
Paste it to Termux and press enter.
- To download the script itself and the installation file we need to install the git package. To do this, write a command:
apt install git
And press enter.
- Now, using the git, download the folder with all the scripts. To do this, write a command:
git clone https://github.com/Dolfost/nodesExctractor
- Go to the folder with the script:
cd nodesExctractor
- We will make the installation script executable:
chmod +x install
-
We run a script for installation, and we do everything that is asked there ...
-
To run the script, we must be in the folder with it (/nodesExctractor). To run, write:
./nodesExctractor <parameters here>
- How to use the script, read below ...
-
Launch the app.
-
Copy:
apt update $$ apt upgrade
Paste it to Termux and press enter.
- Now we need to give Termux permission to work with the folders on the phone. To do this, write:
termux-setup-storage
A spit window in which you will click 'Allow'.
- Now you need to download the script using the command:
git clone https://github.com/Dolfost/nodesExctractor
1.1 Before downloading, make sure you have the git installed
pkg install git
- Now let's go to the folders with the script:
cd nodesExctractor
- Let's make the script executable:
chmod +x nodesExtarctor
3.1 Let's make the uninstall script executable:
chmod +x uninstaller
- To run the script, we must be in the folder with it (/nodesExctractor). To run, write:
./nodesExctractor <parameters here>
- How to use the script, read below ...
Soon
If you want to delete a script, you can delete the folder nodesExctractor through the command:
rm -rf nodesExctractor
To do this, you must be in the directory where the folder 'nodesExctractor' is located.
But I recommend deleting the script using a file 'uninstall', he located in nodesExctractor dir.
In the process, it will ask you if you want to delete the folder 'Nodes', he is located in 'sdcard/Downloads'.
Before deleting a folder 'sdcard/Downloads/Nodes', check if there is anything important left in it.
In the scripts, as in this tutorial there may be (or rather there are) gross errors in the use of English... Sorry...