Merge 3ac4502ffa
This commit is contained in:
commit
c453132530
@ -35,8 +35,10 @@ NanoID class >> install [
|
|||||||
OSSUnixSubprocess new
|
OSSUnixSubprocess new
|
||||||
command: 'nim';
|
command: 'nim';
|
||||||
arguments: {'c'. self scriptSourceCode fullName};
|
arguments: {'c'. self scriptSourceCode fullName};
|
||||||
workingDirectory: binaryFileFolder;
|
"workingDirectory: binaryFileFolder;"
|
||||||
runAndWaitOnExitDo: [ :process :outString | ^ binaryFileFolder ]
|
runAndWaitOnExitDo: [ :process :outString |
|
||||||
|
(self scriptSourceCode parent / (self scriptSourceCode) basenameWithoutExtension) moveTo: binaryFileFolder asFileReference.
|
||||||
|
^ binaryFileFolder ]
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
|
@ -19,6 +19,7 @@ Nimble class >> detect: packageName [
|
|||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
Nimble class >> install: packageName [
|
Nimble class >> install: packageName [
|
||||||
(self detect: packageName) ifTrue: [ ^ self ].
|
(self detect: packageName) ifTrue: [ ^ self ].
|
||||||
|
self installPackagesList.
|
||||||
OSSUnixSubprocess new
|
OSSUnixSubprocess new
|
||||||
command: 'nimble';
|
command: 'nimble';
|
||||||
arguments: {'install'.
|
arguments: {'install'.
|
||||||
@ -27,6 +28,18 @@ Nimble class >> install: packageName [
|
|||||||
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
|
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
Nimble class >> installPackagesList [
|
||||||
|
|
||||||
|
(FileLocator home / '.nimble' / 'packages_official.json') exists
|
||||||
|
ifTrue: [ ^ self ].
|
||||||
|
OSSUnixSubprocess new
|
||||||
|
command: 'nimble';
|
||||||
|
arguments: #('refresh');
|
||||||
|
redirectStdout;
|
||||||
|
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
Nimble class >> installed [
|
Nimble class >> installed [
|
||||||
| installed |
|
| installed |
|
||||||
|
Loading…
Reference in New Issue
Block a user