This commit is contained in:
Kirill Chernyshov 2020-08-20 12:17:43 +02:00
parent a826711d24
commit ab6b3ae113
No known key found for this signature in database
GPG Key ID: 425B3AB78FBCFBDB
3 changed files with 10 additions and 33 deletions

10
dist/index.js vendored
View File

@ -3298,15 +3298,7 @@ function installLeiningen(binScript, destinationFolder) {
if (!IS_WINDOWS) {
fs.chmodSync(path.join(binDir, `lein`), '0755');
}
if (IS_WINDOWS) {
yield exec.exec('powershell .\\lein.ps1 self-install', [], {
cwd: path.join(destinationFolder, 'leiningen', 'bin'),
env: {
LEIN_HOME: path.join(destinationFolder, 'leiningen')
}
});
}
const version_cmd = IS_WINDOWS ? 'powershell .\\lein.ps1 version' : './lein version';
const version_cmd = IS_WINDOWS ? 'powershell .\\lein.ps1 self-install' : './lein version';
yield exec.exec(version_cmd, [], {
cwd: path.join(destinationFolder, 'leiningen', 'bin'),
env: {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -61,31 +61,16 @@ async function installLeiningen(
fs.chmodSync(path.join(binDir, `lein`), '0755')
}
if (IS_WINDOWS) {
await exec.exec(
'powershell .\\lein.ps1 self-install',
[],
{
cwd: path.join(destinationFolder, 'leiningen', 'bin'),
env: {
LEIN_HOME: path.join(destinationFolder, 'leiningen')
}
}
)
}
const version_cmd = IS_WINDOWS
? 'powershell .\\lein.ps1 self-install'
: './lein version'
const version_cmd = IS_WINDOWS ? 'powershell .\\lein.ps1 version' : './lein version'
await exec.exec(
version_cmd,
[],
{
cwd: path.join(destinationFolder, 'leiningen', 'bin'),
env: {
LEIN_HOME: path.join(destinationFolder, 'leiningen')
}
await exec.exec(version_cmd, [], {
cwd: path.join(destinationFolder, 'leiningen', 'bin'),
env: {
LEIN_HOME: path.join(destinationFolder, 'leiningen')
}
)
})
return path.join(destinationFolder, 'leiningen')
} else {