mirror of
https://github.com/DeLaGuardo/setup-clojure.git
synced 2025-01-15 02:47:55 +08:00
wip
This commit is contained in:
parent
a826711d24
commit
ab6b3ae113
10
dist/index.js
vendored
10
dist/index.js
vendored
@ -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
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user