Skip to content

Commit

Permalink
Update output paths for new Plugin Admin junk
Browse files Browse the repository at this point in the history
  • Loading branch information
dail8859 committed Feb 7, 2019
1 parent 3ebe29d commit 87f1d06
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SurroundSelection

[![Build status](https://ci.appveyor.com/api/projects/status/github/dail8859/SurroundSelection?branch=master&svg=true)](https://ci.appveyor.com/project/dail8859/SurroundSelection/branch/master)
[![Build status](https://ci.appveyor.com/api/projects/status/y3rxu3o00clgxm7f?svg=true)](https://ci.appveyor.com/project/dail8859/surroundselection)

Notepad++ plugin to automatically surround the selection in quotes/brackets/parenthesis/etc. This can also be used on multiple or rectangular selections.

Expand All @@ -17,7 +17,7 @@ Select some text and type one of the following characters:
- `<` or `>`

## Installation
Install the plugin by downloading it from the [Release](https://github.com/dail8859/SurroundSelection/releases) page and copy `SurroundSelection.dll` to your `plugins` folder.
Install the plugin by downloading it from the [Release](https://github.com/dail8859/SurroundSelection/releases) page and copy `SurroundSelection.dll` to your `plugins` folder. You can also install it via the Plugin Admin or Plugin Manager (depending on your Notepad++ version).

## Development
The code has been developed using MSVC 2015. Building the code will generate the DLL which can be used by Notepad++. For convenience, MSVC copies the DLL into the Notepad++ plugin directory.
Expand Down
8 changes: 1 addition & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ after_build:
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: >-
if ($env:PLATFORM -eq "x64") {
Push-AppveyorArtifact "bin\$($env:CONFIGURATION)_$($env:PLATFORM)\SurroundSelection_64.dll" -FileName SurroundSelection_64.dll
}
if ($env:PLATFORM -eq "Win32" ) {
Push-AppveyorArtifact "bin\$($env:CONFIGURATION)_$($env:PLATFORM)\SurroundSelection.dll" -FileName SurroundSelection.dll
}
Push-AppveyorArtifact "bin\$($env:CONFIGURATION)_$($env:PLATFORM)\SurroundSelection.dll" -FileName SurroundSelection.dll
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
if ($env:PLATFORM -eq "x64"){
Expand Down
28 changes: 20 additions & 8 deletions src/SurroundSelection.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<TargetName>$(ProjectName)_64</TargetName>
<TargetName>$(ProjectName)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<TargetName>$(ProjectName)_64</TargetName>
<TargetName>$(ProjectName)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
Expand Down Expand Up @@ -115,7 +115,10 @@
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>if EXIST "C:\Program Files (x86)\Notepad++\plugins" (copy "$(TargetPath)" "C:\Program Files (x86)\Notepad++\plugins")</Command>
<Command>if EXIST "C:\Program Files (x86)\Notepad++\plugins\" (
mkdir "C:\Program Files (x86)\Notepad++\plugins\$(TargetName)"
copy "$(TargetPath)" "C:\Program Files (x86)\Notepad++\plugins\$(TargetName)"
)</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand All @@ -135,7 +138,7 @@
</ClCompile>
<Link>
<AdditionalDependencies>shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>$(OutDir)$(ProjectName)_64.dll</OutputFile>
<OutputFile>$(OutDir)$(ProjectName).dll</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
Expand All @@ -145,7 +148,10 @@
<ImportLibrary>$(OutDir)$(ProjectName).lib</ImportLibrary>
</Link>
<PostBuildEvent>
<Command>if EXIST "C:\Program Files\Notepad++\plugins" (copy "$(TargetPath)" "C:\Program Files\Notepad++\plugins")</Command>
<Command>if EXIST "C:\Program Files\Notepad++\plugins\" (
mkdir "C:\Program Files\Notepad++\plugins\$(TargetName)"
copy "$(TargetPath)" "C:\Program Files\Notepad++\plugins\$(TargetName)"
)</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
Expand All @@ -171,7 +177,10 @@
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>if EXIST "C:\Program Files (x86)\Notepad++\plugins" (copy "$(TargetPath)" "C:\Program Files (x86)\Notepad++\plugins")</Command>
<Command>if EXIST "C:\Program Files (x86)\Notepad++\plugins\" (
mkdir "C:\Program Files (x86)\Notepad++\plugins\$(TargetName)"
copy "$(TargetPath)" "C:\Program Files (x86)\Notepad++\plugins\$(TargetName)"
)</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand All @@ -187,7 +196,7 @@
</ClCompile>
<Link>
<AdditionalDependencies>shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>$(OutDir)$(ProjectName)_64.dll</OutputFile>
<OutputFile>$(OutDir)$(ProjectName).dll</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(ProjectName).pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
Expand All @@ -196,7 +205,10 @@
<ImportLibrary>$(OutDir)$(ProjectName).lib</ImportLibrary>
</Link>
<PostBuildEvent>
<Command>if EXIST "C:\Program Files\Notepad++\plugins" (copy "$(TargetPath)" "C:\Program Files\Notepad++\plugins")</Command>
<Command>if EXIST "C:\Program Files\Notepad++\plugins\" (
mkdir "C:\Program Files\Notepad++\plugins\$(TargetName)"
copy "$(TargetPath)" "C:\Program Files\Notepad++\plugins\$(TargetName)"
)</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down

0 comments on commit 87f1d06

Please sign in to comment.