Skip to content

Commit

Permalink
Tools Update
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaloop committed Jun 10, 2022
1 parent 15c8144 commit a2ee0c3
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 12 deletions.
4 changes: 4 additions & 0 deletions Tools/clean.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ for /f "delims=" %%a in ('%~dp0bin\es -path %pt%-%ver% ext:user') do del /f /q "

del /f /q "%pt%-%ver%\src\modules\imageresizer\dll\ImageResizerExt_i.c"
del /f /q "%pt%-%ver%\src\modules\imageresizer\dll\ImageResizerExt_i.h"
del /f /q "%pt%-%ver%\src\modules\imageresizer\dll\RCa11568"
rmdir /s /q %pt%-%ver%\src\modules\videoconference\VideoConferenceProxyFilter\Win32

@echo off
Expand All @@ -54,6 +55,9 @@ pause
echo ·%i%
set i=%i:~15%
if "%i:~-9%"=="-ORIGINAL" goto :eof
if "%i:~-11%"=="-FULLBACKUP" goto :eof
if "%i:~-8%"=="-FULLBAK" goto :eof
if "%i:~-6%"=="-PATCH" goto :eof
set a=%i%
goto :EOF

Expand Down
21 changes: 17 additions & 4 deletions Tools/modify.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ mkdir %pt%-%ver%\x64\Release\modules\launcher\Plugins\VSCodeWorkspace\ 2>nul
copy /y %pt%-%ver%\x64\Release\modules\launcher\Plugins\VSCodeWorkspaces %pt%-%ver%\x64\Release\modules\launcher\Plugins\VSCodeWorkspace\

@echo off
for /f "delims=" %%a in (zhcn_modify_list.txt) do set zhcn=%%a&call :zhcn
for /f "delims=" %%a in (zhcn_modify_list.txt) do set zhcn=%%a&call :zhcn
@echo on

@echo off
for /f "delims=" %%a in (zhcn_modify_list2.txt) do set zhcn=%%a&call :zhcn2
@echo on

@echo off
Expand All @@ -41,9 +45,9 @@ set a=%i%
goto :EOF

:title
title PT Source Cleaner - %ver%
if test"%ver%"==test"%a%" title PT Source Cleaner - %ver% [Newest]
if not exist "%pt%-%ver%" title PT Source Cleaner - %ver% [Not exist!]
title PT Source Patcher - %ver%
if test"%ver%"==test"%a%" title PT Source Patcher - %ver% [Newest]
if not exist "%pt%-%ver%" title PT Source Patcher - %ver% [Not exist!]
goto :EOF

:zhcn
Expand All @@ -53,4 +57,13 @@ mkdir %zhcnd%zh-CN 2>nul
@echo on
copy /y blank %zhcnd%zh-CN\%zhcnn%.resources%zhcnx%
@echo off
goto :EOF

:zhcn2
set zhcn=%pt%-%ver%\x64\Release\%zhcn%
for /f "delims=" %%a in ('echo %zhcn%') do set zhcnd=%%~dpa&set zhcnn=%%~na&set zhcnx=%%~xa
mkdir %zhcnd%zh-CN 2>nul
@echo on
copy /y %zhcnn%.resources%zhcnx% %zhcnd%zh-CN\%zhcnn%.resources%zhcnx%
@echo off
goto :EOF
8 changes: 0 additions & 8 deletions Tools/zhcn_modify_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ modules\launcher\Plugins\System\Microsoft.PowerToys.Run.Plugin.System.dll
modules\launcher\Plugins\TimeDate\Microsoft.PowerToys.Run.Plugin.TimeDate.dll
modules\launcher\Plugins\WindowsSettings\Microsoft.PowerToys.Run.Plugin.WindowsSettings.dll
modules\launcher\Plugins\WindowsTerminal\Microsoft.PowerToys.Run.Plugin.WindowsTerminal.dll
modules\ColorPicker\ModernWpf.Controls.dll
modules\FancyZones\ModernWpf.Controls.dll
modules\ImageResizer\ModernWpf.Controls.dll
modules\launcher\ModernWpf.Controls.dll
modules\ColorPicker\ModernWpf.dll
modules\FancyZones\ModernWpf.dll
modules\ImageResizer\ModernWpf.dll
modules\launcher\ModernWpf.dll
modules\ColorPicker\PowerToys.ColorPickerUI.dll
modules\FancyZones\PowerToys.FancyZonesEditor.dll
modules\FileExplorerPreview\PowerToys.GcodePreviewHandler.dll
Expand Down
Empty file added Tools/zhcn_modify_list2.txt
Empty file.
8 changes: 8 additions & 0 deletions Tools/zhcn_modify_list2.txt.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
modules\ColorPicker\ModernWpf.Controls.dll
modules\FancyZones\ModernWpf.Controls.dll
modules\ImageResizer\ModernWpf.Controls.dll
modules\launcher\ModernWpf.Controls.dll
modules\ColorPicker\ModernWpf.dll
modules\FancyZones\ModernWpf.dll
modules\ImageResizer\ModernWpf.dll
modules\launcher\ModernWpf.dll

0 comments on commit a2ee0c3

Please sign in to comment.