|
1 | 1 |
|
| 2 | +## Folders hierarchy |
| 3 | + |
| 4 | +After install, the package creates a hierarchy of folders like the following |
| 5 | +(only the first two depth levels are shown): |
| 6 | + |
| 7 | +{%- assign platforms_array = platforms | split: "," %} |
| 8 | + |
| 9 | +{%- assign names_array = "" | split: "" %} |
| 10 | + |
| 11 | +{%- for platform in platforms_array %} |
| 12 | +{%- case platform %} |
| 13 | +{%- when "win32-x64" %} |
| 14 | +{%- assign names_array = names_array | concat: "Windows" %} |
| 15 | +{%- when "darwin-x64", "darwin-arm64" %} |
| 16 | +{%- assign names_array = names_array | concat: "macOS" %} |
| 17 | +{%- when "linux-x64", "linux-arm64", "linux-arm" %} |
| 18 | +{%- assign names_array = names_array | concat: "GNU/Linux" %} |
| 19 | +{%- endcase %} |
| 20 | +{%- endfor %} |
| 21 | + |
| 22 | +{%- assign names_array = names_array | uniq %} |
| 23 | + |
| 24 | +<Tabs groupId="operating-systems"> |
| 25 | + |
| 26 | +{%- for name in names_array %} |
| 27 | +{%- case name %} |
| 28 | +{%- when "Windows" %} |
| 29 | + |
| 30 | +<TabItem value="windows" label="Windows" default> |
| 31 | + |
| 32 | +<CodeBlock language="console"> { |
| 33 | +`C:\> tree /f %USERPROFILE%\\AppData\\Roaming\\xPacks\\@{{packageScope}}\\{{packageName}}\\${frontMatter.version}.${frontMatter.npm_subversion}\\.content |
| 34 | +Folder PATH listing |
| 35 | +Volume serial number is B02D-925C |
| 36 | +├── README.md |
| 37 | +├── bin |
| 38 | +TODO |
| 39 | +`} </CodeBlock> |
| 40 | + |
| 41 | +</TabItem> |
| 42 | + |
| 43 | +{%- when "macOS" %} |
| 44 | + |
| 45 | +<TabItem value="macos" label="macOS"> |
| 46 | + |
| 47 | +<CodeBlock language="console"> { |
| 48 | +`$ tree -L 2 ~/Library/xPacks/\{{packageScopedName}}/${frontMatter.version}.${frontMatter.npm_subversion}/.content/ |
| 49 | +/Users/ilg/Library/xPacks/\{{packageScopedName}}/${frontMatter.version}.${frontMatter.npm_subversion}/.content/ |
| 50 | +├── README.md |
| 51 | +├── bin |
| 52 | +TODO |
| 53 | +`} </CodeBlock> |
| 54 | + |
| 55 | +</TabItem> |
| 56 | + |
| 57 | +{%- when "GNU/Linux" %} |
| 58 | + |
| 59 | +<TabItem value="linux" label="GNU/Linux"> |
| 60 | + |
| 61 | +<CodeBlock language="console"> { |
| 62 | +`$ tree -L 2 ~/.local/xPacks/\{{packageScopedName}}/${frontMatter.version}.${frontMatter.npm_subversion}/.content/ |
| 63 | +/home/ilg/.local/xPacks/\{{packageScopedName}}/${frontMatter.version}.${frontMatter.npm_subversion}/.content/ |
| 64 | +├── README.md |
| 65 | +├── bin |
| 66 | +TODO |
| 67 | +`} </CodeBlock> |
| 68 | + |
| 69 | +</TabItem> |
| 70 | + |
| 71 | +{%- endcase %} |
| 72 | +{%- endfor %} |
| 73 | + |
| 74 | +</Tabs> |
| 75 | + |
2 | 76 | <DeprecationNotices/> |
3 | 77 |
|
4 | 78 | <DownloadAnalytics version={frontMatter.version}/> |
0 commit comments