Debugging external dependencies installation.
This commit is contained in:
parent
0d924fa23f
commit
5c432fd861
@ -27,12 +27,15 @@ NanoID class >> binaryFile [
|
||||
NanoID class >> install [
|
||||
"For the moment, only Gnu/Linux and Mac are supported.
|
||||
IMPORTANT: Nimble, Nim's package manager should be installed, as this process doesn't verify its proper installation."
|
||||
| binaryFileFolder |
|
||||
binaryFileFolder := self binaryFile parent.
|
||||
self binaryFile exists ifTrue: [ ^ binaryFileFolder ].
|
||||
Nimble install: 'nanoid'.
|
||||
OSSUnixSubprocess new
|
||||
command: 'nim';
|
||||
arguments: {'c'. self scriptSourceCode fullName};
|
||||
workingDirectory: self binaryFile parent;
|
||||
runAndWaitOnExitDo: [ :process :outString | ^ self binaryFile parent ]
|
||||
workingDirectory: binaryFileFolder;
|
||||
runAndWaitOnExitDo: [ :process :outString | ^ binaryFileFolder ]
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
|
@ -23,6 +23,7 @@ Nimble class >> install: packageName [
|
||||
command: 'nimble';
|
||||
arguments: {'install'.
|
||||
packageName};
|
||||
redirectStdout;
|
||||
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user