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