From 099640a930cf01d5e0047ff247a4624990adacba Mon Sep 17 00:00:00 2001 From: steve02081504 Date: Sat, 22 Oct 2022 13:20:07 +0800 Subject: [PATCH] cut size --- builds/auto_upx.bat | 4 ++-- ghost_installer.vcxproj | 5 +++++ src/guardcfw.h | 1 + src/resource/ghost_installer.rc | 21 +-------------------- 4 files changed, 9 insertions(+), 22 deletions(-) create mode 100644 src/guardcfw.h diff --git a/builds/auto_upx.bat b/builds/auto_upx.bat index d7b9979..1c137bd 100644 --- a/builds/auto_upx.bat +++ b/builds/auto_upx.bat @@ -1,4 +1,4 @@ cd Release -upx --ultra-brute --no-align --best --compress-resources=1 ghost_installer.exe -rename ghost_installer.exe Taromati2_Installer.exe +strip ghost_installer.exe -s -x -X -M -o Taromati2_Installer.exe +upx --ultra-brute --no-align --best --compress-resources=1 Taromati2_Installer.exe cd .. diff --git a/ghost_installer.vcxproj b/ghost_installer.vcxproj index f586f97..98ccf1a 100644 --- a/ghost_installer.vcxproj +++ b/ghost_installer.vcxproj @@ -96,6 +96,7 @@ .\builds\$(Configuration)\ .\builds\$(Configuration)\temp\ + false .\builds\$(Configuration)\ @@ -134,6 +135,10 @@ Size true MaxSpeed + true + false + false + /Gw %(AdditionalOptions) Windows diff --git a/src/guardcfw.h b/src/guardcfw.h new file mode 100644 index 0000000..50e9667 --- /dev/null +++ b/src/guardcfw.h @@ -0,0 +1 @@ +#pragma once diff --git a/src/resource/ghost_installer.rc b/src/resource/ghost_installer.rc index c7a3750..eec29ec 100644 --- a/src/resource/ghost_installer.rc +++ b/src/resource/ghost_installer.rc @@ -35,9 +35,7 @@ BEGIN VALUE "CompanyName", "E.tek" VALUE "FileDescription", "Taromati2 Installer" VALUE "FileVersion", "1.0.0.0" - VALUE "InternalName", "ghost_installer" VALUE "LegalCopyright", "Copyright (C) 2022" - VALUE "OriginalFilename", "ghost_installer.exe" VALUE "ProductName", "Taromati2" VALUE "ProductVersion", "1.0.0.0" END @@ -69,7 +67,7 @@ IDD_DOWNLOADING DIALOGEX 0, 0, 158, 52 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN - LTEXT "所需文件下载中",IDC_STATIC,47,22,63,8 + CTEXT "所需文件下载中",IDC_STATIC,47,22,63,8 END @@ -99,23 +97,6 @@ BEGIN END #endif // APSTUDIO_INVOKED - -///////////////////////////////////////////////////////////////////////////// -// -// AFX_DIALOG_LAYOUT -// - -IDD_INSTALLATION_PATH_SELECTION AFX_DIALOG_LAYOUT -BEGIN - 0 -END - -IDD_DOWNLOADING AFX_DIALOG_LAYOUT -BEGIN - 0 -END - - ///////////////////////////////////////////////////////////////////////////// // // Icon