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