Debugging external dependencies installation.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-07-25 09:59:41 -05:00
parent 0d924fa23f
commit 5c432fd861
2 changed files with 7 additions and 3 deletions

View File

@ -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 }

View File

@ -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 ]
] ]