diff --git a/install.js b/install.js index 1e14708..4d8f004 100644 --- a/install.js +++ b/install.js @@ -4,24 +4,24 @@ function install(kernel) if (platform === 'darwin') { - return 'python install.py --onnxruntime default --skip-venv'; + return 'python install.py --onnxruntime default'; } if ([ 'linux', 'win32' ].includes(platform) && gpu === 'nvidia') { - return 'python install.py --onnxruntime cuda-11.8 --skip-venv'; + return 'python install.py --onnxruntime cuda-12.2'; } if (gpu === 'amd') { if (platform === 'linux') { - return 'python install.py --onnxruntime rocm-5.4.2 --skip-venv'; + return 'python install.py --onnxruntime rocm-5.4.2'; } if (platform === 'win32') { - return 'python install.py --onnxruntime directml --skip-venv'; + return 'python install.py --onnxruntime directml'; } } - return 'python install.py --onnxruntime default --skip-venv'; + return 'python install.py --onnxruntime default'; } module.exports = async kernel => @@ -31,25 +31,10 @@ module.exports = async kernel => run: [ { - when: '{{ gpu === "nvidia" }}', method: 'shell.run', params: { - message: - [ - 'conda install cudatoolkit=11.8 cudnn=8.9.2.26 -y' - ], - conda: - { - name: '{{ gpu === "nvidia" ? "cu118" : "base" }}' - } - } - }, - { - method: 'shell.run', - params: - { - message: 'git clone https://github.com/facefusion/facefusion --branch 2.4.1 --single-branch' + message: 'git clone https://github.com/facefusion/facefusion --branch 2.5.0 --single-branch' } }, { @@ -58,14 +43,13 @@ module.exports = async kernel => { message: install(kernel), path: 'facefusion', - venv: 'env', env: { PYTHONNOUSERSITE: 'True' }, conda: { - name: '{{ gpu === "nvidia" ? "cu118" : "base" }}' + name: 'facefusion' } } }, diff --git a/menu.js b/menu.js index ca78d55..5b086a0 100644 --- a/menu.js +++ b/menu.js @@ -2,12 +2,11 @@ const path = require('path'); module.exports = async kernel => { - const hasEnv = await kernel.exists(__dirname, 'facefusion', 'env'); - const hasRepo = await kernel.exists(__dirname, 'facefusion'); + const hasInstall = await kernel.exists(__dirname, 'facefusion') && !await kernel.running(__dirname, 'install.js'); let menu = []; - if (hasEnv && hasRepo) + if (hasInstall) { if (kernel.running(__dirname, 'start.js')) { diff --git a/package.json b/package.json index e475219..ee29f52 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "facefusion-pinokio", "description": "Next generation face swapper and enhancer", - "version": "2.4.1", + "version": "2.5.0", "license": "MIT", "devDependencies": { diff --git a/pinokio.js b/pinokio.js index ff7e2d4..3961018 100644 --- a/pinokio.js +++ b/pinokio.js @@ -1,7 +1,7 @@ module.exports = { version: '1.4', - title: 'FaceFusion 2.4.1', + title: 'FaceFusion 2.5.0', description: 'Next generation face swapper and enhancer', icon: 'icon.png', menu: require(__dirname + '/menu.js') diff --git a/start.js b/start.js index 8076a64..b53e346 100644 --- a/start.js +++ b/start.js @@ -24,10 +24,9 @@ module.exports = () => { message: '{{ self.cmd[local.mode] }}', path: 'facefusion', - venv: 'env', conda: { - name: '{{ gpu === "nvidia" ? "cu118" : "base" }}' + name: 'facefusion' }, on: [ diff --git a/update.js b/update.js index 5edf482..5a89187 100644 --- a/update.js +++ b/update.js @@ -23,7 +23,7 @@ module.exports = () => method: 'shell.run', params: { - message: 'git checkout 2.4.1', + message: 'git checkout 2.5.0', path: 'facefusion' } }