mirror of
https://github.com/facefusion/facefusion-pinokio.git
synced 2026-07-28 04:20:49 +02:00
Resolve the .env
This commit is contained in:
+6
-4
@@ -1,3 +1,5 @@
|
||||
const path = require('path');
|
||||
|
||||
function install(kernel)
|
||||
{
|
||||
const { platform, gpu } = kernel;
|
||||
@@ -45,7 +47,7 @@ module.exports = async kernel =>
|
||||
message: 'conda install conda-forge::openvino=2024.3.0 --yes',
|
||||
conda:
|
||||
{
|
||||
path: '.env'
|
||||
path: path.resolve(__dirname, '.env')
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -57,7 +59,7 @@ module.exports = async kernel =>
|
||||
message: 'conda install conda-forge::cuda-runtime=12.4.1 cudnn=9.2.1.18 --yes',
|
||||
conda:
|
||||
{
|
||||
path: '.env'
|
||||
path: path.resolve(__dirname, '.env')
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -69,7 +71,7 @@ module.exports = async kernel =>
|
||||
message: 'pip install tensorrt==10.4.0 --extra-index-url https://pypi.nvidia.com --yes',
|
||||
conda:
|
||||
{
|
||||
path: '.env'
|
||||
path: path.resolve(__dirname, '.env')
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -85,7 +87,7 @@ module.exports = async kernel =>
|
||||
},
|
||||
conda:
|
||||
{
|
||||
path: '.env'
|
||||
path: path.resolve(__dirname, '.env')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@ module.exports = async kernel =>
|
||||
{
|
||||
const menu = [];
|
||||
|
||||
if (!await kernel.exists(__dirname, '.env'))
|
||||
if (!await kernel.exists(path.resolve(__dirname, '.env')))
|
||||
{
|
||||
menu.push(
|
||||
{
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = () =>
|
||||
{
|
||||
const config =
|
||||
@@ -15,7 +17,7 @@ module.exports = () =>
|
||||
method: 'fs.rm',
|
||||
params:
|
||||
{
|
||||
'path': '.env'
|
||||
path: path.resolve(__dirname, '.env')
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user