Skip to content

Commit e062bbe

Browse files
committed
📝 v1.5 - 允许选择存储路径
1 parent b716400 commit e062bbe

18 files changed

+375
-325
lines changed

AndroidKeyGen.csproj

Lines changed: 17 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
44
<PropertyGroup>
55
<LangVersion>preview</LangVersion>
6-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
77
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
88
<ProjectGuid>{57EAA6B0-5C69-4AE0-8C88-89126AC0BC78}</ProjectGuid>
99
<OutputType>WinExe</OutputType>
@@ -15,65 +15,52 @@
1515
<Deterministic>true</Deterministic>
1616
<TargetFrameworkProfile />
1717
</PropertyGroup>
18-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Default|AnyCPU' ">
18+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
1919
<PlatformTarget>AnyCPU</PlatformTarget>
2020
<DebugType>none</DebugType>
2121
<Optimize>true</Optimize>
2222
<OutputPath>bin\Release\</OutputPath>
23-
<DefineConstants>TRACE</DefineConstants>
23+
<DefineConstants>
24+
</DefineConstants>
2425
<ErrorReport>none</ErrorReport>
25-
<WarningLevel>4</WarningLevel>
26+
<WarningLevel>5</WarningLevel>
2627
<Prefer32Bit>false</Prefer32Bit>
2728
<NoWarn>S108;SA1200;SA1600;SA1633;SA1602;S2486;S1075;SA0001;SA1101;</NoWarn>
2829
</PropertyGroup>
29-
<PropertyGroup />
3030
<PropertyGroup>
3131
<StartupObject />
32-
</PropertyGroup>
33-
<PropertyGroup />
34-
<PropertyGroup>
35-
<ApplicationManifest>app.manifest</ApplicationManifest>
36-
</PropertyGroup>
37-
<PropertyGroup>
38-
<ApplicationIcon>icon.ico</ApplicationIcon>
32+
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
33+
<ApplicationIcon>Properties\icon.ico</ApplicationIcon>
3934
</PropertyGroup>
4035
<ItemGroup>
4136
<Reference Include="BouncyCastle.Cryptography, Version=2.0.0.0, Culture=neutral, PublicKeyToken=072edcf4a5328938, processorArchitecture=MSIL">
4237
<SpecificVersion>False</SpecificVersion>
4338
<HintPath>Properties\BouncyCastle.Cryptography.dll</HintPath>
39+
<Private>False</Private>
4440
</Reference>
4541
<Reference Include="System" />
4642
<Reference Include="System.Drawing" />
4743
<Reference Include="System.IO.Compression" />
4844
<Reference Include="System.Windows.Forms" />
4945
<Reference Include="Microsoft.CSharp" />
50-
</ItemGroup>
51-
<ItemGroup>
52-
<Compile Include="AndroidKeyGenForm.cs" />
53-
<Compile Include="LaUIForm.cs" />
54-
<Compile Include="Program.cs" />
46+
<Compile Include="src\AndroidKeyGenForm.cs" />
47+
<Compile Include="src\CertUtils.cs" />
48+
<Compile Include="src\LaUIForm.cs" />
49+
<Compile Include="src\Program.cs" />
5550
<Compile Include="Properties\AssemblyInfo.cs" />
56-
</ItemGroup>
57-
<ItemGroup>
58-
<None Include=".editorconfig" />
59-
<None Include="app.manifest" />
51+
<None Include="Properties\app.manifest" />
6052
<EmbeddedResource Include="Properties\res.gz" />
61-
</ItemGroup>
62-
<ItemGroup>
53+
<EmbeddedResource Include="Properties\Android_symbol_green_RGB.png" />
54+
<Content Include="Properties\icon.ico" />
55+
<None Include="Properties\BouncyCastle.Cryptography.dll" />
6356
<PackageReference Include="StyleCop.Analyzers">
6457
<Version>1.2.0-beta.556</Version>
6558
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
6659
<PrivateAssets>all</PrivateAssets>
6760
</PackageReference>
6861
</ItemGroup>
69-
<ItemGroup>
70-
<Content Include="icon.ico" />
71-
<Content Include="Properties\BouncyCastle.Cryptography.dll" />
72-
</ItemGroup>
7362
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7463
<PropertyGroup>
75-
<PostBuildEvent>cd "$(TargetDir)" &amp;&amp; del BouncyCastle.Cryptography.dll
76-
77-
lalaki_sign "$(TargetPath)"</PostBuildEvent>
64+
<PostBuildEvent>lalaki_sign "$(TargetPath)"</PostBuildEvent>
7865
</PropertyGroup>
7966
</Project>

AndroidKeyGen.sln

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidKeyGen", "AndroidKey
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10-
Default|Any CPU = Default|Any CPU
10+
Release|Any CPU = Release|Any CPU
1111
EndGlobalSection
1212
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13-
{57EAA6B0-5C69-4AE0-8C88-89126AC0BC78}.Default|Any CPU.ActiveCfg = Default|Any CPU
14-
{57EAA6B0-5C69-4AE0-8C88-89126AC0BC78}.Default|Any CPU.Build.0 = Default|Any CPU
13+
{57EAA6B0-5C69-4AE0-8C88-89126AC0BC78}.Release|Any CPU.ActiveCfg = Release|Any CPU
14+
{57EAA6B0-5C69-4AE0-8C88-89126AC0BC78}.Release|Any CPU.Build.0 = Release|Any CPU
1515
EndGlobalSection
1616
GlobalSection(SolutionProperties) = preSolution
1717
HideSolutionNode = FALSE

AndroidKeyGenForm.cs

Lines changed: 0 additions & 147 deletions
This file was deleted.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 lalaki
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)