palabra 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ChangeLog CHANGED
@@ -1,3 +1,13 @@
1
+ 2026.04.13, v2.2.0
2
+
3
+ feature:
4
+ - 19b98a8 palabra: letras: mwget: add
5
+
6
+ 2026.04.13, v2.1.0
7
+
8
+ feature:
9
+ - 30448ef palabra: use XDG_CACHE_HOME when possible
10
+
1
11
  2026.04.13, v2.0.0
2
12
 
3
13
  feature:
package/README.md CHANGED
@@ -72,7 +72,7 @@ palabra l
72
72
 
73
73
  ## Env variables
74
74
 
75
- Use `PALABRA_DIR` or `XDG_DATA_HOME` to override default installation path `~/.local/share`.
75
+ Use `PALABRA_DIR` or [`XDG_DATA_HOME`](https://specifications.freedesktop.org/basedir/latest/) to override default installation path `~/.local/share`.
76
76
 
77
77
  That's it!
78
78
 
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "mwget",
3
+ "version": "1.2.0",
4
+ "url": "https://github.com/rayylee/mwget/releases/download/v{{ version }}/mwget-linux-x64.tar.gz",
5
+ "test": "{{ name }} --version",
6
+ "bin": "{{ name }}",
7
+ "commands": [
8
+ "mv {{ directorio }}/{{ name }}-linux-x64 {{ directorio }}/{{ name }}"
9
+ ]
10
+ }
@@ -32,7 +32,7 @@ export const extract = (letra) => {
32
32
  const filename = basename(renderedURL);
33
33
  const renderedextractDirectory = rendy(extractDirectory, letra);
34
34
 
35
- commands.push(`wget ${CONTINUE} ${NOT_OVERWRITE} ${renderedURL} -O /tmp/${filename}`);
35
+ commands.push(`wget ${CONTINUE} ${NOT_OVERWRITE} ${renderedURL} -O \${XDG_CACHE_HOME:-/tmp}/${filename}`);
36
36
  commands.push(`rm -rf ${directorio}/${name}`);
37
37
  commands.push(`mkdir -p ${directorio}/${name}`);
38
38
  commands.push(`tar xf /tmp/${filename} -C ${renderedextractDirectory}`);
@@ -92,7 +92,13 @@ export const parse = (letra) => {
92
92
  return commands;
93
93
  };
94
94
 
95
- function createSymlinks({name, directorio, hogar, bin}) {
95
+ function createSymlinks(letra) {
96
+ const {
97
+ name,
98
+ directorio,
99
+ hogar,
100
+ bin,
101
+ } = letra;
96
102
  const commands = [];
97
103
  const parsedBin = parseBin({
98
104
  name,
@@ -103,7 +109,7 @@ function createSymlinks({name, directorio, hogar, bin}) {
103
109
  const binDir = join(directorio, '..', `bin`);
104
110
 
105
111
  for (const [name, from] of entries(parsedBin)) {
106
- const binFrom = join(directorio, from);
112
+ const binFrom = rendy(join(directorio, from), letra);
107
113
  const binTo = join(binDir, name);
108
114
 
109
115
  commands.push(`ln -fs ${binFrom} ${binTo}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palabra",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Palabra software installer",