Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
xrgzs committed Apr 28, 2024
1 parent 8be3351 commit c54750f
Show file tree
Hide file tree
Showing 9 changed files with 139 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build Binary
shell: cmd
run: |
cmd /c build.bat
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: W10TTP_CI_Build
path: W10TTP.exe
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
PECMD.exe
ResHacker.exe
ResHacker.ini
ResHacker.log
VersionInfo.res
StringTable.res
W10TTP.WCZ
W10TTP.exe
33 changes: 33 additions & 0 deletions Menifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<assemblyIdentity
name='Win10.TabTip.Patcher'
processorArchitecture='x86'
version='1.0.0.0'
type='win32'/>
<description>Win10.TabTip.Patcher</description>
<trustInfo xmlns='urn:schemas-microsoft-com:asm.v3'>
<security>
<requestedPrivileges>
<requestedExecutionLevel level='requireAdministrator' uiAccess='false' />
</requestedPrivileges>
</security>
</trustInfo>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
<dependency>
<dependentAssembly>
<assemblyIdentity
type='win32'
name='Microsoft.Windows.Common-Controls'
version='6.0.0.0'
processorArchitecture='*'
publicKeyToken='6595b64144ccf1df'
language='*'
/>
</dependentAssembly>
</dependency>
</assembly>
52 changes: 52 additions & 0 deletions ResHacker.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[FILENAMES]
Exe=PECMD.exe
SaveAs=W10TTP.exe
[COMMANDS]
-delete EXEDATA,,
-delete INDATA,2,2052
-delete INDATA,4,2052
-delete INDATA,5,2052
-delete INDATA,6,2052
-delete INDATA,7,2052
-delete INDATA,8,2052
-delete INDATA,9,2052
-delete INDATA,10,2052
-delete INDATA,20,2052
-delete INDATA,21,2052
-delete INDATA,22,2052
-delete INDATA,24,2052
-delete INDATA,25,2052
-delete INDATA,26,2052
-delete INDATA,27,2052
-delete INDATA,30,2052
-delete INDATA,31,2052
-delete INDATA,32,2052
-delete INDATA,33,2052
-delete INDATA,34,2052
-delete INDATA,35,2052
-delete INDATA,36,2052
-delete SCRIPT,102,2052
-delete SCRIPT,103,2052
-delete SCRIPT,201,2052
-delete SCRIPT,202,2052
-delete SCRIPT,203,2052
-delete SCRIPTINIT,,
-delete TAGDATA,,
-delete MENU,,
-delete DIALOG,302,2052
-delete DIALOG,10011,2052
-delete DIALOG,10012,2052
-delete DIALOG,10013,2052
-delete DIALOG,10014,2052
-delete DIALOG,10019,2052
-delete DIALOG,10023,2052
-delete STRINGTABLE,337,2052
-delete STRINGTABLE,626,2052
-delete STRINGTABLE,627,2052
-delete RCDATA,,
-delete ICONGROUP,2,2052
-delete ICONGROUP,3,2052
-delete ICONGROUP,4,2052
-addoverwrite W10TTP.WCZ,SCRIPT,101,2052
-addoverwrite logo.ico,ICONGROUP,1,2052
-addoverwrite Menifest.xml,24,1,2052
Binary file added StringTable.rc
Binary file not shown.
Binary file added VersionInfo.rc
Binary file not shown.
2 changes: 1 addition & 1 deletion W10TTP.WCS
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ IFEX ! $%IsTabletPC%>0,
}

WIN1
_SUB WIN1,W330H190,Win10屏幕键盘大小调整 V1.0,,%TabTip%,,, -disminb -ntab -scalef
_SUB WIN1,W330H190,Win10屏幕键盘大小调整 V1.0,,,,, -disminb -ntab -scalef
ENVI @this.Font=:微软雅黑
LABE -vcenter -left -trans LABE1,L12T3W280H30,拖动滑块调整屏幕键盘大小:,,,
LABE -vcenter -left LABE3,L249T3W65H30,@狂犬主子,EXEC $https://www.xrgzs.top/?from=win10tabtip,0x000000##0xFF0000
Expand Down
25 changes: 25 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@chcp 65001 >nul
PUSHD "%~dp0"
CALL :CLEAN
del /f /q %%a W10TTP.exe
curl.exe --version || EXIT 1
if not exist PECMD.exe curl.exe -sSL https://file.uhsea.com/2404/431fea5861eab95bd1a4fca2cc2200aeEP.exe -o PECMD.exe || EXIT 1
if not exist ResHacker.exe curl.exe -sSL https://file.uhsea.com/2404/0adb663c706b62e9b3a7e5bc3a5842000C.exe -o ResHacker.exe || EXIT 1
PECMD.exe CMPS W10TTP.WCS W10TTP.WCZ || EXIT 1
ResHacker.exe -script ResHacker.txt || EXIT 1
ResHacker.exe -open VersionInfo.rc -save VersionInfo.res -action compile || EXIT 1
ResHacker.exe -open W10TTP.exe -save W10TTP.exe -action addoverwrite -res VersionInfo.res -mask VERSIONINFO,, || EXIT 1
ResHacker.exe -open StringTable.rc -save StringTable.res -action compile || EXIT 1
ResHacker.exe -open W10TTP.exe -save W10TTP.exe -action addoverwrite -res StringTable.res -mask STRINGTABLE,, || EXIT 1
CALL :CLEAN
EXIT 0

:CLEAN
FOR %%a in (
ResHacker.ini
ResHacker.log
VersionInfo.res
StringTable.res
W10TTP.WCZ
) do del /f /q %%a 2>nul
GOTO :EOF
Binary file added logo.ico
Binary file not shown.

0 comments on commit c54750f

Please sign in to comment.