Compare commits
3 Commits
af9f4b2886
...
c838289aea
Author | SHA1 | Date | |
---|---|---|---|
c838289aea | |||
38b1196d3c | |||
2ad5aace5a |
@ -23,6 +23,17 @@ NanoID class >> binaryFile [
|
||||
^ 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 }
|
||||
NanoID class >> install [
|
||||
"For the moment, only Gnu/Linux and Mac are supported.
|
||||
@ -35,7 +46,6 @@ NanoID class >> install [
|
||||
OSSUnixSubprocess new
|
||||
command: 'nim';
|
||||
arguments: {'c'. self scriptSourceCode fullName};
|
||||
"workingDirectory: binaryFileFolder;"
|
||||
runAndWaitOnExitDo: [ :process :outString |
|
||||
(self scriptSourceCode parent / (self scriptSourceCode) basenameWithoutExtension) moveTo: binaryFileFolder asFileReference.
|
||||
^ binaryFileFolder ]
|
||||
|
Loading…
Reference in New Issue
Block a user