Skip to content

Commit

Permalink
+ scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
UMU618 committed Jan 21, 2023
1 parent 6de09c5 commit 3775c34
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 5 deletions.
1 change: 1 addition & 0 deletions conf/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.exe
2 changes: 1 addition & 1 deletion conf/PowerEconomizer.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[config]
bypass_process_list = ['devenv.exe', 'msiexec.exe']
bypass_process_list = ['b2.exe', 'devenv.exe', 'msiexec.exe']
8 changes: 8 additions & 0 deletions conf/cert_info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
TestSign cert

CN=umu618.com
Fingerprint(指纹): ff8a8160116e35775506d0dd86360935877aaf3b

https://blog.umu618.com/cert/
https://github.com/UMU618/nv-video-info
https://github.com/UMU618/PowerEconomizer
3 changes: 3 additions & 0 deletions sign.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
copy "%~dp0src\PowerEconomizer\bin\x64\MTRelease\PowerEconomizer.exe" "%~dp0conf\"
"%ProgramFiles(x86)%\Windows Kits\10\bin\10.0.22621.0\x64\signtool.exe" sign /sha1 ff8a8160116e35775506d0dd86360935877aaf3b /fd SHA512 /t http://timestamp.digicert.com/ "%~dp0conf\PowerEconomizer.exe"
pause
3 changes: 3 additions & 0 deletions sign_demo.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
copy "%~dp0src\PowerEconomizer\bin\x64\MTRelease\PowerEconomizerDemo.exe" "%~dp0conf\"
"%ProgramFiles(x86)%\Windows Kits\10\bin\10.0.22621.0\x64\signtool.exe" sign /sha1 ff8a8160116e35775506d0dd86360935877aaf3b /fd SHA512 /t http://timestamp.digicert.com/ "%~dp0conf\PowerEconomizerDemo.exe"
pause
8 changes: 8 additions & 0 deletions src/PowerEconomizer/PowerEconomizer/PowerEconomizer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
<LanguageStandard>stdcpp20</LanguageStandard>
<EnableModules>true</EnableModules>
<TreatAngleIncludeAsExternal>true</TreatAngleIncludeAsExternal>
<AdditionalOptions>/DNOMINMAX %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -153,6 +154,7 @@
<LanguageStandard>stdcpp20</LanguageStandard>
<EnableModules>true</EnableModules>
<TreatAngleIncludeAsExternal>true</TreatAngleIncludeAsExternal>
<AdditionalOptions>/DNOMINMAX %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -177,6 +179,7 @@
<EnableModules>true</EnableModules>
<TreatAngleIncludeAsExternal>true</TreatAngleIncludeAsExternal>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/DNOMINMAX %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -198,6 +201,7 @@
<LanguageStandard>stdcpp20</LanguageStandard>
<EnableModules>true</EnableModules>
<TreatAngleIncludeAsExternal>true</TreatAngleIncludeAsExternal>
<AdditionalOptions>/DNOMINMAX %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -219,6 +223,7 @@
<LanguageStandard>stdcpp20</LanguageStandard>
<EnableModules>true</EnableModules>
<TreatAngleIncludeAsExternal>true</TreatAngleIncludeAsExternal>
<AdditionalOptions>/DNOMINMAX %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -243,6 +248,7 @@
<EnableModules>true</EnableModules>
<TreatAngleIncludeAsExternal>true</TreatAngleIncludeAsExternal>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/DNOMINMAX %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -257,6 +263,8 @@
<ItemGroup>
<ClCompile Include="src\app.cpp" />
<ClCompile Include="src\app.ixx" />
<ClCompile Include="src\auto_run.cpp" />
<ClCompile Include="src\auto_run.ixx" />
<ClCompile Include="src\blur.cpp" />
<ClCompile Include="src\blur.ixx" />
<ClCompile Include="src\blur_window.cpp" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
<ClCompile Include="src\app.ixx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\auto_run.ixx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\auto_run.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\blur.cpp">
<Filter>Source Files</Filter>
</ClCompile>
Expand Down
Binary file modified src/PowerEconomizer/PowerEconomizer/res/PowerEconomizer.rc
Binary file not shown.
3 changes: 2 additions & 1 deletion src/PowerEconomizer/PowerEconomizer/res/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define IDC_BUTTON_VIEW_LOG 1007
#define IDC_BUTTON_FREE_CONSOLE 1008
#define IDC_ELEVATE 1009
#define ID_SHELL_LAUNCH_AT_LOGIN 40000
#define ID_SHELL_OPEN 40001
#define ID_BLUR_ACRYLIC_BLUR 40002
#define ID_BLUR_BLUR 40003
Expand All @@ -32,7 +33,7 @@
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 106
#define _APS_NEXT_COMMAND_VALUE 40011
#define _APS_NEXT_COMMAND_VALUE 40013
#define _APS_NEXT_CONTROL_VALUE 1010
#define _APS_NEXT_SYMED_VALUE 102
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/PowerEconomizer/PowerEconomizerSetup/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<?endif ?>
<?define Manufacturer = "UMUTech" ?>
<?define ProductId = "PowerEconomizer" ?>
<?define Version = "23.1.14.0" ?>
<?define Version = "23.1.21.0" ?>
<?define UpgradeCode = "beda5964-1224-4140-81b5-9ff257e11e6d" ?>

<Product Id="*" Name="!(loc.ProductName)" Language="1033" Version="$(var.Version)" Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)">
Expand Down Expand Up @@ -111,7 +111,7 @@
<ComponentGroup Id="ProductComponents">
<Component Id="ProductComponent" Directory="INSTALLFOLDER" Guid="98BD59D2-CE03-448B-A26D-2FF7766BA927" Win64="$(var.Win64)">
<File Name="LICENSE.rtf" Source="$(var.ProjectDir)LICENSE.rtf" />
<File Name="PowerEconomizer.exe" Source="$(var.SolutionDir)bin\$(var.ArchDir)\MTRelease\PowerEconomizer.exe" />
<File Name="PowerEconomizer.exe" Source="$(var.ProjectDir)..\..\..\conf\PowerEconomizer.exe" />
<File Name="PowerEconomizer.toml" Source="$(var.ProjectDir)..\..\..\conf\PowerEconomizer.toml" />
</Component>
</ComponentGroup>
Expand Down
1 change: 1 addition & 0 deletions src/deps/GSL
Submodule GSL added at cbf5e6
2 changes: 1 addition & 1 deletion src/deps/umu

0 comments on commit 3775c34

Please sign in to comment.