-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from Lenny4/dev
deletes everything from the DeepFaceLabClient folder when i click Install in the Dashboard
- Loading branch information
Showing
6 changed files
with
39 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
set -e | ||
|
||
#just to be sure that DeepFaceLabClient is closed | ||
sleep 2 | ||
|
||
folderName=$1 | ||
folderPath=$2 | ||
downloadFileName=$3 | ||
execPath=$4 | ||
createdFolder=$5 | ||
|
||
#just to be sure that DeepFaceLabClient is closed | ||
sleep 2 | ||
|
||
rm -rf $folderPath/$folderName | ||
unzip -o $folderPath/$downloadFileName -d $folderPath | ||
#to preserve shortcut and symbolic link | ||
mv $folderPath/$createdFolder $folderPath/$folderName | ||
$execPath | ||
rm $folderPath/$downloadFileName | ||
$execPath & rm $folderPath/install_release.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
@echo off | ||
|
||
@REM just to be sure that DeepFaceLabClient is closed | ||
timeout 2 | ||
|
||
set folderName=%1 | ||
set folderPath=%2 | ||
set downloadFileName=%3 | ||
set execPath=%4 | ||
set createdFolder=%5 | ||
|
||
if exist %folderPath%\%folderName% rmdir %folderPath%\%folderName% /q /s | ||
powershell -command "Start-Sleep -s 2" | ||
|
||
tar -xf %folderPath%\%downloadFileName% -C %folderPath% | ||
@REM to preserve shortcut and symbolic link | ||
move %folderPath%\%createdFolder% %folderPath%\%folderName% | ||
%execPath% | ||
if %createdFolder% neq %folderName% ( | ||
xcopy %folderPath%\%createdFolder% %folderPath%\%folderName% /Y /S | ||
rmdir /s /q %folderPath%\%createdFolder% | ||
) | ||
del %folderPath%\%downloadFileName% | ||
start /b "" cmd /c %execPath% /b | ||
start /b "" cmd /c del %folderPath%\install_release.bat&exit /b |