Skip to content

Commit ba7dcef

Browse files
authored
Merge pull request #82 from Lenny4/STOP_DOWLOAD_FROM_IPEROV_DEEPFACELAB
stop download from iperov
2 parents 6d16e3c + 5ff3c6e commit ba7dcef

File tree

4 files changed

+216
-148
lines changed

4 files changed

+216
-148
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010

1111
### Removed
1212

13+
## [0.4.0] - 2023-09-16
14+
15+
### Changed
16+
17+
- On Linux source files are no longer downloaded from https://github.com/iperov/DeepFaceLab as project as been shutdown by github.
18+
1319
## [0.3.0] - 2023-06-20
1420

1521
### Added

lib/widget/installation/installation_widget.dart

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class InstallationWidget extends HookWidget {
4545
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
4646
showCloseIcon: true,
4747
backgroundColor: Theme.of(context).colorScheme.background,
48-
content: Row(
49-
children: const [
48+
content: const Row(
49+
children: [
5050
SelectableText(
5151
'An error occurred while installing DeepFaceLab.',
5252
style: TextStyle(color: Colors.white),
@@ -103,13 +103,20 @@ pip install -r $path/requirements-cuda.txt
103103
if (Platform.isLinux) {
104104
String thisInstallationPath =
105105
"$value${Platform.pathSeparator}DeepFaceLab";
106+
String installationFilePath =
107+
"$thisInstallationPath${Platform.pathSeparator}DeepFaceLabIperov-master.zip";
106108
installationPath.value = thisInstallationPath;
107109
startProcesses.value = [
108110
StartProcess(executable: 'bash', arguments: [
109111
'-c',
110112
"""
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
113120
"""
114121
])
115122
];
@@ -201,6 +208,8 @@ git clone --depth 1 https://github.com/iperov/DeepFaceLab.git $thisInstallationP
201208
if (fileZip.existsSync()) {
202209
fileZip.deleteSync();
203210
}
211+
} else if (Platform.isLinux) {
212+
startProcesses.value = [];
204213
}
205214
afterFolderSelected(installationPath.value ?? Platform.pathSeparator);
206215
}

0 commit comments

Comments
 (0)