Skip to content

Commit

Permalink
Merge pull request #2 from lazou/feat/enhance-project-structure
Browse files Browse the repository at this point in the history
Enhanced project structure
  • Loading branch information
tiuub authored Oct 4, 2020
2 parents b3b3608 + f804368 commit aba8769
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
################################################################################
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
################################################################################

*.plgx
/.vs/*
/*/bin/*
/*/obj/*
Binary file removed KP2faChecker.plgx
Binary file not shown.
20 changes: 17 additions & 3 deletions KP2faChecker/KP2faChecker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,23 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<OutputPath>..\bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<OutputPath>..\bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="KeePass">
<HintPath>C:\Users\Florian\Desktop\KeePass-2.43\KeePass.exe</HintPath>
<HintPath>..\KeePass\KeePass.exe</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down Expand Up @@ -109,4 +110,17 @@
<PreBuildEvent>
</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>if $(ConfigurationName) == Release (
echo Removing unnecessary binary files
RD /S /Q "$(SolutionDir)KP2faChecker\obj\"
if EXIST "$(SolutionDir)KP2faChecker\bin\" (RD /S /Q "$(SolutionDir)KP2faChecker\bin\")
echo Compiling *plgx file
"$(SolutionDir)KeePass\KeePass.exe" --plgx-create "$(SolutionDir)KP2faChecker"
echo Copy compiled *.plgx file into target dir, next to the *.dll
xcopy "$(SolutionDir)KP2faChecker.plgx" "$(TargetDir)" /y
echo Delete temporary *.plgx file
del "$(SolutionDir)KP2faChecker.plgx"
)</PostBuildEvent>
</PropertyGroup>
</Project>
Binary file added KeePass/KeePass.exe
Binary file not shown.
1 change: 0 additions & 1 deletion makeplgx.bat

This file was deleted.

0 comments on commit aba8769

Please sign in to comment.