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 +10 -0
- package/README.md +1 -1
- package/letras/mwget/mwget.json +10 -0
- package/lib/parser/extract.js +1 -1
- package/lib/parser/parser.js +8 -2
- package/package.json +1 -1
package/ChangeLog
CHANGED
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
|
+
}
|
package/lib/parser/extract.js
CHANGED
|
@@ -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
|
|
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}`);
|
package/lib/parser/parser.js
CHANGED
|
@@ -92,7 +92,13 @@ export const parse = (letra) => {
|
|
|
92
92
|
return commands;
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
function createSymlinks(
|
|
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}`);
|