Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blocks:manage_script_directory [2024-03-20 14:22] mattias [Update] |
blocks:manage_script_directory [2024-09-23 12:59] (current) mattias [Manual update] |
||
---|---|---|---|
Line 1: | Line 1: | ||
=====Manage the script directory===== | =====Manage the script directory===== | ||
- | We keep the latest version on our script environment in our [[https:// | + | We always |
+ | |||
+ | :!: Before doing anything with an existing script directory in a working system, it is always recommended to make a security copy of the / | ||
- | :!: Before doing anything with an existing script directory in a working system, it is always recommended to: | ||
- | * stop the server | ||
- | * make a security copy of the / | ||
====First time installation==== | ====First time installation==== | ||
Line 12: | Line 12: | ||
===Get the files=== | ===Get the files=== | ||
- | There are a few different methods to obtain the files, but in general for any desktop environments one can download a zip of the repo by clicking the green < | + | There are a few different methods to obtain the files, but in general for any desktop environments one can download a compressed .zip archive |
===Decompress the files=== | ===Decompress the files=== | ||
Line 25: | Line 25: | ||
====Update the script directory==== | ====Update the script directory==== | ||
An update of the files is the same thing as with the fresh install for any desktop environment. For linux there is a script that automates this: | An update of the files is the same thing as with the fresh install for any desktop environment. For linux there is a script that automates this: | ||
- | ===Production Linux environments=== | + | ===Production Linux Desktop |
- | For production Linux environments, | + | For production Linux environments |
< | < | ||
pixi-server@pixi: | pixi-server@pixi: | ||
Line 34: | Line 34: | ||
pixi-server@pixi: | pixi-server@pixi: | ||
</ | </ | ||
- | In case the environment has not been set up from the Pixilab image, one may have to make the file excutable before running | + | The script makes a backup copy of the directory, downloads the latest files and merges them into the existing scripts directory. |
+ | |||
+ | If the update_scripts.sh is not present it can be done manually using the cli method below. | ||
+ | |||
+ | |||
+ | ====Manual update==== | ||
+ | Follow | ||
+ | |||
+ | |||
+ | ===Linux CLI=== | ||
< | < | ||
- | pixi-server@pixi: | + | #Navigate in to the script directory. |
+ | $ cd PIXILAB-Blocks-root/ | ||
+ | |||
+ | #Clone the current git repo from github. | ||
+ | $ git clone -q https:// | ||
+ | |||
+ | #Merge the new and updated files into the existing directory. | ||
+ | $ cp -r blocks-script/ | ||
+ | |||
+ | #Remove the now obsolete cloned files. | ||
+ | $ rm -r -f blocks-script | ||
</ | </ | ||
- | ===Linux Desktop=== | + | > |
- | ===Linux CLI=== | + | |
- | ===Windows desktop=== | + | ===Desktop |
- | ===Window CLI=== | + | |
+ | Make a copy of the existing PIXILAB-Blocks-root/ | ||
+ | Download the files from [[ https:// | ||
+ | {{ : | ||
+ | |||
+ | This will put a zip file in your default downloads directory. | ||
+ | Doubleclick the zip and uncompress it to a temporary destination of your choice. | ||
+ | Navigate to the blocks-script-master sourcedirectory in your temp destination and select and copy all files. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Paste the source files into the existing PIXILAB-Blocks-root/ | ||
- | ===MacOS desktop=== | + | Restart the server. |
- | ===MacOS CLI=== | + | |