Skip to content

Commit

Permalink
Merge pull request #82 from Lenny4/STOP_DOWLOAD_FROM_IPEROV_DEEPFACELAB
Browse files Browse the repository at this point in the history
stop download from iperov
  • Loading branch information
Lenny4 authored Sep 16, 2024
2 parents 6d16e3c + 5ff3c6e commit ba7dcef
Show file tree
Hide file tree
Showing 4 changed files with 216 additions and 148 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@

### Removed

## [0.4.0] - 2023-09-16

### Changed

- On Linux source files are no longer downloaded from https://github.com/iperov/DeepFaceLab as project as been shutdown by github.

## [0.3.0] - 2023-06-20

### Added
Expand Down
17 changes: 13 additions & 4 deletions lib/widget/installation/installation_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class InstallationWidget extends HookWidget {
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
showCloseIcon: true,
backgroundColor: Theme.of(context).colorScheme.background,
content: Row(
children: const [
content: const Row(
children: [
SelectableText(
'An error occurred while installing DeepFaceLab.',
style: TextStyle(color: Colors.white),
Expand Down Expand Up @@ -103,13 +103,20 @@ pip install -r $path/requirements-cuda.txt
if (Platform.isLinux) {
String thisInstallationPath =
"$value${Platform.pathSeparator}DeepFaceLab";
String installationFilePath =
"$thisInstallationPath${Platform.pathSeparator}DeepFaceLabIperov-master.zip";
installationPath.value = thisInstallationPath;
startProcesses.value = [
StartProcess(executable: 'bash', arguments: [
'-c',
"""
rm -rf $thisInstallationPath &&
git clone --depth 1 https://github.com/iperov/DeepFaceLab.git $thisInstallationPath
rm -rf $thisInstallationPath && \
mkdir $thisInstallationPath && \
curl https://deepfacelab-internal.s3.amazonaws.com/DeepFaceLabIperov-master.zip --output $installationFilePath && \
unzip -o $installationFilePath -d $thisInstallationPath && \
mv $thisInstallationPath/DeepFaceLabIperov-master/* $thisInstallationPath && \
rm -r $thisInstallationPath/DeepFaceLabIperov-master && \
rm $installationFilePath
"""
])
];
Expand Down Expand Up @@ -201,6 +208,8 @@ git clone --depth 1 https://github.com/iperov/DeepFaceLab.git $thisInstallationP
if (fileZip.existsSync()) {
fileZip.deleteSync();
}
} else if (Platform.isLinux) {
startProcesses.value = [];
}
afterFolderSelected(installationPath.value ?? Platform.pathSeparator);
}
Expand Down
Loading

0 comments on commit ba7dcef

Please sign in to comment.