From e4e9323356fa083594540808e6e3b96e8f9113d7 Mon Sep 17 00:00:00 2001 From: ruidajo Date: Mon, 7 Mar 2022 18:14:34 -0500 Subject: [PATCH] Adding script to JSON exporter optimized installation. --- repository/TiddlyWiki/TiddlyWiki.class.st | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/repository/TiddlyWiki/TiddlyWiki.class.st b/repository/TiddlyWiki/TiddlyWiki.class.st index 4b9c79e..a71c7f1 100644 --- a/repository/TiddlyWiki/TiddlyWiki.class.st +++ b/repository/TiddlyWiki/TiddlyWiki.class.st @@ -165,7 +165,7 @@ TiddlyWiki >> exportJSONFileOptimized [ OSSUnixSubprocess new command: exporter fullName; workingDirectory: exporter parent fullName; - runAndWaitOnExitDo: [ :process :outString | ^ process ] + runAndWaitOnExitDo: [ :process :outString | ^ self jsonFile ] ] { #category : #accessing } @@ -291,8 +291,11 @@ TiddlyWiki >> installJsonExporter [ | folder | folder := (self file parent / 'scripts') ensureCreateDirectory. ZnClient new - url: 'https://mutabit.com/repos.fossil/mutabit/uv/wiki/scripts/exportJsonFile'; - downloadTo: folder / 'exportJsonFile'. + url: 'https://mutabit.com/repos.fossil/mutabit/uv/wiki/scripts/exportJsonFile'; + downloadTo: folder / 'exportJsonFile'. + ZnClient new + url: 'https://mutabit.com/repos.fossil/mutabit/doc/trunk/wiki/scripts/exportJsonFile.nim'; + downloadTo: folder / 'exportJsonFile.nim'. OSSUnixSubprocess new command: 'chmod'; @@ -480,7 +483,7 @@ TiddlyWiki >> resynchronize [ | repository | self - exportJSONFile; + exportJSONFileOptimized; importJSONFile. repository := self repository. repository update.