Improving JSON exporter installation.
This commit is contained in:
parent
60944f57bd
commit
11fb92ca06
@ -165,7 +165,7 @@ TiddlyWiki >> exportJSONFileOptimized [
|
|||||||
OSSUnixSubprocess new
|
OSSUnixSubprocess new
|
||||||
command: exporter fullName;
|
command: exporter fullName;
|
||||||
arguments: {};
|
arguments: {};
|
||||||
workingDirectory: wikiFolder fullName;
|
workingDirectory: exporter parent fullName;
|
||||||
redirectStdout;
|
redirectStdout;
|
||||||
redirectStderr;
|
redirectStderr;
|
||||||
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
|
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
|
||||||
@ -291,9 +291,20 @@ TiddlyWiki >> importJSONFile [
|
|||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
TiddlyWiki >> installJsonExporter [
|
TiddlyWiki >> installJsonExporter [
|
||||||
|
|
||||||
|
| folder |
|
||||||
|
folder := (self file parent / 'scripts') ensureCreateDirectory.
|
||||||
ZnClient new
|
ZnClient new
|
||||||
url: 'https://mutabit.com/repos.fossil/mutabit/uv/wiki/scripts/exportJsonFile';
|
url: 'https://mutabit.com/repos.fossil/mutabit/uv/wiki/scripts/exportJsonFile';
|
||||||
downloadTo: self file parent / 'scripts' / 'exportJsonFile'
|
downloadTo: folder / 'exportJsonFile'.
|
||||||
|
|
||||||
|
OSSUnixSubprocess new
|
||||||
|
command: 'chmod';
|
||||||
|
arguments: { '+x' . (folder / 'exportJsonFile') fullName };
|
||||||
|
workingDirectory: folder fullName;
|
||||||
|
redirectStdout;
|
||||||
|
redirectStderr;
|
||||||
|
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
|
||||||
|
|
||||||
"Descarga el archivo
|
"Descarga el archivo
|
||||||
https://mutabit.com/repos.fossil/mutabit/uv/wiki/scripts/exportJsonFile
|
https://mutabit.com/repos.fossil/mutabit/uv/wiki/scripts/exportJsonFile
|
||||||
a la subcarpeta del wiki ./scripts/exportJsonFile.
|
a la subcarpeta del wiki ./scripts/exportJsonFile.
|
||||||
|
Loading…
Reference in New Issue
Block a user