Compare commits

..

No commits in common. "c838289aeabbfbec4e68fb61b223e74197cafa2e" and "af9f4b28869f1914d2f66f22b7dcb58640723a14" have entirely different histories.

View File

@ -23,17 +23,6 @@ NanoID class >> binaryFile [
^ FileLocator userData / 'Mutabit' / 'MiniDocs' / self scriptSourceCode basenameWithoutExtension ^ FileLocator userData / 'Mutabit' / 'MiniDocs' / self scriptSourceCode basenameWithoutExtension
] ]
{ #category : #accessing }
NanoID class >> generate [
OSSUnixSubprocess new
command: self binaryFile fullName;
redirectStdout;
redirectStdout;
"workingDirectory: self binaryFile parent;"
runAndWaitOnExitDo: [ :process :outString | ^ outString copyWithoutAll: (Character lf asString) ]
]
{ #category : #accessing } { #category : #accessing }
NanoID class >> install [ NanoID class >> install [
"For the moment, only Gnu/Linux and Mac are supported. "For the moment, only Gnu/Linux and Mac are supported.
@ -46,6 +35,7 @@ NanoID class >> install [
OSSUnixSubprocess new OSSUnixSubprocess new
command: 'nim'; command: 'nim';
arguments: {'c'. self scriptSourceCode fullName}; arguments: {'c'. self scriptSourceCode fullName};
"workingDirectory: binaryFileFolder;"
runAndWaitOnExitDo: [ :process :outString | runAndWaitOnExitDo: [ :process :outString |
(self scriptSourceCode parent / (self scriptSourceCode) basenameWithoutExtension) moveTo: binaryFileFolder asFileReference. (self scriptSourceCode parent / (self scriptSourceCode) basenameWithoutExtension) moveTo: binaryFileFolder asFileReference.
^ binaryFileFolder ] ^ binaryFileFolder ]