@@ -45,8 +45,8 @@ class InstallationWidget extends HookWidget {
45
45
ScaffoldMessenger .of (context).showSnackBar (SnackBar (
46
46
showCloseIcon: true ,
47
47
backgroundColor: Theme .of (context).colorScheme.background,
48
- content: Row (
49
- children: const [
48
+ content: const Row (
49
+ children: [
50
50
SelectableText (
51
51
'An error occurred while installing DeepFaceLab.' ,
52
52
style: TextStyle (color: Colors .white),
@@ -103,13 +103,20 @@ pip install -r $path/requirements-cuda.txt
103
103
if (Platform .isLinux) {
104
104
String thisInstallationPath =
105
105
"$value ${Platform .pathSeparator }DeepFaceLab" ;
106
+ String installationFilePath =
107
+ "$thisInstallationPath ${Platform .pathSeparator }DeepFaceLabIperov-master.zip" ;
106
108
installationPath.value = thisInstallationPath;
107
109
startProcesses.value = [
108
110
StartProcess (executable: 'bash' , arguments: [
109
111
'-c' ,
110
112
"""
111
- rm -rf $thisInstallationPath &&
112
- git clone --depth 1 https://github.com/iperov/DeepFaceLab.git $thisInstallationPath
113
+ rm -rf $thisInstallationPath && \
114
+ mkdir $thisInstallationPath && \
115
+ curl https://deepfacelab-internal.s3.amazonaws.com/DeepFaceLabIperov-master.zip --output $installationFilePath && \
116
+ unzip -o $installationFilePath -d $thisInstallationPath && \
117
+ mv $thisInstallationPath /DeepFaceLabIperov-master/* $thisInstallationPath && \
118
+ rm -r $thisInstallationPath /DeepFaceLabIperov-master && \
119
+ rm $installationFilePath
113
120
"""
114
121
])
115
122
];
@@ -201,6 +208,8 @@ git clone --depth 1 https://github.com/iperov/DeepFaceLab.git $thisInstallationP
201
208
if (fileZip.existsSync ()) {
202
209
fileZip.deleteSync ();
203
210
}
211
+ } else if (Platform .isLinux) {
212
+ startProcesses.value = [];
204
213
}
205
214
afterFolderSelected (installationPath.value ?? Platform .pathSeparator);
206
215
}
0 commit comments